Skip to content

Commit b1fd28d

Browse files
author
Georgi Djakov
committed
Merge branch 'icc-sar2130p' into icc-next
Add driver for the network of connects present on the SAR2130P platform. * icc-sar2130p dt-bindings: interconnect: qcom: document SAR2130P NoC interconnect: qcom: add support for SAR2130P Link: https://lore.kernel.org/r/20241018-sar2130p-icc-v2-0-c58c73dcd19d@linaro.org Signed-off-by: Georgi Djakov <djakov@kernel.org>
2 parents 55aac0e + 92c366a commit b1fd28d

File tree

5 files changed

+2195
-0
lines changed

5 files changed

+2195
-0
lines changed
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/interconnect/qcom,sar2130p-rpmh.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm RPMh Network-On-Chip Interconnect on SAR2130P
8+
9+
maintainers:
10+
- Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
11+
- Georgi Djakov <djakov@kernel.org>
12+
13+
description: |
14+
RPMh interconnect providers support system bandwidth requirements through
15+
RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is
16+
able to communicate with the BCM through the Resource State Coordinator (RSC)
17+
associated with each execution environment. Provider nodes must point to at
18+
least one RPMh device child node pertaining to their RSC and each provider
19+
can map to multiple RPMh resources.
20+
21+
See also:: include/dt-bindings/interconnect/qcom,sar2130p-rpmh.h
22+
23+
properties:
24+
compatible:
25+
enum:
26+
- qcom,sar2130p-clk-virt
27+
- qcom,sar2130p-config-noc
28+
- qcom,sar2130p-gem-noc
29+
- qcom,sar2130p-lpass-ag-noc
30+
- qcom,sar2130p-mc-virt
31+
- qcom,sar2130p-mmss-noc
32+
- qcom,sar2130p-nsp-noc
33+
- qcom,sar2130p-pcie-anoc
34+
- qcom,sar2130p-system-noc
35+
36+
reg:
37+
maxItems: 1
38+
39+
clocks:
40+
minItems: 1
41+
maxItems: 2
42+
43+
required:
44+
- compatible
45+
46+
allOf:
47+
- $ref: qcom,rpmh-common.yaml#
48+
- if:
49+
properties:
50+
compatible:
51+
contains:
52+
enum:
53+
- qcom,sar2130p-clk-virt
54+
- qcom,sar2130p-mc-virt
55+
then:
56+
properties:
57+
reg: false
58+
else:
59+
required:
60+
- reg
61+
62+
- if:
63+
properties:
64+
compatible:
65+
contains:
66+
enum:
67+
- qcom,sar2130p-pcie-anoc
68+
then:
69+
properties:
70+
clocks:
71+
items:
72+
- description: aggre-NOC PCIe AXI clock
73+
- description: cfg-NOC PCIe a-NOC AHB clock
74+
75+
- if:
76+
properties:
77+
compatible:
78+
contains:
79+
enum:
80+
- qcom,sar2130p-system-noc
81+
then:
82+
properties:
83+
clocks:
84+
items:
85+
- description: aggre USB3 PRIM AXI clock
86+
87+
- if:
88+
properties:
89+
compatible:
90+
contains:
91+
enum:
92+
- qcom,sar2130p-system-noc
93+
- qcom,sar2130p-pcie-anoc
94+
then:
95+
required:
96+
- clocks
97+
else:
98+
properties:
99+
clocks: false
100+
101+
unevaluatedProperties: false
102+
103+
examples:
104+
- |
105+
clk_virt: interconnect-0 {
106+
compatible = "qcom,sar2130p-clk-virt";
107+
#interconnect-cells = <2>;
108+
qcom,bcm-voters = <&apps_bcm_voter>;
109+
};
110+
111+
aggre1_noc: interconnect@1680000 {
112+
compatible = "qcom,sar2130p-system-noc";
113+
reg = <0x01680000 0x29080>;
114+
#interconnect-cells = <2>;
115+
clocks = <&gcc_prim_axi_clk>;
116+
qcom,bcm-voters = <&apps_bcm_voter>;
117+
};

drivers/interconnect/qcom/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,15 @@ config INTERCONNECT_QCOM_SA8775P
157157
This is a driver for the Qualcomm Network-on-Chip on sa8775p-based
158158
platforms.
159159

160+
config INTERCONNECT_QCOM_SAR2130P
161+
tristate "Qualcomm SAR2130P interconnect driver"
162+
depends on INTERCONNECT_QCOM_RPMH_POSSIBLE
163+
select INTERCONNECT_QCOM_RPMH
164+
select INTERCONNECT_QCOM_BCM_VOTER
165+
help
166+
This is a driver for the Qualcomm Network-on-Chip on SAR2130P-based
167+
platforms.
168+
160169
config INTERCONNECT_QCOM_SC7180
161170
tristate "Qualcomm SC7180 interconnect driver"
162171
depends on INTERCONNECT_QCOM_RPMH_POSSIBLE

drivers/interconnect/qcom/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ qnoc-qcs8300-objs := qcs8300.o
2020
qnoc-qdu1000-objs := qdu1000.o
2121
icc-rpmh-obj := icc-rpmh.o
2222
qnoc-sa8775p-objs := sa8775p.o
23+
qnoc-sar2130p-objs := sar2130p.o
2324
qnoc-sc7180-objs := sc7180.o
2425
qnoc-sc7280-objs := sc7280.o
2526
qnoc-sc8180x-objs := sc8180x.o
@@ -59,6 +60,7 @@ obj-$(CONFIG_INTERCONNECT_QCOM_QCS8300) += qnoc-qcs8300.o
5960
obj-$(CONFIG_INTERCONNECT_QCOM_QDU1000) += qnoc-qdu1000.o
6061
obj-$(CONFIG_INTERCONNECT_QCOM_RPMH) += icc-rpmh.o
6162
obj-$(CONFIG_INTERCONNECT_QCOM_SA8775P) += qnoc-sa8775p.o
63+
obj-$(CONFIG_INTERCONNECT_QCOM_SAR2130P) += qnoc-sar2130p.o
6264
obj-$(CONFIG_INTERCONNECT_QCOM_SC7180) += qnoc-sc7180.o
6365
obj-$(CONFIG_INTERCONNECT_QCOM_SC7280) += qnoc-sc7280.o
6466
obj-$(CONFIG_INTERCONNECT_QCOM_SC8180X) += qnoc-sc8180x.o

0 commit comments

Comments
 (0)