Add interconnect driver for MSM8953/SDM450/SDM632
Subsystems (3)
v3 cover Add interconnect driver for MSM8953/SDM450/SDM632
This patch series add interconnect driver for MSM8953/SDM450/SDM632 based devices.
---
Changes in v3:
- Remove unused msm8953_pcnoc_bus_clocks.
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Make nodes const pointers.
- Fix schema issues addressed by reviews.
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Vladimir Lypak (2):
dt-bindings: interconnect: qcom: Add Qualcomm MSM8953 NoC
interconnect: qcom: Add MSM8953 driver
.../bindings/interconnect/qcom,msm8953.yaml | 101 ++ drivers/interconnect/qcom/Kconfig | 9 + drivers/interconnect/qcom/Makefile | 2 + drivers/interconnect/qcom/msm8953.c | 1321 ++++++++++++++++++++ include/dt-bindings/interconnect/qcom,msm8953.h | 93 ++ 5 files changed, 1526 insertions(+)
---
base-commit: 62c97045b8f720c2eac807a5f38e26c9ed512371
change-id: 20240625-msm8953-interconnect-e03c4eb28d05
Best regards,
Signature · 1 line
Barnabás Czémán <[email protected]>
PATCH v3 1/2 dt-bindings: interconnect: qcom: Add Qualcomm MSM8953 NoC
From: Vladimir Lypak <[email protected]>
Add the device-tree bindings for interconnect providers used on MSM8953 platform.
--- .../bindings/interconnect/qcom,msm8953.yaml | 101 +++++++++++++++++++++ include/dt-bindings/interconnect/qcom,msm8953.h | 93 +++++++++++++++++++ 2 files changed, 194 insertions(+)
Documentation/devicetree/bindings/interconnect/qcom,msm8953.yaml new file +101 -0
@@ -0,0 +1,101 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,msm8953.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm MSM8953 Network-On-Chip interconnect + +maintainers: + - Barnabas Czeman <[email protected]> + +description: | + The Qualcomm MSM8953 interconnect providers support adjusting the + bandwidth requirements between the various NoC fabrics. + + See also: + - dt-bindings/interconnect/qcom,msm8953.h + +properties: + compatible: + enum: + - qcom,msm8953-bimc + - qcom,msm8953-pcnoc + - qcom,msm8953-snoc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + maxItems: 1 + + '#interconnect-cells': + const: 2 + +patternProperties: + '^interconnect-[a-z0-9\-]+$': + type: object + $ref: qcom,rpm-common.yaml# + unevaluatedProperties: false + description: + The interconnect providers do not have a separate QoS register space, + but share parent's space. + + properties: + compatible: + const: qcom,msm8953-snoc-mm + + required: + - compatible + - '#interconnect-cells' + +required: + - compatible + - reg + - '#interconnect-cells' + +allOf: + - $ref: qcom,rpm-common.yaml# + - if: + properties: + compatible: + const: qcom,msm8953-pcnoc + + then: + properties: + clocks: + items: + - description: PCNOC USB3 AXI Clock. + + clock-names: + const: pcnoc_usb3_axi + + required: + - clocks + - clock-names + else: + properties: + clocks: false + clock-names: false + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/qcom,gcc-msm8953.h> + + snoc: interconnect@580000 { + compatible = "qcom,msm8953-snoc"; + reg = <0x580000 0x16080>; + + #interconnect-cells = <2>; + + snoc_mm: interconnect-snoc { + compatible = "qcom,msm8953-snoc-mm"; + + #interconnect-cells = <2>; + }; + };
include/dt-bindings/interconnect/qcom,msm8953.h new file +93 -0
93 lines not on this page · raw message
Signature · 1 line
2.45.2
PATCH v3 2/2 interconnect: qcom: Add MSM8953 driver
In reply to Barnabás CzémánFrom: Vladimir Lypak <[email protected]>
Add driver for interconnect busses found in MSM8953 based platforms. The topology consists of four NoCs that are partially controlled by a RPM processor.
Note that one of NoCs (System NoC) has a counterpart (System NoC MM) that is modelled as child device to avoid resource conflicts, since it uses same MMIO space for configuration.
--- drivers/interconnect/qcom/Kconfig | 9 + drivers/interconnect/qcom/Makefile | 2 + drivers/interconnect/qcom/msm8953.c | 1321 +++++++++++++++++++++++++++++++++++ 3 files changed, 1332 insertions(+)
drivers/interconnect/qcom/Kconfig +9 -0
@@ -35,6 +35,15 @@ config INTERCONNECT_QCOM_MSM8939 This is a driver for the Qualcomm Network-on-Chip on msm8939-based platforms. +config INTERCONNECT_QCOM_MSM8953 + tristate "Qualcomm MSM8953 interconnect driver" + depends on INTERCONNECT_QCOM + depends on QCOM_SMD_RPM + select INTERCONNECT_QCOM_SMD_RPM + help + This is a driver for the Qualcomm Network-on-Chip on msm8953-based + platforms. + config INTERCONNECT_QCOM_MSM8974 tristate "Qualcomm MSM8974 interconnect driver" depends on INTERCONNECT_QCOM
drivers/interconnect/qcom/Makefile +2 -0
@@ -7,6 +7,7 @@ icc-bcm-voter-objs := bcm-voter.o qnoc-msm8909-objs := msm8909.o qnoc-msm8916-objs := msm8916.o qnoc-msm8939-objs := msm8939.o +qnoc-msm8953-objs := msm8953.o qnoc-msm8974-objs := msm8974.o qnoc-msm8996-objs := msm8996.o icc-osm-l3-objs := osm-l3.o
@@ -41,6 +42,7 @@ obj-$(CONFIG_INTERCONNECT_QCOM_BCM_VOTER) += icc-bcm-voter.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8909) += qnoc-msm8909.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8916) += qnoc-msm8916.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8939) += qnoc-msm8939.o +obj-$(CONFIG_INTERCONNECT_QCOM_MSM8953) += qnoc-msm8953.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8974) += qnoc-msm8974.o obj-$(CONFIG_INTERCONNECT_QCOM_MSM8996) += qnoc-msm8996.o obj-$(CONFIG_INTERCONNECT_QCOM_OSM_L3) += icc-osm-l3.o
drivers/interconnect/qcom/msm8953.c new file +1321 -0
1,321 lines not on this page · raw message
Signature · 1 line
2.45.2
Georgi Djakov
maintainerRe: [PATCH v3 2/2] interconnect: qcom: Add MSM8953 driver
Hi Barnabás,
Thank you for the patches!
Quoted 18 lines · Barnabás Czémán
From: Vladimir Lypak <[email protected]>
Add driver for interconnect busses found in MSM8953 based platforms. The topology consists of four NoCs that are partially controlled by a RPM processor.
Note that one of NoCs (System NoC) has a counterpart (System NoC MM) that is modelled as child device to avoid resource conflicts, since it uses same MMIO space for configuration.
Signed-off-by Vladimir Lypak <[email protected]>Reviewed-by Krzysztof Kozlowski <[email protected]>Signed-off-by Barnabás Czémán <[email protected]>--- drivers/interconnect/qcom/Kconfig | 9 + drivers/interconnect/qcom/Makefile | 2 + drivers/interconnect/qcom/msm8953.c | 1321 +++++++++++++++++++++++++++++++++++ 3 files changed, 1332 insertions(+)
[..]
Quoted 1 line
+++
b/drivers/interconnect/qcom/msm8953.c
[..]
Quoted 4 lines
drivers/interconnect/qcom/msm8953.c new file +4
-0+static const struct of_device_id msm8953_noc_of_match[] = { + { .compatible ="qcom,msm8953-bimc" , .data = &msm8953_bimc }, + { .compatible ="qcom,msm8953-pcnoc" , .data = &msm8953_pcnoc }, + { .compatible ="qcom,msm8953-snoc" , .data = &msm8953_snoc },
drivers/interconnect/qcom/msm8953.c line 1314
Quoted 10 lines
drivers/interconnect/qcom/msm8953.c new file +10
-0+ { .compatible = "qcom,msm8953-snoc-mm", .data = &msm8953_snoc_mm }, + { } +}; + +static struct platform_driver msm8953_noc_driver = { + .probe = qnoc_probe, + .remove_new = qnoc_remove, + .driver = { + .name ="qnoc-msm8953" , + .of_match_table = msm8953_noc_of_match,
Why no .sync_state?
BR,
Georgi
Re: [PATCH v3 2/2] interconnect: qcom: Add MSM8953 driver
Quoted 27 lines · Georgi Djakov
Hi Barnabás,
Thank you for the patches!
Quoted 19 lines · Barnabás Czémán
From: Vladimir Lypak <[email protected]>
Add driver for interconnect busses found in MSM8953 based platforms. The topology consists of four NoCs that are partially controlled by a RPM processor.
Note that one of NoCs (System NoC) has a counterpart (System NoC MM) that is modelled as child device to avoid resource conflicts, since it uses same MMIO space for configuration.
Signed-off-by Vladimir Lypak <[email protected]>Reviewed-by Krzysztof Kozlowski <[email protected]>Signed-off-by Barnabás Czémán <[email protected]>--- drivers/interconnect/qcom/Kconfig | 9 + drivers/interconnect/qcom/Makefile | 2 + drivers/interconnect/qcom/msm8953.c | 1321 +++++++++++++++++++++++++++++++++++ 3 files changed, 1332 insertions(+)[..]
Quoted 1 line
+++
b/drivers/interconnect/qcom/msm8953.c[..]
Quoted 16 lines
Quoted 4 lines
drivers/interconnect/qcom/msm8953.c new file +4
-0+static const struct of_device_id msm8953_noc_of_match[] = { + { .compatible ="qcom,msm8953-bimc" , .data = &msm8953_bimc }, + { .compatible ="qcom,msm8953-pcnoc" , .data = &msm8953_pcnoc }, + { .compatible ="qcom,msm8953-snoc" , .data = &msm8953_snoc },drivers/interconnect/qcom/msm8953.c line 1314
Quoted 10 lines
drivers/interconnect/qcom/msm8953.c new file +10
-0+ { .compatible = "qcom,msm8953-snoc-mm", .data = &msm8953_snoc_mm }, + { } +}; + +static struct platform_driver msm8953_noc_driver = { + .probe = qnoc_probe, + .remove_new = qnoc_remove, + .driver = { + .name ="qnoc-msm8953" , + .of_match_table = msm8953_noc_of_match,Why no .sync_state?
Because there is no cpufreq upstreamed
Quoted 3 lines
BR,
Georgi