Add interconnect driver for Qualcomm Halliday (SXR2250P)
Subsystems (3)
v2 cover Add interconnect driver for Qualcomm Halliday (SXR2250P)
Document and add the interconnect driver for the Qualcomm Halliday SoC, and document its EPSS L3 interconnect. The display BCM voter is left out for now.
Halliday (SXR2250P / Snapdragon XR2+ Gen 2) is the SoC in the Samsung Galaxy XR headset. The DT changes follow in a separate series.
This work was made together with Claude, ChatGPT and Gemini. Reviewed and tested on my Galaxy XR.
---
Changes in v2:
- Add the OSM L3 binding from the DT series (14/17 there), so that the interconnect patches are in one series (Krzysztof):
https://patch.msgid.link/[email protected]
- Define the nodes after the nodes they link to and drop the forward declarations (Konrad)
- Link to v1: https://patch.msgid.link/[email protected]
---
Stanislav Aleksandrov (3):
dt-bindings: interconnect: document the RPMh Network-On-Chip interconnect in Halliday SoC
dt-bindings: interconnect: OSM L3: Add Halliday EPSS L3 compatible
interconnect: qcom: Add Halliday interconnect provider driver
.../bindings/interconnect/qcom,halliday-rpmh.yaml | 131 ++ .../bindings/interconnect/qcom,osm-l3.yaml | 1 + drivers/interconnect/qcom/Kconfig | 13 + drivers/interconnect/qcom/Makefile | 2 + drivers/interconnect/qcom/halliday.c | 1781 ++++++++++++++++++++ .../dt-bindings/interconnect/qcom,halliday-rpmh.h | 158 ++ 6 files changed, 2086 insertions(+)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261108-halliday-icc-65a5442be859
Best regards,
Signature · 1 line
Stanislav Aleksandrov <[email protected]>
PATCH v2 1/3 dt-bindings: interconnect: document the RPMh Network-On-Chip interconnect in Halliday SoC
Document the RPMh Network-On-Chip interconnect on the Qualcomm Halliday SoC (SXR2250P).
--- .../bindings/interconnect/qcom,halliday-rpmh.yaml | 131 +++++++++++++++++ .../dt-bindings/interconnect/qcom,halliday-rpmh.h | 158 +++++++++++++++++++++ 2 files changed, 289 insertions(+)
Documentation/devicetree/bindings/interconnect/qcom,halliday-rpmh.yaml new file +131 -0
@@ -0,0 +1,131 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,halliday-rpmh.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm RPMh Network-On-Chip Interconnect on Halliday + +maintainers: + - Stanislav Aleksandrov <[email protected]> + +description: | + RPMh interconnect providers support system bandwidth requirements through + RPMh hardware accelerators known as Bus Clock Manager (BCM). + + See also: include/dt-bindings/interconnect/qcom,halliday-rpmh.h + +properties: + compatible: + enum: + - qcom,halliday-aggre1-noc + - qcom,halliday-aggre2-noc + - qcom,halliday-clk-virt + - qcom,halliday-config-noc + - qcom,halliday-gem-noc + - qcom,halliday-lpass-ag-noc + - qcom,halliday-mc-virt + - qcom,halliday-mmss-noc + - qcom,halliday-nsp-noc + - qcom,halliday-pcie-anoc + - qcom,halliday-system-noc + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 3 + +required: + - compatible + +allOf: + - $ref: qcom,rpmh-common.yaml# + - if: + properties: + compatible: + contains: + enum: + - qcom,halliday-clk-virt + - qcom,halliday-mc-virt + then: + properties: + reg: false + else: + required: + - reg + + - if: + properties: + compatible: + contains: + enum: + - qcom,halliday-aggre1-noc + then: + properties: + clocks: + items: + - description: aggre UFS PHY AXI clock + - description: aggre USB3 PRIM AXI clock + + - if: + properties: + compatible: + contains: + enum: + - qcom,halliday-aggre2-noc + then: + properties: + clocks: + items: + - description: RPMH CC IPA clock + + - if: + properties: + compatible: + contains: + enum: + - qcom,halliday-pcie-anoc + then: + properties: + clocks: + items: + - description: aggre-NOC PCIe AXI clock + - description: cfg-NOC PCIe a-NOC AHB clock + - description: aggre-NOC PCIe SF AXI clock + + - if: + properties: + compatible: + contains: + enum: + - qcom,halliday-aggre1-noc + - qcom,halliday-aggre2-noc + - qcom,halliday-pcie-anoc + then: + required: + - clocks + else: + properties: + clocks: false + +unevaluatedProperties: false + +examples: + - | + interconnect-0 { + compatible = "qcom,halliday-clk-virt"; + #interconnect-cells = <2>; + qcom,bcm-voters = <&apps_bcm_voter>; + }; + + interconnect@16c0000 { + compatible = "qcom,halliday-pcie-anoc"; + reg = <0x016c0000 0xc080>; + clocks = <&aggre_noc_pcie_axi_clk>, + <&cfg_noc_pcie_anoc_ahb_clk>, + <&aggre_noc_pcie_sf_axi_clk>; + #interconnect-cells = <2>; + qcom,bcm-voters = <&apps_bcm_voter>; + };
include/dt-bindings/interconnect/qcom,halliday-rpmh.h new file +158 -0
158 lines not on this page · raw message
Signature · 1 line
2.55.0
PATCH v2 2/3 dt-bindings: interconnect: OSM L3: Add Halliday EPSS L3 compatible
In reply to Stanislav AleksandrovDocument the EPSS L3 interconnect on the Qualcomm Halliday SoC.
--- Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml +1 -0
@@ -31,6 +31,7 @@ properties: - items: - enum: - qcom,eliza-epss-l3 + - qcom,halliday-epss-l3 - qcom,milos-epss-l3 - qcom,sa8775p-epss-l3 - qcom,sc7280-epss-l3
Signature · 1 line
2.55.0
PATCH v2 3/3 interconnect: qcom: Add Halliday interconnect provider driver
In reply to Stanislav AleksandrovAdd the driver for the interconnect buses found in Qualcomm Halliday based platforms. The topology consists of several NoCs that are controlled by a remote processor that collects the aggregated bandwidth for each master-slave pair.
The nodes, BCMs and QoS settings are based on Qualcomm's downstream anorak driver. The display BCM voter is left out for now.
Downstream keeps the MM0 and QUP BCMs alive until sync_state (keepalive_early). Here the QUP BCMs get keepalive, as on the other SoCs, and MM0 doesn't, as on SM8550 and later.
--- drivers/interconnect/qcom/Kconfig | 13 + drivers/interconnect/qcom/Makefile | 2 + drivers/interconnect/qcom/halliday.c | 1781 ++++++++++++++++++++++++++++++++++ 3 files changed, 1796 insertions(+)
drivers/interconnect/qcom/Kconfig +13 -0
@@ -31,6 +31,19 @@ config INTERCONNECT_QCOM_GLYMUR This is a driver for the Qualcomm Network-on-Chip on glymur-based platforms. +config INTERCONNECT_QCOM_HALLIDAY + tristate "Qualcomm Halliday interconnect driver" + depends on INTERCONNECT_QCOM_RPMH_POSSIBLE + depends on ARM64 || COMPILE_TEST + select INTERCONNECT_QCOM_RPMH + select INTERCONNECT_QCOM_BCM_VOTER + default ARCH_QCOM + help + This is a driver for the Qualcomm Network-on-Chip on Halliday-based + platforms (SXR2250P / Snapdragon XR2+ Gen 2). It aggregates the + bandwidth requests of the devices and votes for them through the + RPMh Bus Clock Manager. + config INTERCONNECT_QCOM_HAWI tristate "Qualcomm HAWI interconnect driver" depends on INTERCONNECT_QCOM_RPMH_POSSIBLE
drivers/interconnect/qcom/Makefile +2 -0
@@ -6,6 +6,7 @@ interconnect_qcom-y := icc-common.o icc-bcm-voter-objs := bcm-voter.o qnoc-eliza-objs := eliza.o qnoc-glymur-objs := glymur.o +qnoc-halliday-objs := halliday.o qnoc-hawi-objs := hawi.o qnoc-kaanapali-objs := kaanapali.o qnoc-kuno-objs := kuno.o
@@ -56,6 +57,7 @@ icc-smd-rpm-objs := smd-rpm.o icc-rpm.o icc-rpm-clocks.o obj-$(CONFIG_INTERCONNECT_QCOM_BCM_VOTER) += icc-bcm-voter.o obj-$(CONFIG_INTERCONNECT_QCOM_ELIZA) += qnoc-eliza.o obj-$(CONFIG_INTERCONNECT_QCOM_GLYMUR) += qnoc-glymur.o +obj-$(CONFIG_INTERCONNECT_QCOM_HALLIDAY) += qnoc-halliday.o obj-$(CONFIG_INTERCONNECT_QCOM_HAWI) += qnoc-hawi.o obj-$(CONFIG_INTERCONNECT_QCOM_KAANAPALI) += qnoc-kaanapali.o obj-$(CONFIG_INTERCONNECT_QCOM_KUNO) += qnoc-kuno.o
drivers/interconnect/qcom/halliday.c new file +1781 -0
1,781 lines not on this page · raw message
Signature · 1 line
2.55.0