forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/boot/dts/ste-snowball.dts
....@@ -1,16 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright 2011 ST-Ericsson AB
3
- *
4
- * The code contained herein is licensed under the GNU General Public
5
- * License. You may obtain a copy of the GNU General Public License
6
- * Version 2 or later at the following locations:
7
- *
8
- * http://www.opensource.org/licenses/gpl-license.html
9
- * http://www.gnu.org/copyleft/gpl.html
104 */
115
126 /dts-v1/;
13
-#include "ste-dbx5x0.dtsi"
7
+#include "ste-db9500.dtsi"
148 #include "ste-href-ab8500.dtsi"
159 #include "ste-href-family-pinctrl.dtsi"
1610
....@@ -18,14 +12,8 @@
1812 model = "Calao Systems Snowball platform with device tree";
1913 compatible = "calaosystems,snowball-a9500", "st-ericsson,u9500";
2014
21
- /* This stablilizes the serial port enumeration */
22
- aliases {
23
- serial0 = &ux500_serial0;
24
- serial1 = &ux500_serial1;
25
- serial2 = &ux500_serial2;
26
- };
27
-
2815 memory {
16
+ device_type = "memory";
2917 reg = <0x00000000 0x20000000>;
3018 };
3119
....@@ -161,19 +149,19 @@
161149
162150 msp0: msp@80123000 {
163151 pinctrl-names = "default";
164
- pinctrl-0 = <&msp0_default_mode>;
152
+ pinctrl-0 = <&msp0txrxtfstck_a_1_default>;
165153 status = "okay";
166154 };
167155
168156 msp1: msp@80124000 {
169157 pinctrl-names = "default";
170
- pinctrl-0 = <&msp1_default_mode>;
158
+ pinctrl-0 = <&msp1txrx_a_1_default>;
171159 status = "okay";
172160 };
173161
174162 msp2: msp@80117000 {
175163 pinctrl-names = "default";
176
- pinctrl-0 = <&msp2_default_mode>;
164
+ pinctrl-0 = <&msp2_a_1_default>;
177165 };
178166
179167 msp3: msp@80125000 {
....@@ -243,8 +231,8 @@
243231 vmmc-supply = <&ab8500_ldo_aux3_reg>;
244232 vqmmc-supply = <&vmmci>;
245233 pinctrl-names = "default", "sleep";
246
- pinctrl-0 = <&sdi0_default_mode>;
247
- pinctrl-1 = <&sdi0_sleep_mode>;
234
+ pinctrl-0 = <&mc0_a_1_default &sdi0_default_mode>;
235
+ pinctrl-1 = <&mc0_a_1_sleep>;
248236
249237 /* GPIO218 MMC_CD */
250238 cd-gpios = <&gpio6 26 GPIO_ACTIVE_LOW>;
....@@ -258,8 +246,8 @@
258246 max-frequency = <100000000>;
259247 bus-width = <4>;
260248 pinctrl-names = "default", "sleep";
261
- pinctrl-0 = <&sdi1_default_mode>;
262
- pinctrl-1 = <&sdi1_sleep_mode>;
249
+ pinctrl-0 = <&mc1_a_1_default>;
250
+ pinctrl-1 = <&mc1_a_1_sleep>;
263251
264252 status = "okay";
265253 };
....@@ -268,7 +256,7 @@
268256 sdi2_per3@80005000 {
269257 arm,primecell-periphid = <0x10480180>;
270258 pinctrl-names = "default";
271
- pinctrl-0 = <&sdi2_sleep_mode>;
259
+ pinctrl-0 = <&mc2_a_1_sleep>;
272260
273261 status = "okay";
274262 };
....@@ -281,49 +269,52 @@
281269 cap-mmc-highspeed;
282270 vmmc-supply = <&ab8500_ldo_aux2_reg>;
283271 pinctrl-names = "default", "sleep";
284
- pinctrl-0 = <&sdi4_default_mode>;
285
- pinctrl-1 = <&sdi4_sleep_mode>;
272
+ pinctrl-0 = <&mc4_a_1_default>;
273
+ pinctrl-1 = <&mc4_a_1_sleep>;
286274
287275 status = "okay";
288276 };
289277
290278 uart@80120000 {
291279 pinctrl-names = "default", "sleep";
292
- pinctrl-0 = <&uart0_default_mode>;
293
- pinctrl-1 = <&uart0_sleep_mode>;
280
+ pinctrl-0 = <&u0_a_1_default>;
281
+ pinctrl-1 = <&u0_a_1_sleep>;
294282 status = "okay";
295283 };
296284
297285 /* This UART is unused and thus left disabled */
298286 uart@80121000 {
299287 pinctrl-names = "default", "sleep";
300
- pinctrl-0 = <&uart1_default_mode>;
301
- pinctrl-1 = <&uart1_sleep_mode>;
288
+ pinctrl-0 = <&u1rxtx_a_1_default>;
289
+ pinctrl-1 = <&u1rxtx_a_1_sleep>;
302290 };
303291
304292 uart@80007000 {
305293 pinctrl-names = "default", "sleep";
306
- pinctrl-0 = <&uart2_default_mode>;
307
- pinctrl-1 = <&uart2_sleep_mode>;
294
+ pinctrl-0 = <&u2rxtx_c_1_default>;
295
+ pinctrl-1 = <&u2rxtx_c_1_sleep>;
308296 status = "okay";
309297 };
310298
311299 i2c@80004000 {
312300 pinctrl-names = "default","sleep";
313
- pinctrl-0 = <&i2c0_default_mode>;
314
- pinctrl-1 = <&i2c0_sleep_mode>;
301
+ pinctrl-0 = <&i2c0_a_1_default>;
302
+ pinctrl-1 = <&i2c0_a_1_sleep>;
303
+ status = "okay";
315304 };
316305
317306 i2c@80122000 {
318307 pinctrl-names = "default","sleep";
319
- pinctrl-0 = <&i2c1_default_mode>;
320
- pinctrl-1 = <&i2c1_sleep_mode>;
308
+ pinctrl-0 = <&i2c1_b_2_default>;
309
+ pinctrl-1 = <&i2c1_b_2_sleep>;
310
+ status = "okay";
321311 };
322312
323313 i2c@80128000 {
324314 pinctrl-names = "default","sleep";
325
- pinctrl-0 = <&i2c2_default_mode>;
326
- pinctrl-1 = <&i2c2_sleep_mode>;
315
+ pinctrl-0 = <&i2c2_b_2_default>;
316
+ pinctrl-1 = <&i2c2_b_2_sleep>;
317
+ status = "okay";
327318 lsm303dlh@18 {
328319 /* Accelerometer */
329320 compatible = "st,lsm303dlh-accel";
....@@ -372,51 +363,20 @@
372363
373364 i2c@80110000 {
374365 pinctrl-names = "default","sleep";
375
- pinctrl-0 = <&i2c3_default_mode>;
376
- pinctrl-1 = <&i2c3_sleep_mode>;
366
+ pinctrl-0 = <&i2c3_c_2_default>;
367
+ pinctrl-1 = <&i2c3_c_2_sleep>;
368
+ status = "okay";
377369 };
378370
379371 spi@80002000 {
380372 pinctrl-names = "default";
381373 pinctrl-0 = <&ssp0_snowball_mode>;
382
- };
383
-
384
- cpufreq-cooling {
385374 status = "okay";
386375 };
387376
388377 prcmu@80157000 {
389
- cpufreq {
390
- status = "okay";
391
- };
392
-
393
- thermal@801573c0 {
394
- num-trips = <4>;
395
-
396
- trip0-temp = <70000>;
397
- trip0-type = "active";
398
- trip0-cdev-num = <1>;
399
- trip0-cdev-name0 = "thermal-cpufreq-0";
400
-
401
- trip1-temp = <75000>;
402
- trip1-type = "active";
403
- trip1-cdev-num = <1>;
404
- trip1-cdev-name0 = "thermal-cpufreq-0";
405
-
406
- trip2-temp = <80000>;
407
- trip2-type = "active";
408
- trip2-cdev-num = <1>;
409
- trip2-cdev-name0 = "thermal-cpufreq-0";
410
-
411
- trip3-temp = <85000>;
412
- trip3-type = "critical";
413
- trip3-cdev-num = <0>;
414
-
415
- status = "okay";
416
- };
417
-
418378 ab8500 {
419
- ab8500-gpio {
379
+ ab8500-gpiocontroller {
420380 /*
421381 * AB8500 GPIOs are numbered starting from 1, so the first
422382 * index 0 is what in the datasheet is called "GPIO1", and
....@@ -440,8 +400,8 @@
440400
441401 ab8500_usb {
442402 pinctrl-names = "default", "sleep";
443
- pinctrl-0 = <&musb_default_mode>;
444
- pinctrl-1 = <&musb_sleep_mode>;
403
+ pinctrl-0 = <&usb_a_1_default>;
404
+ pinctrl-1 = <&usb_a_1_sleep>;
445405 };
446406
447407 ext_regulators: ab8500-ext-regulators {
....@@ -477,10 +437,6 @@
477437
478438 ab8500_ldo_tvout_reg: ab8500_ldo_tvout {
479439 regulator-name = "V-TVOUT";
480
- };
481
-
482
- ab8500_ldo_usb_reg: ab8500_ldo_usb {
483
- regulator-name = "dummy";
484440 };
485441
486442 ab8500_ldo_audio_reg: ab8500_ldo_audio {