Skip to content

Commit 4420a0d

Browse files
pundiramitandersson
authored andcommitted
arm64: dts: qcom: sdm850-yoga: Reshuffle IPA memory mappings
Upstream commit 2e01e0c ("arm64: dts: qcom: sdm850-yoga: Enable IPA") shuffled reserved memory regions in sdm845.dtsi to make firmware loading succeed and enable the ipa device on sdm845-yoga but it broke the other common users of those memory regions like Xiaomi Pocophone F1. So this patch effectively revert those upstream commit changes and move all the relevant changes to sdm850-lenovo-yoga-c630.dts instead. Fixes: 2e01e0c ("arm64: dts: qcom: sdm850-yoga: Enable IPA") Signed-off-by: Amit Pundir <[email protected]> Tested-by: Steev Klimaszewski <[email protected]> Tested-by: Bjorn Andersson <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a48c730 commit 4420a0d

File tree

2 files changed

+47
-8
lines changed

2 files changed

+47
-8
lines changed

arch/arm64/boot/dts/qcom/sdm845.dtsi

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,23 +128,28 @@
128128
no-map;
129129
};
130130

131-
wlan_msa_mem: memory@8c400000 {
132-
reg = <0 0x8c400000 0 0x100000>;
131+
ipa_fw_mem: memory@8c400000 {
132+
reg = <0 0x8c400000 0 0x10000>;
133133
no-map;
134134
};
135135

136-
gpu_mem: memory@8c515000 {
137-
reg = <0 0x8c515000 0 0x2000>;
136+
ipa_gsi_mem: memory@8c410000 {
137+
reg = <0 0x8c410000 0 0x5000>;
138138
no-map;
139139
};
140140

141-
ipa_fw_mem: memory@8c517000 {
142-
reg = <0 0x8c517000 0 0x5a000>;
141+
gpu_mem: memory@8c415000 {
142+
reg = <0 0x8c415000 0 0x2000>;
143143
no-map;
144144
};
145145

146-
adsp_mem: memory@8c600000 {
147-
reg = <0 0x8c600000 0 0x1a00000>;
146+
adsp_mem: memory@8c500000 {
147+
reg = <0 0x8c500000 0 0x1a00000>;
148+
no-map;
149+
};
150+
151+
wlan_msa_mem: memory@8df00000 {
152+
reg = <0 0x8df00000 0 0x100000>;
148153
no-map;
149154
};
150155

arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@
1616
#include "sdm850.dtsi"
1717
#include "pm8998.dtsi"
1818

19+
/*
20+
* Update following upstream (sdm845.dtsi) reserved
21+
* memory mappings for firmware loading to succeed
22+
* and enable the IPA device.
23+
*/
24+
/delete-node/ &ipa_fw_mem;
25+
/delete-node/ &ipa_gsi_mem;
26+
/delete-node/ &gpu_mem;
27+
/delete-node/ &adsp_mem;
28+
/delete-node/ &wlan_msa_mem;
29+
1930
/ {
2031
model = "Lenovo Yoga C630";
2132
compatible = "lenovo,yoga-c630", "qcom,sdm845";
@@ -58,6 +69,29 @@
5869
};
5970
};
6071

72+
/* Reserved memory changes for IPA */
73+
reserved-memory {
74+
wlan_msa_mem: memory@8c400000 {
75+
reg = <0 0x8c400000 0 0x100000>;
76+
no-map;
77+
};
78+
79+
gpu_mem: memory@8c515000 {
80+
reg = <0 0x8c515000 0 0x2000>;
81+
no-map;
82+
};
83+
84+
ipa_fw_mem: memory@8c517000 {
85+
reg = <0 0x8c517000 0 0x5a000>;
86+
no-map;
87+
};
88+
89+
adsp_mem: memory@8c600000 {
90+
reg = <0 0x8c600000 0 0x1a00000>;
91+
no-map;
92+
};
93+
};
94+
6195
sn65dsi86_refclk: sn65dsi86-refclk {
6296
compatible = "fixed-clock";
6397
#clock-cells = <0>;

0 commit comments

Comments
 (0)