79038334c4e1287ec3eddb26b323ac81577ec88b
[openwrt/staging/svanheule.git] /
1 From 4c2d5411f4b101f7aa0fd74f80109e3afd6dc967 Mon Sep 17 00:00:00 2001
2 From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
3 Date: Wed, 17 May 2023 12:11:08 +0200
4 Subject: [PATCH 11/19] arm64: mediatek: Propagate chassis-type where possible
5
6 The chassis-type string identifies the form-factor of the system:
7 add this property to all device trees of devices for which the form
8 factor is known.
9
10 Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
11 Link: https://lore.kernel.org/r/20230517101108.205654-1-angelogioacchino.delregno@collabora.com
12 Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
13 ---
14 arch/arm64/boot/dts/mediatek/mt2712-evb.dts | 1 +
15 arch/arm64/boot/dts/mediatek/mt6755-evb.dts | 1 +
16 arch/arm64/boot/dts/mediatek/mt6779-evb.dts | 1 +
17 arch/arm64/boot/dts/mediatek/mt6795-evb.dts | 1 +
18 arch/arm64/boot/dts/mediatek/mt6797-evb.dts | 1 +
19 arch/arm64/boot/dts/mediatek/mt6797-x20-dev.dts | 1 +
20 arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 1 +
21 arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 1 +
22 arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 1 +
23 arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts | 1 +
24 arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts | 1 +
25 arch/arm64/boot/dts/mediatek/mt8167-pumpkin.dts | 1 +
26 arch/arm64/boot/dts/mediatek/mt8173-elm-hana-rev7.dts | 1 +
27 arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dts | 1 +
28 arch/arm64/boot/dts/mediatek/mt8173-elm.dts | 1 +
29 arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 1 +
30 arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 1 +
31 arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-burnet.dts | 1 +
32 arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-damu.dts | 1 +
33 .../boot/dts/mediatek/mt8183-kukui-jacuzzi-juniper-sku16.dts | 1 +
34 arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu-sku22.dts | 1 +
35 arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dts | 1 +
36 arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku16.dts | 1 +
37 arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku272.dts | 1 +
38 arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku288.dts | 1 +
39 arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku0.dts | 1 +
40 arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku176.dts | 1 +
41 arch/arm64/boot/dts/mediatek/mt8186-evb.dts | 1 +
42 28 files changed, 28 insertions(+)
43
44 --- a/arch/arm64/boot/dts/mediatek/mt2712-evb.dts
45 +++ b/arch/arm64/boot/dts/mediatek/mt2712-evb.dts
46 @@ -11,6 +11,7 @@
47
48 / {
49 model = "MediaTek MT2712 evaluation board";
50 + chassis-type = "embedded";
51 compatible = "mediatek,mt2712-evb", "mediatek,mt2712";
52
53 aliases {
54 --- a/arch/arm64/boot/dts/mediatek/mt6755-evb.dts
55 +++ b/arch/arm64/boot/dts/mediatek/mt6755-evb.dts
56 @@ -9,6 +9,7 @@
57
58 / {
59 model = "MediaTek MT6755 EVB";
60 + chassis-type = "embedded";
61 compatible = "mediatek,mt6755-evb", "mediatek,mt6755";
62
63 aliases {
64 --- a/arch/arm64/boot/dts/mediatek/mt6779-evb.dts
65 +++ b/arch/arm64/boot/dts/mediatek/mt6779-evb.dts
66 @@ -10,6 +10,7 @@
67
68 / {
69 model = "MediaTek MT6779 EVB";
70 + chassis-type = "embedded";
71 compatible = "mediatek,mt6779-evb", "mediatek,mt6779";
72
73 aliases {
74 --- a/arch/arm64/boot/dts/mediatek/mt6795-evb.dts
75 +++ b/arch/arm64/boot/dts/mediatek/mt6795-evb.dts
76 @@ -9,6 +9,7 @@
77
78 / {
79 model = "MediaTek MT6795 Evaluation Board";
80 + chassis-type = "embedded";
81 compatible = "mediatek,mt6795-evb", "mediatek,mt6795";
82
83 aliases {
84 --- a/arch/arm64/boot/dts/mediatek/mt6797-evb.dts
85 +++ b/arch/arm64/boot/dts/mediatek/mt6797-evb.dts
86 @@ -9,6 +9,7 @@
87
88 / {
89 model = "MediaTek MT6797 Evaluation Board";
90 + chassis-type = "embedded";
91 compatible = "mediatek,mt6797-evb", "mediatek,mt6797";
92
93 aliases {
94 --- a/arch/arm64/boot/dts/mediatek/mt6797-x20-dev.dts
95 +++ b/arch/arm64/boot/dts/mediatek/mt6797-x20-dev.dts
96 @@ -12,6 +12,7 @@
97
98 / {
99 model = "Mediatek X20 Development Board";
100 + chassis-type = "embedded";
101 compatible = "archermind,mt6797-x20-dev", "mediatek,mt6797";
102
103 aliases {
104 --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
105 +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
106 @@ -15,6 +15,7 @@
107
108 / {
109 model = "Bananapi BPI-R64";
110 + chassis-type = "embedded";
111 compatible = "bananapi,bpi-r64", "mediatek,mt7622";
112
113 aliases {
114 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
115 +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
116 @@ -15,6 +15,7 @@
117
118 / {
119 model = "MediaTek MT7622 RFB1 board";
120 + chassis-type = "embedded";
121 compatible = "mediatek,mt7622-rfb1", "mediatek,mt7622";
122
123 aliases {
124 --- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
125 +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
126 @@ -16,6 +16,7 @@
127
128 / {
129 model = "Bananapi BPI-R3";
130 + chassis-type = "embedded";
131 compatible = "bananapi,bpi-r3", "mediatek,mt7986a";
132
133 aliases {
134 --- a/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts
135 +++ b/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts
136 @@ -11,6 +11,7 @@
137
138 / {
139 model = "MediaTek MT7986a RFB";
140 + chassis-type = "embedded";
141 compatible = "mediatek,mt7986a-rfb", "mediatek,mt7986a";
142
143 aliases {
144 --- a/arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts
145 +++ b/arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts
146 @@ -9,6 +9,7 @@
147
148 / {
149 model = "MediaTek MT7986b RFB";
150 + chassis-type = "embedded";
151 compatible = "mediatek,mt7986b-rfb", "mediatek,mt7986b";
152
153 aliases {
154 --- a/arch/arm64/boot/dts/mediatek/mt8167-pumpkin.dts
155 +++ b/arch/arm64/boot/dts/mediatek/mt8167-pumpkin.dts
156 @@ -11,6 +11,7 @@
157
158 / {
159 model = "Pumpkin MT8167";
160 + chassis-type = "embedded";
161 compatible = "mediatek,mt8167-pumpkin", "mediatek,mt8167";
162
163 memory@40000000 {
164 --- a/arch/arm64/boot/dts/mediatek/mt8173-elm-hana-rev7.dts
165 +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm-hana-rev7.dts
166 @@ -8,6 +8,7 @@
167
168 / {
169 model = "Google Hanawl";
170 + chassis-type = "laptop";
171 compatible = "google,hana-rev7", "mediatek,mt8173";
172 };
173
174 --- a/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dts
175 +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dts
176 @@ -8,6 +8,7 @@
177
178 / {
179 model = "Google Hana";
180 + chassis-type = "laptop";
181 compatible = "google,hana-rev6", "google,hana-rev5",
182 "google,hana-rev4", "google,hana-rev3",
183 "google,hana", "mediatek,mt8173";
184 --- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dts
185 +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dts
186 @@ -8,6 +8,7 @@
187
188 / {
189 model = "Google Elm";
190 + chassis-type = "laptop";
191 compatible = "google,elm-rev8", "google,elm-rev7", "google,elm-rev6",
192 "google,elm-rev5", "google,elm-rev4", "google,elm-rev3",
193 "google,elm", "mediatek,mt8173";
194 --- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
195 +++ b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
196 @@ -10,6 +10,7 @@
197
198 / {
199 model = "MediaTek MT8173 evaluation board";
200 + chassis-type = "embedded";
201 compatible = "mediatek,mt8173-evb", "mediatek,mt8173";
202
203 aliases {
204 --- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
205 +++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
206 @@ -11,6 +11,7 @@
207
208 / {
209 model = "MediaTek MT8183 evaluation board";
210 + chassis-type = "embedded";
211 compatible = "mediatek,mt8183-evb", "mediatek,mt8183";
212
213 aliases {
214 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-burnet.dts
215 +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-burnet.dts
216 @@ -9,6 +9,7 @@
217
218 / {
219 model = "Google burnet board";
220 + chassis-type = "convertible";
221 compatible = "google,burnet", "mediatek,mt8183";
222 };
223
224 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-damu.dts
225 +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-damu.dts
226 @@ -9,6 +9,7 @@
227
228 / {
229 model = "Google damu board";
230 + chassis-type = "convertible";
231 compatible = "google,damu", "mediatek,mt8183";
232 };
233
234 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-juniper-sku16.dts
235 +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-juniper-sku16.dts
236 @@ -9,6 +9,7 @@
237
238 / {
239 model = "Google juniper sku16 board";
240 + chassis-type = "convertible";
241 compatible = "google,juniper-sku16", "google,juniper", "mediatek,mt8183";
242 };
243
244 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu-sku22.dts
245 +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu-sku22.dts
246 @@ -9,6 +9,7 @@
247
248 / {
249 model = "MediaTek kakadu board sku22";
250 + chassis-type = "tablet";
251 compatible = "google,kakadu-rev3-sku22", "google,kakadu-rev2-sku22",
252 "google,kakadu", "mediatek,mt8183";
253 };
254 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dts
255 +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dts
256 @@ -9,6 +9,7 @@
257
258 / {
259 model = "MediaTek kakadu board";
260 + chassis-type = "tablet";
261 compatible = "google,kakadu-rev3", "google,kakadu-rev2",
262 "google,kakadu", "mediatek,mt8183";
263 };
264 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku16.dts
265 +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku16.dts
266 @@ -12,6 +12,7 @@
267
268 / {
269 model = "MediaTek kodama sku16 board";
270 + chassis-type = "tablet";
271 compatible = "google,kodama-sku16", "google,kodama", "mediatek,mt8183";
272 };
273
274 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku272.dts
275 +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku272.dts
276 @@ -12,6 +12,7 @@
277
278 / {
279 model = "MediaTek kodama sku272 board";
280 + chassis-type = "tablet";
281 compatible = "google,kodama-sku272", "google,kodama", "mediatek,mt8183";
282 };
283
284 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku288.dts
285 +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku288.dts
286 @@ -12,6 +12,7 @@
287
288 / {
289 model = "MediaTek kodama sku288 board";
290 + chassis-type = "tablet";
291 compatible = "google,kodama-sku288", "google,kodama", "mediatek,mt8183";
292 };
293
294 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku0.dts
295 +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku0.dts
296 @@ -14,6 +14,7 @@
297
298 / {
299 model = "MediaTek krane sku0 board";
300 + chassis-type = "tablet";
301 compatible = "google,krane-sku0", "google,krane", "mediatek,mt8183";
302 };
303
304 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku176.dts
305 +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku176.dts
306 @@ -14,6 +14,7 @@
307
308 / {
309 model = "MediaTek krane sku176 board";
310 + chassis-type = "tablet";
311 compatible = "google,krane-sku176", "google,krane", "mediatek,mt8183";
312 };
313
314 --- a/arch/arm64/boot/dts/mediatek/mt8186-evb.dts
315 +++ b/arch/arm64/boot/dts/mediatek/mt8186-evb.dts
316 @@ -7,6 +7,7 @@
317
318 / {
319 model = "MediaTek MT8186 evaluation board";
320 + chassis-type = "embedded";
321 compatible = "mediatek,mt8186-evb", "mediatek,mt8186";
322
323 aliases {