[PATCH v2 1/2] dt-bindings: interconnect: qcom: Add Molokai RPMh NoC

From: Venkat Yadlapati via B4 Relay

Date: Fri Nov 27 2026 - 14:06:14 EST


From: Venkat Yadlapati <venkat.yadlapati@xxxxxxxxx>

Document the RPMh Network-On-Chip interconnect providers of the Qualcomm
Molokai (SM8845) SoC.

Molokai is close to Kaanapali, but its NoCs differ: the aggregate NoC is
split into aggre1 (0x16e0000) and aggre2 (0x1700000), the MMSS NoC config
and service ports are split into HF and SF halves, and some masters and
slaves are missing. aggre1 needs the UFS and USB3 AXI clocks for QoS
programming, aggre2 the IPA clock.

The header keeps the Kaanapali IDs for every node the two SoCs share and
adds only the new MMSS config nodes, so molokai.dtsi can keep the
interconnect paths it inherits from kaanapali.dtsi.

Signed-off-by: Venkat Yadlapati <venkat.yadlapati@xxxxxxxxx>
---
.../bindings/interconnect/qcom,molokai-rpmh.yaml | 144 +++++++++++++++++++++
.../dt-bindings/interconnect/qcom,molokai-rpmh.h | 26 ++++
2 files changed, 170 insertions(+)

diff --git a/Documentation/devicetree/bindings/interconnect/qcom,molokai-rpmh.yaml b/Documentation/devicetree/bindings/interconnect/qcom,molokai-rpmh.yaml
new file mode 100644
index 000000000000..fd94f6dae1a6
--- /dev/null
+++ b/Documentation/devicetree/bindings/interconnect/qcom,molokai-rpmh.yaml
@@ -0,0 +1,144 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interconnect/qcom,molokai-rpmh.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm RPMh Network-On-Chip Interconnect on Molokai
+
+maintainers:
+ - Venkat Yadlapati <venkat.yadlapati@xxxxxxxxx>
+
+description: |
+ RPMh interconnect providers support system bandwidth requirements through
+ RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is
+ able to communicate with the BCM through the Resource State Coordinator (RSC)
+ associated with each execution environment. Provider nodes must point to at
+ least one RPMh device child node pertaining to their RSC and each provider
+ can map to multiple RPMh resources.
+
+ See also: include/dt-bindings/interconnect/qcom,molokai-rpmh.h
+
+properties:
+ compatible:
+ enum:
+ - qcom,molokai-aggre1-noc
+ - qcom,molokai-aggre2-noc
+ - qcom,molokai-clk-virt
+ - qcom,molokai-cnoc-cfg
+ - qcom,molokai-cnoc-main
+ - qcom,molokai-gem-noc
+ - qcom,molokai-lpass-ag-noc
+ - qcom,molokai-lpass-lpiaon-noc
+ - qcom,molokai-lpass-lpicx-noc
+ - qcom,molokai-mc-virt
+ - qcom,molokai-mmss-noc
+ - qcom,molokai-nsp-noc
+ - qcom,molokai-pcie-anoc
+ - qcom,molokai-system-noc
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ minItems: 1
+ maxItems: 2
+
+required:
+ - compatible
+
+allOf:
+ - $ref: qcom,rpmh-common.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,molokai-clk-virt
+ - qcom,molokai-mc-virt
+ then:
+ properties:
+ reg: false
+ else:
+ required:
+ - reg
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,molokai-pcie-anoc
+ then:
+ properties:
+ clocks:
+ items:
+ - description: aggre-NOC PCIe AXI clock
+ - description: cfg-NOC PCIe a-NOC AHB clock
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,molokai-aggre1-noc
+ then:
+ properties:
+ clocks:
+ items:
+ - description: aggre UFS PHY AXI clock
+ - description: aggre USB3 PRIM AXI clock
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,molokai-aggre2-noc
+ then:
+ properties:
+ clocks:
+ items:
+ - description: RPMH CC IPA clock
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,molokai-aggre1-noc
+ - qcom,molokai-aggre2-noc
+ - qcom,molokai-pcie-anoc
+ then:
+ required:
+ - clocks
+ else:
+ properties:
+ clocks: false
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ clk_virt: interconnect-0 {
+ compatible = "qcom,molokai-clk-virt";
+ #interconnect-cells = <2>;
+ qcom,bcm-voters = <&apps_bcm_voter>;
+ };
+
+ aggre1_noc: interconnect@16e0000 {
+ compatible = "qcom,molokai-aggre1-noc";
+ reg = <0x016e0000 0x16400>;
+ #interconnect-cells = <2>;
+ clocks = <&gcc_aggre_ufs_phy_axi_clk>,
+ <&gcc_aggre_usb3_prim_axi_clk>;
+ qcom,bcm-voters = <&apps_bcm_voter>;
+ };
+
+ aggre2_noc: interconnect@1700000 {
+ compatible = "qcom,molokai-aggre2-noc";
+ reg = <0x01700000 0x22400>;
+ #interconnect-cells = <2>;
+ clocks = <&rpmhcc_ipa_clk>;
+ qcom,bcm-voters = <&apps_bcm_voter>;
+ };
diff --git a/include/dt-bindings/interconnect/qcom,molokai-rpmh.h b/include/dt-bindings/interconnect/qcom,molokai-rpmh.h
new file mode 100644
index 000000000000..88efa9f1d7a7
--- /dev/null
+++ b/include/dt-bindings/interconnect/qcom,molokai-rpmh.h
@@ -0,0 +1,26 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * Molokai interconnect IDs
+ *
+ * Molokai keeps the Kaanapali node IDs for every node the two SoCs share,
+ * so this only adds the nodes Kaanapali does not have. On Molokai the
+ * aggre1-noc and aggre2-noc providers use the Kaanapali aggre-noc IDs,
+ * and cnoc-main also carries SLAVE_PCIE_CFG.
+ */
+
+#ifndef __DT_BINDINGS_INTERCONNECT_QCOM_MOLOKAI_H
+#define __DT_BINDINGS_INTERCONNECT_QCOM_MOLOKAI_H
+
+#include <dt-bindings/interconnect/qcom,kaanapali-rpmh.h>
+
+/* cnoc-cfg */
+#define SLAVE_CNOC_MNOC_HF_CFG 36
+#define SLAVE_CNOC_MNOC_SF_CFG 37
+
+/* mmss-noc */
+#define MASTER_CNOC_MNOC_HF_CFG 15
+#define MASTER_CNOC_MNOC_SF_CFG 16
+#define SLAVE_SERVICE_MNOC_HF 17
+#define SLAVE_SERVICE_MNOC_SF 18
+
+#endif

--
2.56.1