Skip to content

Commit b471a1b

Browse files
stephan-ghandersson
authored andcommitted
ARM: dts: qcom: Add rpm-proc node for SMD platforms
Rather than having the RPM SMD channels as the only child of a dummy SMD node, switch to representing the RPM as remoteproc like all the other remoteprocs (WCNSS, modem DSP). This allows assigning additional subdevices to it like the MPM interrupt-controller or rpm-master-stats. Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Stephan Gerhold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent a9037f3 commit b471a1b

File tree

3 files changed

+44
-44
lines changed

3 files changed

+44
-44
lines changed

arch/arm/boot/dts/qcom/qcom-apq8084.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -784,10 +784,10 @@
784784
};
785785
};
786786

787-
smd {
788-
compatible = "qcom,smd";
787+
rpm: remoteproc {
788+
compatible = "qcom,apq8084-rpm-proc", "qcom,rpm-proc";
789789

790-
rpm {
790+
smd-edge {
791791
interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
792792
qcom,ipc = <&apcs 8 0>;
793793
qcom,smd-edge = <15>;

arch/arm/boot/dts/qcom/qcom-msm8226.dtsi

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,26 +53,10 @@
5353
IRQ_TYPE_LEVEL_HIGH)>;
5454
};
5555

56-
reserved-memory {
57-
#address-cells = <1>;
58-
#size-cells = <1>;
59-
ranges;
60-
61-
smem_region: smem@3000000 {
62-
reg = <0x3000000 0x100000>;
63-
no-map;
64-
};
65-
66-
adsp_region: adsp@dc00000 {
67-
reg = <0x0dc00000 0x1900000>;
68-
no-map;
69-
};
70-
};
71-
72-
smd {
73-
compatible = "qcom,smd";
56+
rpm: remoteproc {
57+
compatible = "qcom,msm8226-rpm-proc", "qcom,rpm-proc";
7458

75-
rpm {
59+
smd-edge {
7660
interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
7761
qcom,ipc = <&apcs 8 0>;
7862
qcom,smd-edge = <15>;
@@ -120,6 +104,22 @@
120104
};
121105
};
122106

107+
reserved-memory {
108+
#address-cells = <1>;
109+
#size-cells = <1>;
110+
ranges;
111+
112+
smem_region: smem@3000000 {
113+
reg = <0x3000000 0x100000>;
114+
no-map;
115+
};
116+
117+
adsp_region: adsp@dc00000 {
118+
reg = <0x0dc00000 0x1900000>;
119+
no-map;
120+
};
121+
};
122+
123123
smem {
124124
compatible = "qcom,smem";
125125

arch/arm/boot/dts/qcom/qcom-msm8974.dtsi

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,28 @@
113113
interrupts = <GIC_PPI 7 0xf04>;
114114
};
115115

116+
rpm: remoteproc {
117+
compatible = "qcom,msm8974-rpm-proc", "qcom,rpm-proc";
118+
119+
smd-edge {
120+
interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
121+
qcom,ipc = <&apcs 8 0>;
122+
qcom,smd-edge = <15>;
123+
124+
rpm_requests: rpm-requests {
125+
compatible = "qcom,rpm-msm8974";
126+
qcom,smd-channels = "rpm_requests";
127+
128+
rpmcc: clock-controller {
129+
compatible = "qcom,rpmcc-msm8974", "qcom,rpmcc";
130+
#clock-cells = <1>;
131+
clocks = <&xo_board>;
132+
clock-names = "xo";
133+
};
134+
};
135+
};
136+
};
137+
116138
reserved-memory {
117139
#address-cells = <1>;
118140
#size-cells = <1>;
@@ -293,28 +315,6 @@
293315
};
294316
};
295317

296-
smd {
297-
compatible = "qcom,smd";
298-
299-
rpm {
300-
interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
301-
qcom,ipc = <&apcs 8 0>;
302-
qcom,smd-edge = <15>;
303-
304-
rpm_requests: rpm-requests {
305-
compatible = "qcom,rpm-msm8974";
306-
qcom,smd-channels = "rpm_requests";
307-
308-
rpmcc: clock-controller {
309-
compatible = "qcom,rpmcc-msm8974", "qcom,rpmcc";
310-
#clock-cells = <1>;
311-
clocks = <&xo_board>;
312-
clock-names = "xo";
313-
};
314-
};
315-
};
316-
};
317-
318318
soc: soc {
319319
#address-cells = <1>;
320320
#size-cells = <1>;

0 commit comments

Comments
 (0)