Skip to content

Commit 0755553

Browse files
z3ntuandersson
authored andcommitted
ARM: dts: qcom: msm8226: Add modem remoteproc node
Add a node for the modem remoteproc found on MSM8226. Co-developed-by: Matti Lehtimäki <[email protected]> Signed-off-by: Matti Lehtimäki <[email protected]> Reviewed-by: Stephan Gerhold <[email protected]> Signed-off-by: Luca Weiss <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 184cb65 commit 0755553

File tree

4 files changed

+98
-2
lines changed

4 files changed

+98
-2
lines changed

arch/arm/boot/dts/qcom/qcom-apq8026-samsung-milletwifi.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#include "pm8226.dtsi"
1313

1414
/delete-node/ &adsp_region;
15+
/delete-node/ &mba_region;
16+
/delete-node/ &mpss_region;
1517
/delete-node/ &smem_region;
1618

1719
/ {

arch/arm/boot/dts/qcom/qcom-msm8226-samsung-matisse-common.dtsi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include "pm8226.dtsi"
99

1010
/delete-node/ &adsp_region;
11+
/delete-node/ &mba_region;
12+
/delete-node/ &mpss_region;
1113
/delete-node/ &smem_region;
1214

1315
/ {
@@ -145,12 +147,12 @@
145147
no-map;
146148
};
147149

148-
mpss@8400000 {
150+
mpss_region: mpss@8400000 {
149151
reg = <0x08400000 0x1f00000>;
150152
no-map;
151153
};
152154

153-
mba@a300000 {
155+
mba_region: mba@a300000 {
154156
reg = <0x0a300000 0x100000>;
155157
no-map;
156158
};

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

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,18 @@
213213
no-map;
214214
};
215215

216+
mpss_region: mpss@8000000 {
217+
reg = <0x08000000 0x5100000>;
218+
no-map;
219+
status = "disabled";
220+
};
221+
222+
mba_region: mba@d100000 {
223+
reg = <0x0d100000 0x100000>;
224+
no-map;
225+
status = "disabled";
226+
};
227+
216228
adsp_region: adsp@dc00000 {
217229
reg = <0x0dc00000 0x1900000>;
218230
no-map;
@@ -253,6 +265,31 @@
253265
};
254266
};
255267

268+
smp2p-modem {
269+
compatible = "qcom,smp2p";
270+
qcom,smem = <435>, <428>;
271+
272+
interrupt-parent = <&intc>;
273+
interrupts = <GIC_SPI 27 IRQ_TYPE_EDGE_RISING>;
274+
275+
mboxes = <&apcs 14>;
276+
277+
qcom,local-pid = <0>;
278+
qcom,remote-pid = <1>;
279+
280+
modem_smp2p_out: master-kernel {
281+
qcom,entry-name = "master-kernel";
282+
#qcom,smem-state-cells = <1>;
283+
};
284+
285+
modem_smp2p_in: slave-kernel {
286+
qcom,entry-name = "slave-kernel";
287+
288+
interrupt-controller;
289+
#interrupt-cells = <2>;
290+
};
291+
};
292+
256293
smsm {
257294
compatible = "qcom,smsm";
258295
#address-cells = <1>;
@@ -879,6 +916,59 @@
879916
#interrupt-cells = <4>;
880917
};
881918

919+
modem: remoteproc@fc880000 {
920+
compatible = "qcom,msm8226-mss-pil";
921+
reg = <0xfc880000 0x4040>,
922+
<0xfc820000 0x10000>;
923+
reg-names = "qdsp6",
924+
"rmb";
925+
926+
interrupts-extended = <&intc GIC_SPI 24 IRQ_TYPE_EDGE_RISING>,
927+
<&modem_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
928+
<&modem_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
929+
<&modem_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
930+
<&modem_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
931+
interrupt-names = "wdog",
932+
"fatal",
933+
"ready",
934+
"handover",
935+
"stop-ack";
936+
937+
clocks = <&gcc GCC_MSS_Q6_BIMC_AXI_CLK>,
938+
<&gcc GCC_MSS_CFG_AHB_CLK>,
939+
<&gcc GCC_BOOT_ROM_AHB_CLK>,
940+
<&rpmcc RPM_SMD_XO_CLK_SRC>;
941+
clock-names = "iface",
942+
"bus",
943+
"mem",
944+
"xo";
945+
946+
resets = <&gcc GCC_MSS_RESTART>;
947+
reset-names = "mss_restart";
948+
949+
power-domains = <&rpmpd MSM8226_VDDCX>;
950+
power-domain-names = "cx";
951+
952+
qcom,ext-bhs-reg = <&tcsr_regs_1 0x194>;
953+
qcom,halt-regs = <&tcsr_regs_1 0x180 0x200 0x280>;
954+
955+
qcom,smem-states = <&modem_smp2p_out 0>;
956+
qcom,smem-state-names = "stop";
957+
958+
memory-region = <&mba_region>, <&mpss_region>;
959+
960+
status = "disabled";
961+
962+
smd-edge {
963+
interrupts = <GIC_SPI 25 IRQ_TYPE_EDGE_RISING>;
964+
965+
mboxes = <&apcs 12>;
966+
qcom,smd-edge = <0>;
967+
968+
label = "modem";
969+
};
970+
};
971+
882972
tcsr_mutex: hwlock@fd484000 {
883973
compatible = "qcom,msm8226-tcsr-mutex", "qcom,tcsr-mutex";
884974
reg = <0xfd484000 0x1000>;

arch/arm/boot/dts/qcom/qcom-msm8926-htc-memul.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#include "pm8226.dtsi"
1010

1111
/delete-node/ &adsp_region;
12+
/delete-node/ &mba_region;
13+
/delete-node/ &mpss_region;
1214
/delete-node/ &smem_region;
1315

1416
/ {

0 commit comments

Comments
 (0)