hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/arch/arm64/boot/dts/rockchip/rk3328.dtsi
....@@ -8,10 +8,10 @@
88 #include <dt-bindings/interrupt-controller/arm-gic.h>
99 #include <dt-bindings/interrupt-controller/irq.h>
1010 #include <dt-bindings/pinctrl/rockchip.h>
11
-#include <dt-bindings/soc/rockchip-system-status.h>
12
-#include <dt-bindings/suspend/rockchip-rk3328.h>
1311 #include <dt-bindings/power/rk3328-power.h>
1412 #include <dt-bindings/soc/rockchip,boot-mode.h>
13
+#include <dt-bindings/soc/rockchip-system-status.h>
14
+#include <dt-bindings/suspend/rockchip-rk3328.h>
1515 #include <dt-bindings/thermal/thermal.h>
1616 #include "rk3328-dram-default-timing.dtsi"
1717
....@@ -25,6 +25,10 @@
2525 aliases {
2626 ethernet0 = &gmac2io;
2727 ethernet1 = &gmac2phy;
28
+ gpio0 = &gpio0;
29
+ gpio1 = &gpio1;
30
+ gpio2 = &gpio2;
31
+ gpio3 = &gpio3;
2832 i2c0 = &i2c0;
2933 i2c1 = &i2c1;
3034 i2c2 = &i2c2;
....@@ -40,10 +44,11 @@
4044
4145 cpu0: cpu@0 {
4246 device_type = "cpu";
43
- compatible = "arm,cortex-a53", "arm,armv8";
47
+ compatible = "arm,cortex-a53";
4448 reg = <0x0 0x0>;
4549 clocks = <&cru ARMCLK>;
4650 #cooling-cells = <2>;
51
+ cpu-idle-states = <&CPU_SLEEP>;
4752 dynamic-power-coefficient = <120>;
4853 enable-method = "psci";
4954 next-level-cache = <&l2>;
....@@ -52,10 +57,11 @@
5257
5358 cpu1: cpu@1 {
5459 device_type = "cpu";
55
- compatible = "arm,cortex-a53", "arm,armv8";
60
+ compatible = "arm,cortex-a53";
5661 reg = <0x0 0x1>;
5762 clocks = <&cru ARMCLK>;
5863 #cooling-cells = <2>;
64
+ cpu-idle-states = <&CPU_SLEEP>;
5965 dynamic-power-coefficient = <120>;
6066 enable-method = "psci";
6167 next-level-cache = <&l2>;
....@@ -64,10 +70,11 @@
6470
6571 cpu2: cpu@2 {
6672 device_type = "cpu";
67
- compatible = "arm,cortex-a53", "arm,armv8";
73
+ compatible = "arm,cortex-a53";
6874 reg = <0x0 0x2>;
6975 clocks = <&cru ARMCLK>;
7076 #cooling-cells = <2>;
77
+ cpu-idle-states = <&CPU_SLEEP>;
7178 dynamic-power-coefficient = <120>;
7279 enable-method = "psci";
7380 next-level-cache = <&l2>;
....@@ -76,14 +83,28 @@
7683
7784 cpu3: cpu@3 {
7885 device_type = "cpu";
79
- compatible = "arm,cortex-a53", "arm,armv8";
86
+ compatible = "arm,cortex-a53";
8087 reg = <0x0 0x3>;
8188 clocks = <&cru ARMCLK>;
8289 #cooling-cells = <2>;
90
+ cpu-idle-states = <&CPU_SLEEP>;
8391 dynamic-power-coefficient = <120>;
8492 enable-method = "psci";
8593 next-level-cache = <&l2>;
8694 operating-points-v2 = <&cpu0_opp_table>;
95
+ };
96
+
97
+ idle-states {
98
+ entry-method = "psci";
99
+
100
+ CPU_SLEEP: cpu-sleep {
101
+ compatible = "arm,idle-state";
102
+ local-timer-stop;
103
+ arm,psci-suspend-param = <0x0010000>;
104
+ entry-latency-us = <120>;
105
+ exit-latency-us = <250>;
106
+ min-residency-us = <900>;
107
+ };
87108 };
88109
89110 l2: l2-cache0 {
....@@ -149,21 +170,101 @@
149170 };
150171 };
151172
152
- amba {
153
- compatible = "simple-bus";
154
- #address-cells = <2>;
155
- #size-cells = <2>;
156
- ranges;
173
+ dmc: dmc {
174
+ compatible = "rockchip,rk3328-dmc";
175
+ devfreq-events = <&dfi>;
176
+ clocks = <&cru SCLK_DDRCLK>;
177
+ clock-names = "dmc_clk";
178
+ operating-points-v2 = <&dmc_opp_table>;
179
+ ddr_timing = <&ddr_timing>;
180
+ upthreshold = <40>;
181
+ downdifferential = <20>;
182
+ system-status-freq = <
183
+ /*system status freq(KHz)*/
184
+ SYS_STATUS_NORMAL 786000
185
+ SYS_STATUS_REBOOT 786000
186
+ SYS_STATUS_SUSPEND 786000
187
+ SYS_STATUS_VIDEO_1080P 786000
188
+ SYS_STATUS_VIDEO_4K 786000
189
+ SYS_STATUS_VIDEO_4K_10B 924000
190
+ SYS_STATUS_PERFORMANCE 924000
191
+ SYS_STATUS_BOOST 924000
192
+ >;
193
+ auto-min-freq = <786000>;
194
+ auto-freq-en = <0>;
195
+ #cooling-cells = <2>;
196
+ status = "disabled";
197
+ };
157198
158
- dmac: dmac@ff1f0000 {
159
- compatible = "arm,pl330", "arm,primecell";
160
- reg = <0x0 0xff1f0000 0x0 0x4000>;
161
- interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
162
- <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
163
- clocks = <&cru ACLK_DMAC>;
164
- clock-names = "apb_pclk";
165
- #dma-cells = <1>;
166
- arm,pl330-periph-burst;
199
+ dmc_opp_table: dmc-opp-table {
200
+ compatible = "operating-points-v2";
201
+ rockchip,leakage-voltage-sel = <
202
+ 1 10 0
203
+ 11 254 1
204
+ >;
205
+ nvmem-cells = <&logic_leakage>;
206
+ nvmem-cell-names = "ddr_leakage";
207
+
208
+ opp-400000000 {
209
+ opp-hz = /bits/ 64 <400000000>;
210
+ opp-microvolt = <950000>;
211
+ opp-microvolt-L0 = <950000>;
212
+ opp-microvolt-L1 = <950000>;
213
+ status = "disabled";
214
+ };
215
+ opp-600000000 {
216
+ opp-hz = /bits/ 64 <600000000>;
217
+ opp-microvolt = <1025000>;
218
+ opp-microvolt-L0 = <1025000>;
219
+ opp-microvolt-L1 = <1000000>;
220
+ status = "disabled";
221
+ };
222
+ opp-786000000 {
223
+ opp-hz = /bits/ 64 <786000000>;
224
+ opp-microvolt = <1075000>;
225
+ opp-microvolt-L0 = <1075000>;
226
+ opp-microvolt-L1 = <1050000>;
227
+ };
228
+ opp-798000000 {
229
+ opp-hz = /bits/ 64 <798000000>;
230
+ opp-microvolt = <1075000>;
231
+ opp-microvolt-L0 = <1075000>;
232
+ opp-microvolt-L1 = <1050000>;
233
+ };
234
+ opp-840000000 {
235
+ opp-hz = /bits/ 64 <840000000>;
236
+ opp-microvolt = <1075000>;
237
+ opp-microvolt-L0 = <1075000>;
238
+ opp-microvolt-L1 = <1050000>;
239
+ };
240
+ opp-924000000 {
241
+ opp-hz = /bits/ 64 <924000000>;
242
+ opp-microvolt = <1125000>;
243
+ opp-microvolt-L0 = <1125000>;
244
+ opp-microvolt-L1 = <1100000>;
245
+ };
246
+ /* 1056M is only for ddr4 */
247
+ opp-1056000000 {
248
+ opp-hz = /bits/ 64 <1056000000>;
249
+ opp-microvolt = <1175000>;
250
+ opp-microvolt-L0 = <1175000>;
251
+ opp-microvolt-L1 = <1150000>;
252
+ status = "disabled";
253
+ };
254
+ };
255
+
256
+ analog_sound: analog-sound {
257
+ compatible = "simple-audio-card";
258
+ simple-audio-card,format = "i2s";
259
+ simple-audio-card,mclk-fs = <256>;
260
+ simple-audio-card,name = "rockchip,rk3328";
261
+
262
+ simple-audio-card,cpu {
263
+ sound-dai = <&i2s1>;
264
+ };
265
+
266
+ simple-audio-card,codec {
267
+ sound-dai = <&codec>;
167268 };
168269 };
169270
....@@ -182,10 +283,38 @@
182283 nvmem-cell-names = "id", "cpu-version";
183284 };
184285
286
+ display_subsystem: display-subsystem {
287
+ compatible = "rockchip,display-subsystem";
288
+ ports = <&vop_out>;
289
+ status = "disabled";
290
+ };
291
+
185292 firmware {
186
- optee: optee {
293
+ optee {
187294 compatible = "linaro,optee-tz";
188295 method = "smc";
296
+ };
297
+ };
298
+
299
+ gmac_clkin: external-gmac-clock {
300
+ compatible = "fixed-clock";
301
+ clock-frequency = <125000000>;
302
+ clock-output-names = "gmac_clkin";
303
+ #clock-cells = <0>;
304
+ };
305
+
306
+ hdmi_sound: hdmi-sound {
307
+ compatible = "simple-audio-card";
308
+ simple-audio-card,format = "i2s";
309
+ simple-audio-card,mclk-fs = <128>;
310
+ simple-audio-card,name = "rockchip,hdmi";
311
+
312
+ simple-audio-card,cpu {
313
+ sound-dai = <&i2s0>;
314
+ };
315
+
316
+ simple-audio-card,codec {
317
+ sound-dai = <&hdmi>;
189318 };
190319 };
191320
....@@ -196,18 +325,34 @@
196325
197326 rockchip_suspend: rockchip-suspend {
198327 compatible = "rockchip,pm-rk3328";
199
- status = "disabled";
200328 rockchip,sleep-mode-config = <0>;
201329 rockchip,virtual-poweroff = <0>;
330
+ status = "disabled";
202331 };
203332
204333 rockchip_system_monitor: rockchip-system-monitor {
205334 compatible = "rockchip,system-monitor";
206
-
207335 rockchip,thermal-zone = "soc-thermal";
208336 rockchip,polling-delay = <200>; /* milliseconds */
209
-
210337 rockchip,video-4k-offline-cpus = "3";
338
+ };
339
+
340
+ spdif_out: spdif-out {
341
+ compatible = "linux,spdif-dit";
342
+ #sound-dai-cells = <0>;
343
+ };
344
+
345
+ spdif_sound: spdif-sound {
346
+ compatible = "simple-audio-card";
347
+ simple-audio-card,name = "rockchip,spdif";
348
+
349
+ simple-audio-card,cpu {
350
+ sound-dai = <&spdif>;
351
+ };
352
+
353
+ simple-audio-card,codec {
354
+ sound-dai = <&spdif_out>;
355
+ };
211356 };
212357
213358 timer {
....@@ -225,6 +370,13 @@
225370 clock-output-names = "xin24m";
226371 };
227372
373
+ xin32k: xin32k {
374
+ compatible = "fixed-clock";
375
+ clock-frequency = <32768>;
376
+ clock-output-names = "xin32k";
377
+ #clock-cells = <0>;
378
+ };
379
+
228380 i2s0: i2s@ff000000 {
229381 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
230382 reg = <0x0 0xff000000 0x0 0x1000>;
....@@ -235,6 +387,7 @@
235387 dma-names = "tx", "rx";
236388 resets = <&cru SRST_I2S0>, <&cru SRST_I2S0_H>;
237389 reset-names = "reset-m", "reset-h";
390
+ #sound-dai-cells = <0>;
238391 status = "disabled";
239392 };
240393
....@@ -248,6 +401,7 @@
248401 dma-names = "tx", "rx";
249402 resets = <&cru SRST_I2S1>, <&cru SRST_I2S1_H>;
250403 reset-names = "reset-m", "reset-h";
404
+ #sound-dai-cells = <0>;
251405 status = "disabled";
252406 };
253407
....@@ -269,6 +423,7 @@
269423 &i2s2m0_sdo
270424 &i2s2m0_sdi>;
271425 pinctrl-1 = <&i2s2m0_sleep>;
426
+ #sound-dai-cells = <0>;
272427 status = "disabled";
273428 };
274429
....@@ -281,12 +436,13 @@
281436 dmas = <&dmac 10>;
282437 dma-names = "tx";
283438 pinctrl-names = "default";
284
- pinctrl-0 = <&spdifm2_tx>;
439
+ pinctrl-0 = <&spdifm0_tx>;
440
+ #sound-dai-cells = <0>;
285441 status = "disabled";
286442 };
287443
288444 pdm: pdm@ff040000 {
289
- compatible = "rockchip,rk3328-pdm";
445
+ compatible = "rockchip,pdm";
290446 reg = <0x0 0xff040000 0x0 0x1000>;
291447 clocks = <&cru SCLK_PDM>, <&cru HCLK_PDM>;
292448 clock-names = "pdm_clk", "pdm_hclk";
....@@ -294,11 +450,13 @@
294450 dma-names = "rx";
295451 pinctrl-names = "default", "sleep";
296452 pinctrl-0 = <&pdmm0_clk
453
+ &pdmm0_fsync
297454 &pdmm0_sdi0
298455 &pdmm0_sdi1
299456 &pdmm0_sdi2
300457 &pdmm0_sdi3>;
301458 pinctrl-1 = <&pdmm0_clk_sleep
459
+ &pdmm0_fsync_sleep
302460 &pdmm0_sdi0_sleep
303461 &pdmm0_sdi1_sleep
304462 &pdmm0_sdi2_sleep
....@@ -344,12 +502,16 @@
344502 grf: syscon@ff100000 {
345503 compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd";
346504 reg = <0x0 0xff100000 0x0 0x1000>;
347
- #address-cells = <1>;
348
- #size-cells = <1>;
349505
350506 io_domains: io-domains {
351507 compatible = "rockchip,rk3328-io-voltage-domain";
352508 status = "disabled";
509
+ };
510
+
511
+ grf_gpio: grf-gpio {
512
+ compatible = "rockchip,rk3328-grf-gpio";
513
+ gpio-controller;
514
+ #gpio-cells = <2>;
353515 };
354516
355517 power: power-controller {
....@@ -359,10 +521,10 @@
359521 #size-cells = <0>;
360522 status = "okay";
361523
362
- pd_hevc@RK3328_PD_HEVC {
524
+ power-domain@RK3328_PD_HEVC {
363525 reg = <RK3328_PD_HEVC>;
364526 };
365
- pd_video@RK3328_PD_VIDEO {
527
+ power-domain@RK3328_PD_VIDEO {
366528 reg = <RK3328_PD_VIDEO>;
367529 clocks = <&cru ACLK_RKVDEC>,
368530 <&cru HCLK_RKVDEC>,
....@@ -370,7 +532,7 @@
370532 <&cru SCLK_VDEC_CORE>;
371533 pm_qos = <&qos_rkvdec_r>, <&qos_rkvdec_w>;
372534 };
373
- pd_vpu@RK3328_PD_VPU {
535
+ power-domain@RK3328_PD_VPU {
374536 reg = <RK3328_PD_VPU>;
375537 clocks = <&cru ACLK_VPU>,
376538 <&cru HCLK_VPU>;
....@@ -381,12 +543,65 @@
381543 reboot_mode: reboot-mode {
382544 compatible = "syscon-reboot-mode";
383545 offset = <0x5c8>;
546
+ mode-bootloader = <BOOT_BL_DOWNLOAD>;
547
+ mode-charge = <BOOT_CHARGING>;
548
+ mode-fastboot = <BOOT_FASTBOOT>;
549
+ mode-loader = <BOOT_BL_DOWNLOAD>;
384550 mode-normal = <BOOT_NORMAL>;
385551 mode-recovery = <BOOT_RECOVERY>;
386
- mode-bootloader = <BOOT_FASTBOOT>;
387
- mode-loader = <BOOT_BL_DOWNLOAD>;
552
+ mode-ums = <BOOT_UMS>;
388553 };
554
+ };
389555
556
+ thermal-zones {
557
+ soc_thermal: soc-thermal {
558
+ polling-delay-passive = <20>; /* milliseconds */
559
+ polling-delay = <1000>; /* milliseconds */
560
+ sustainable-power = <1000>; /* milliwatts */
561
+
562
+ thermal-sensors = <&tsadc 0>;
563
+
564
+ trips {
565
+ threshold: trip-point-0 {
566
+ temperature = <70000>; /* millicelsius */
567
+ hysteresis = <2000>; /* millicelsius */
568
+ type = "passive";
569
+ };
570
+ target: trip-point-1 {
571
+ temperature = <85000>; /* millicelsius */
572
+ hysteresis = <2000>; /* millicelsius */
573
+ type = "passive";
574
+ };
575
+ soc_crit: soc-crit {
576
+ temperature = <115000>; /* millicelsius */
577
+ hysteresis = <2000>; /* millicelsius */
578
+ type = "critical";
579
+ };
580
+ };
581
+
582
+ cooling-maps {
583
+ map0 {
584
+ trip = <&target>;
585
+ cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
586
+ contribution = <4096>;
587
+ };
588
+ map1 {
589
+ trip = <&target>;
590
+ cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
591
+ contribution = <4096>;
592
+ };
593
+ map2 {
594
+ trip = <&target>;
595
+ cooling-device = <&rkvdec THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
596
+ contribution = <1024>;
597
+ };
598
+ map3 {
599
+ trip = <&target>;
600
+ cooling-device = <&dmc THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
601
+ contribution = <1024>;
602
+ };
603
+ };
604
+ };
390605 };
391606
392607 uart0: serial@ff110000 {
....@@ -432,6 +647,11 @@
432647 reg-io-width = <4>;
433648 reg-shift = <2>;
434649 status = "disabled";
650
+ };
651
+
652
+ pmu: power-management@ff140000 {
653
+ compatible = "rockchip,rk3328-pmu", "syscon", "simple-mfd";
654
+ reg = <0x0 0xff140000 0x0 0x1000>;
435655 };
436656
437657 i2c0: i2c@ff150000 {
....@@ -506,11 +726,13 @@
506726 reg = <0x0 0xff1a0000 0x0 0x100>;
507727 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
508728 clocks = <&cru PCLK_BUS_PRE>;
729
+ status = "disabled";
509730 };
510731
511732 pwm0: pwm@ff1b0000 {
512733 compatible = "rockchip,rk3328-pwm";
513734 reg = <0x0 0xff1b0000 0x0 0x10>;
735
+ interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
514736 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
515737 clock-names = "pwm", "pclk";
516738 pinctrl-names = "active";
....@@ -522,6 +744,7 @@
522744 pwm1: pwm@ff1b0010 {
523745 compatible = "rockchip,rk3328-pwm";
524746 reg = <0x0 0xff1b0010 0x0 0x10>;
747
+ interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
525748 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
526749 clock-names = "pwm", "pclk";
527750 pinctrl-names = "active";
....@@ -533,6 +756,7 @@
533756 pwm2: pwm@ff1b0020 {
534757 compatible = "rockchip,rk3328-pwm";
535758 reg = <0x0 0xff1b0020 0x0 0x10>;
759
+ interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
536760 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
537761 clock-names = "pwm", "pclk";
538762 pinctrl-names = "active";
....@@ -553,56 +777,15 @@
553777 status = "disabled";
554778 };
555779
556
- thermal-zones {
557
- soc_thermal: soc-thermal {
558
- polling-delay-passive = <20>;
559
- polling-delay = <1000>;
560
- sustainable-power = <1000>;
561
-
562
- thermal-sensors = <&tsadc 0>;
563
-
564
- trips {
565
- threshold: trip-point0 {
566
- temperature = <70000>;
567
- hysteresis = <2000>;
568
- type = "passive";
569
- };
570
- target: trip-point1 {
571
- temperature = <85000>;
572
- hysteresis = <2000>;
573
- type = "passive";
574
- };
575
- soc_crit: soc-crit {
576
- temperature = <115000>;
577
- hysteresis = <2000>;
578
- type = "critical";
579
- };
580
- };
581
-
582
- cooling-maps {
583
- map0 {
584
- trip = <&target>;
585
- cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
586
- contribution = <4096>;
587
- };
588
- map1 {
589
- trip = <&target>;
590
- cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
591
- contribution = <4096>;
592
- };
593
- map2 {
594
- trip = <&target>;
595
- cooling-device = <&rkvdec THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
596
- contribution = <1024>;
597
- };
598
- map3 {
599
- trip = <&target>;
600
- cooling-device = <&dmc THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
601
- contribution = <1024>;
602
- };
603
- };
604
- };
605
-
780
+ dmac: dma-controller@ff1f0000 {
781
+ compatible = "arm,pl330", "arm,primecell";
782
+ reg = <0x0 0xff1f0000 0x0 0x4000>;
783
+ interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
784
+ <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
785
+ arm,pl330-periph-burst;
786
+ clocks = <&cru ACLK_DMAC>;
787
+ clock-names = "apb_pclk";
788
+ #dma-cells = <1>;
606789 };
607790
608791 tsadc: tsadc@ff250000 {
....@@ -614,12 +797,12 @@
614797 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
615798 clock-names = "tsadc", "apb_pclk";
616799 pinctrl-names = "gpio", "otpout";
617
- pinctrl-0 = <&otp_gpio>;
800
+ pinctrl-0 = <&otp_pin>;
618801 pinctrl-1 = <&otp_out>;
619802 resets = <&cru SRST_TSADC>;
620803 reset-names = "tsadc-apb";
621804 rockchip,grf = <&grf>;
622
- rockchip,hw-tshut-temp = <120000>;
805
+ rockchip,hw-tshut-temp = <100000>;
623806 #thermal-sensor-cells = <1>;
624807 status = "disabled";
625808 };
....@@ -664,7 +847,6 @@
664847 gpu: gpu@ff300000 {
665848 compatible = "arm,mali-450";
666849 reg = <0x0 0xff300000 0x0 0x30000>;
667
-
668850 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
669851 <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>,
670852 <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
....@@ -683,6 +865,7 @@
683865 clock-names = "clk_mali";
684866 #cooling-cells = <2>; /* min followed by max */
685867 operating-points-v2 = <&gpu_opp_table>;
868
+ resets = <&cru SRST_GPU_A>;
686869 status = "disabled";
687870
688871 gpu_power_model: power_model {
....@@ -738,37 +921,8 @@
738921 rockchip,resetgroup-count = <4>;
739922 rockchip,grf = <&grf>;
740923 rockchip,grf-offset = <0x040c>;
741
- rockchip,grf-values = <0x8000000>, <0x8000800>;
742
- rockchip,grf-names = "grf_vepu2", "grf_vepu22";
743
- status = "disabled";
744
- };
745
-
746
- vepu22: vepu22@ff330000 {
747
- compatible = "rockchip,hevc-encoder-v22";
748
- reg = <0x0 0xff330000 0 0x200>;
749
- interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
750
- clocks = <&cru ACLK_H265>, <&cru PCLK_H265>,
751
- <&cru SCLK_VENC_CORE>, <&cru SCLK_VENC_DSP>,
752
- <&cru ACLK_RKVENC>, <&cru ACLK_AXISRAM>;
753
- clock-names = "aclk_h265", "pclk_h265", "clk_core",
754
- "clk_dsp", "aclk_venc", "aclk_axi2sram";
755
- iommus = <&vepu22_mmu>;
756
- rockchip,srv = <&mpp_srv>;
757
- rockchip,taskqueue-node = <2>;
758
- rockchip,resetgroup-node = <2>;
759
- power-domains = <&power RK3328_PD_HEVC>;
760
- status = "disabled";
761
- };
762
-
763
- vepu22_mmu: iommu@ff330200 {
764
- compatible = "rockchip,iommu";
765
- reg = <0x0 0xff330200 0 0x100>;
766
- interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
767
- interrupt-names = "vepu22_mmu";
768
- clocks = <&cru ACLK_H265>, <&cru PCLK_H265>;
769
- clock-names = "aclk", "iface";
770
- power-domains = <&power RK3328_PD_HEVC>;
771
- #iommu-cells = <0>;
924
+ rockchip,grf-values = <0x8000000>;
925
+ rockchip,grf-names = "grf_vepu2";
772926 status = "disabled";
773927 };
774928
....@@ -779,7 +933,7 @@
779933 clocks = <&cru ACLK_H264>, <&cru HCLK_H264>;
780934 clock-names = "aclk_vcodec", "hclk_vcodec";
781935 resets = <&cru SRST_RKVENC_H264_A>,
782
- <&cru SRST_RKVENC_H264_H>;
936
+ <&cru SRST_RKVENC_H264_H>;
783937 reset-names = "video_a", "video_h";
784938 iommus = <&vepu_mmu>;
785939 rockchip,srv = <&mpp_srv>;
....@@ -823,10 +977,10 @@
823977 reg = <0x0 0xff350800 0x0 0x40>;
824978 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
825979 interrupt-names = "vpu_mmu";
826
- clock-names = "aclk", "iface";
827980 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
828
- power-domains = <&power RK3328_PD_VPU>;
981
+ clock-names = "aclk", "iface";
829982 #iommu-cells = <0>;
983
+ power-domains = <&power RK3328_PD_VPU>;
830984 status = "disabled";
831985 };
832986
....@@ -848,7 +1002,7 @@
8481002 };
8491003
8501004 rkvdec: rkvdec@ff36000 {
851
- compatible = "rockchip,rkv-decoder-rk3328";
1005
+ compatible = "rockchip,rkv-decoder-rk3328", "rockchip,rkv-decoder-v2";
8521006 reg = <0x0 0xff360000 0x0 0x400>;
8531007 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
8541008 interrupt-names = "irq_dec";
....@@ -920,8 +1074,8 @@
9201074 interrupt-names = "rkvdec_mmu";
9211075 clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>;
9221076 clock-names = "aclk", "iface";
923
- power-domains = <&power RK3328_PD_VIDEO>;
9241077 #iommu-cells = <0>;
1078
+ power-domains = <&power RK3328_PD_VIDEO>;
9251079 status = "disabled";
9261080 };
9271081
....@@ -953,6 +1107,32 @@
9531107 };
9541108 };
9551109
1110
+ tve: tve@ff373e00 {
1111
+ compatible = "rockchip,rk3328-tve";
1112
+ reg = <0x0 0xff373e00 0x0 0x100>,
1113
+ <0x0 0xff420000 0x0 0x10000>;
1114
+ rockchip,saturation = <0x00376749>;
1115
+ rockchip,brightcontrast = <0x0000a305>;
1116
+ rockchip,adjtiming = <0xb6c00880>;
1117
+ rockchip,lumafilter0 = <0x01ff0000>;
1118
+ rockchip,lumafilter1 = <0xf40200fe>;
1119
+ rockchip,lumafilter2 = <0xf332d70c>;
1120
+ rockchip,daclevel = <0x22>;
1121
+ rockchip,dac1level = <0x7>;
1122
+ status = "disabled";
1123
+
1124
+ ports {
1125
+ tve_in: port {
1126
+ #address-cells = <1>;
1127
+ #size-cells = <0>;
1128
+ tve_in_vop: endpoint@0 {
1129
+ reg = <0>;
1130
+ remote-endpoint = <&vop_out_tve>;
1131
+ };
1132
+ };
1133
+ };
1134
+ };
1135
+
9561136 vop_mmu: iommu@ff373f00 {
9571137 compatible = "rockchip,iommu";
9581138 reg = <0x0 0xff373f00 0x0 0x100>;
....@@ -961,6 +1141,17 @@
9611141 clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
9621142 clock-names = "aclk", "iface";
9631143 #iommu-cells = <0>;
1144
+ status = "disabled";
1145
+ };
1146
+
1147
+ cif: cif@ff380000 {
1148
+ compatible = "rockchip,cif", "rockchip,rk3328-cif";
1149
+ reg = <0x0 0xff380000 0x0 0x400>;
1150
+ interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
1151
+ clocks = <&cru ACLK_CIF>, <&cru HCLK_CIF>;
1152
+ clock-names = "aclk_cif", "hclk_cif";
1153
+ resets = <&cru SRST_CIF_A>, <&cru SRST_CIF_H>, <&cru SRST_CIF_P>;
1154
+ reset-names = "rst_cif_a", "rst_cif_h", "rst_cif_p";
9641155 status = "disabled";
9651156 };
9661157
....@@ -994,7 +1185,7 @@
9941185 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
9951186 interrupt-names = "iep_mmu";
9961187 clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>;
997
- clock-names = "aclk", "iface";
1188
+ clock-names = "aclk", "hclk";
9981189 power-domains = <&power RK3328_PD_VIDEO>;
9991190 #iommu-cells = <0>;
10001191 status = "disabled";
....@@ -1008,23 +1199,21 @@
10081199 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
10091200 clocks = <&cru PCLK_HDMI>,
10101201 <&cru SCLK_HDMI_SFC>,
1011
- <&cru SCLK_RTC32K>,
1012
- <&cru HCLK_VIO>;
1202
+ <&cru SCLK_RTC32K>;
10131203 clock-names = "iahb",
10141204 "isfr",
1015
- "cec",
1016
- "hclk_vio";
1205
+ "cec";
10171206 phys = <&hdmiphy>;
10181207 phy-names = "hdmi";
1019
- pinctrl-names = "default", "gpio";
1208
+ pinctrl-names = "default", "pin";
10201209 pinctrl-0 = <&hdmi_cec &hdmii2c_xfer &hdmi_hpd>;
1021
- pinctrl-1 = <&i2c3_gpio>;
1210
+ pinctrl-1 = <&i2c3_pins>;
10221211 resets = <&cru SRST_HDMI_P>,
10231212 <&cru SRST_HDMIPHY>;
10241213 reset-names = "hdmi",
10251214 "hdmiphy";
10261215 rockchip,grf = <&grf>;
1027
- max-tmdsclk = <371250>;
1216
+ #sound-dai-cells = <0>;
10281217 status = "disabled";
10291218
10301219 ports {
....@@ -1039,56 +1228,27 @@
10391228 };
10401229 };
10411230
1042
- tve: tve@ff373e00 {
1043
- compatible = "rockchip,rk3328-tve";
1044
- reg = <0x0 0xff373e00 0x0 0x100>,
1045
- <0x0 0xff420000 0x0 0x10000>;
1046
- rockchip,saturation = <0x00376749>;
1047
- rockchip,brightcontrast = <0x0000a305>;
1048
- rockchip,adjtiming = <0xb6c00880>;
1049
- rockchip,lumafilter0 = <0x01ff0000>;
1050
- rockchip,lumafilter1 = <0xf40200fe>;
1051
- rockchip,lumafilter2 = <0xf332d70c>;
1052
- rockchip,daclevel = <0x22>;
1053
- rockchip,dac1level = <0x7>;
1054
- status = "disabled";
1055
-
1056
- ports {
1057
- tve_in: port {
1058
- #address-cells = <1>;
1059
- #size-cells = <0>;
1060
- tve_in_vop: endpoint@0 {
1061
- reg = <0>;
1062
- remote-endpoint = <&vop_out_tve>;
1063
- };
1064
- };
1065
- };
1066
- };
1067
-
1068
- display_subsystem: display-subsystem {
1069
- compatible = "rockchip,display-subsystem";
1070
- ports = <&vop_out>;
1071
- status = "disabled";
1072
- };
1073
-
10741231 codec: codec@ff410000 {
10751232 compatible = "rockchip,rk3328-codec";
10761233 reg = <0x0 0xff410000 0x0 0x1000>;
1077
- rockchip,grf = <&grf>;
1078
- clocks = <&cru PCLK_ACODEC>, <&cru SCLK_I2S1>;
1234
+ clocks = <&cru PCLK_ACODECPHY>, <&cru SCLK_I2S1>;
10791235 clock-names = "pclk", "mclk";
1236
+ rockchip,grf = <&grf>;
1237
+ #sound-dai-cells = <0>;
10801238 status = "disabled";
10811239 };
10821240
1083
- hdmiphy: hdmiphy@ff430000 {
1241
+ hdmiphy: phy@ff430000 {
10841242 compatible = "rockchip,rk3328-hdmi-phy";
10851243 reg = <0x0 0xff430000 0x0 0x10000>;
10861244 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
1087
- #phy-cells = <0>;
1088
- clocks = <&cru PCLK_HDMIPHY>, <&xin24m>;
1089
- clock-names = "sysclk", "refclk";
1090
- #clock-cells = <0>;
1245
+ clocks = <&cru PCLK_HDMIPHY>, <&xin24m>, <&cru DCLK_HDMIPHY>;
1246
+ clock-names = "sysclk", "refclk", "refpclk";
10911247 clock-output-names = "hdmi_phy";
1248
+ #clock-cells = <0>;
1249
+ nvmem-cells = <&efuse_cpu_version>;
1250
+ nvmem-cell-names = "cpu-version";
1251
+ #phy-cells = <0>;
10921252 status = "disabled";
10931253 };
10941254
....@@ -1109,7 +1269,8 @@
11091269 <&cru SCLK_RTC32K>, <&cru SCLK_UART0>,
11101270 <&cru SCLK_UART1>, <&cru SCLK_UART2>,
11111271 <&cru ACLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
1112
- <&cru ACLK_RGA_PRE>, <&cru ACLK_RKVDEC_PRE>,
1272
+ <&cru ACLK_VIO_PRE>, <&cru ACLK_RGA_PRE>,
1273
+ <&cru ACLK_VOP_PRE>, <&cru ACLK_RKVDEC_PRE>,
11131274 <&cru ACLK_RKVENC>, <&cru ACLK_VPU_PRE>,
11141275 <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>,
11151276 <&cru SCLK_VENC_CORE>, <&cru SCLK_VENC_DSP>,
....@@ -1119,8 +1280,7 @@
11191280 <&cru ACLK_BUS_PRE>, <&cru HCLK_BUS_PRE>,
11201281 <&cru PCLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
11211282 <&cru HCLK_PERI>, <&cru PCLK_PERI>,
1122
- <&cru SCLK_RTC32K>, <&cru ACLK_VOP>,
1123
- <&cru ACLK_GMAC>;
1283
+ <&cru SCLK_RTC32K>;
11241284 assigned-clock-parents =
11251285 <&cru HDMIPHY>, <&cru PLL_APLL>,
11261286 <&cru PLL_GPLL>, <&xin24m>,
....@@ -1131,6 +1291,7 @@
11311291 <24000000>, <24000000>,
11321292 <15000000>, <15000000>,
11331293 <100000000>, <100000000>,
1294
+ <100000000>, <100000000>,
11341295 <50000000>, <100000000>,
11351296 <100000000>, <100000000>,
11361297 <50000000>, <50000000>,
....@@ -1140,8 +1301,7 @@
11401301 <150000000>, <75000000>,
11411302 <75000000>, <150000000>,
11421303 <75000000>, <75000000>,
1143
- <32768>, <400000000>,
1144
- <180000000>;
1304
+ <32768>;
11451305 };
11461306
11471307 usb2phy_grf: syscon@ff450000 {
....@@ -1222,7 +1382,7 @@
12221382 };
12231383 };
12241384
1225
- sdmmc: dwmmc@ff500000 {
1385
+ sdmmc: mmc@ff500000 {
12261386 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
12271387 reg = <0x0 0xff500000 0x0 0x4000>;
12281388 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1234,7 +1394,7 @@
12341394 status = "disabled";
12351395 };
12361396
1237
- sdio: dwmmc@ff510000 {
1397
+ sdio: mmc@ff510000 {
12381398 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
12391399 reg = <0x0 0xff510000 0x0 0x4000>;
12401400 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1246,7 +1406,7 @@
12461406 status = "disabled";
12471407 };
12481408
1249
- emmc: dwmmc@ff520000 {
1409
+ emmc: mmc@ff520000 {
12501410 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
12511411 reg = <0x0 0xff520000 0x0 0x4000>;
12521412 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1274,6 +1434,7 @@
12741434 resets = <&cru SRST_GMAC2IO_A>;
12751435 reset-names = "stmmaceth";
12761436 rockchip,grf = <&grf>;
1437
+ snps,txpbl = <0x4>;
12771438 status = "disabled";
12781439 };
12791440
....@@ -1302,7 +1463,7 @@
13021463 #address-cells = <1>;
13031464 #size-cells = <0>;
13041465
1305
- phy: phy@0 {
1466
+ phy: ethernet-phy@0 {
13061467 compatible = "ethernet-phy-id1234.d400", "ethernet-phy-ieee802.3-c22";
13071468 reg = <0>;
13081469 clocks = <&cru SCLK_MAC2PHY_OUT>;
....@@ -1319,13 +1480,12 @@
13191480 "snps,dwc2";
13201481 reg = <0x0 0xff580000 0x0 0x40000>;
13211482 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
1322
- clocks = <&cru HCLK_OTG>;
1323
- clock-names = "otg";
1483
+ clocks = <&cru HCLK_OTG>, <&cru HCLK_OTG_PMU>;
1484
+ clock-names = "otg", "otg_pmu";
13241485 dr_mode = "otg";
13251486 g-np-tx-fifo-size = <16>;
13261487 g-rx-fifo-size = <280>;
13271488 g-tx-fifo-size = <256 128 128 64 32 16>;
1328
- g-use-dma;
13291489 phys = <&u2phy_otg>;
13301490 phy-names = "usb2-phy";
13311491 status = "disabled";
....@@ -1335,8 +1495,9 @@
13351495 compatible = "generic-ehci";
13361496 reg = <0x0 0xff5c0000 0x0 0x10000>;
13371497 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1338
- clocks = <&cru HCLK_HOST0>, <&u2phy>;
1339
- clock-names = "usbhost", "utmi";
1498
+ clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
1499
+ <&u2phy>;
1500
+ clock-names = "usbhost", "arbiter", "utmi";
13401501 phys = <&u2phy_host>;
13411502 phy-names = "usb";
13421503 status = "disabled";
....@@ -1346,27 +1507,28 @@
13461507 compatible = "generic-ohci";
13471508 reg = <0x0 0xff5d0000 0x0 0x10000>;
13481509 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1349
- clocks = <&cru HCLK_HOST0>, <&u2phy>;
1350
- clock-names = "usbhost", "utmi";
1510
+ clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
1511
+ <&u2phy>;
1512
+ clock-names = "usbhost", "arbiter", "utmi";
13511513 phys = <&u2phy_host>;
13521514 phy-names = "usb";
13531515 status = "disabled";
13541516 };
13551517
1356
- sdmmc_ext: dwmmc@ff5f0000 {
1518
+ sdmmc_ext: mmc@ff5f0000 {
13571519 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
13581520 reg = <0x0 0xff5f0000 0x0 0x4000>;
13591521 clock-freq-min-max = <400000 150000000>;
13601522 clocks = <&cru HCLK_SDMMC_EXT>, <&cru SCLK_SDMMC_EXT>,
13611523 <&cru SCLK_SDMMC_EXT_DRV>, <&cru SCLK_SDMMC_EXT_SAMPLE>;
1362
- clock-names = "biu", "ciu", "ciu-drv", "ciu-sample";
1524
+ clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
13631525 fifo-depth = <0x100>;
13641526 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
13651527 status = "disabled";
13661528 };
13671529
1368
- usbdrd3: usb@ff600000 {
1369
- compatible = "rockchip,rk3328-dwc3";
1530
+ usbdrd3: usbdrd {
1531
+ compatible = "rockchip,rk3328-dwc3", "snps,dwc3";
13701532 clocks = <&cru SCLK_USB3OTG_REF>, <&cru SCLK_USB3OTG_SUSPEND>,
13711533 <&cru ACLK_USB3OTG>;
13721534 clock-names = "ref_clk", "suspend_clk",
....@@ -1384,13 +1546,14 @@
13841546 phys = <&u3phy_utmi>, <&u3phy_pipe>;
13851547 phy-names = "usb2-phy", "usb3-phy";
13861548 phy_type = "utmi_wide";
1549
+ snps,dis-del-phy-power-chg-quirk;
13871550 snps,dis_enblslpm_quirk;
1551
+ snps,dis-tx-ipgap-linecheck-quirk;
13881552 snps,dis-u2-freeclk-exists-quirk;
13891553 snps,dis_u2_susphy_quirk;
1390
- snps,dis-u3-autosuspend-quirk;
13911554 snps,dis_u3_susphy_quirk;
1392
- snps,dis-del-phy-power-chg-quirk;
1393
- snps,tx-ipgap-linecheck-dis-quirk;
1555
+ snps,parkmode-disable-hs-quirk;
1556
+ snps,parkmode-disable-ss-quirk;
13941557 status = "disabled";
13951558 };
13961559 };
....@@ -1411,102 +1574,10 @@
14111574 };
14121575
14131576 dfi: dfi@ff790000 {
1414
- reg = <0x00 0xff790000 0x00 0x400>;
14151577 compatible = "rockchip,rk3328-dfi";
1578
+ reg = <0x00 0xff790000 0x00 0x400>;
14161579 rockchip,grf = <&grf>;
14171580 status = "disabled";
1418
- };
1419
-
1420
- dmc: dmc {
1421
- compatible = "rockchip,rk3328-dmc";
1422
- devfreq-events = <&dfi>;
1423
- clocks = <&cru SCLK_DDRCLK>;
1424
- clock-names = "dmc_clk";
1425
- operating-points-v2 = <&dmc_opp_table>;
1426
- ddr_timing = <&ddr_timing>;
1427
- upthreshold = <40>;
1428
- downdifferential = <20>;
1429
- system-status-freq = <
1430
- /*system status freq(KHz)*/
1431
- SYS_STATUS_NORMAL 786000
1432
- SYS_STATUS_REBOOT 786000
1433
- SYS_STATUS_SUSPEND 786000
1434
- SYS_STATUS_VIDEO_1080P 786000
1435
- SYS_STATUS_VIDEO_4K 786000
1436
- SYS_STATUS_VIDEO_4K_10B 933000
1437
- SYS_STATUS_PERFORMANCE 933000
1438
- SYS_STATUS_BOOST 933000
1439
- >;
1440
- auto-min-freq = <786000>;
1441
- auto-freq-en = <0>;
1442
- #cooling-cells = <2>;
1443
- status = "disabled";
1444
-
1445
- ddr_power_model: ddr_power_model {
1446
- compatible = "ddr_power_model";
1447
- dynamic-power-coefficient = <120>;
1448
- static-power-coefficient = <200>;
1449
- ts = <32000 4700 (-80) 2>;
1450
- thermal-zone = "soc-thermal";
1451
- };
1452
- };
1453
-
1454
- dmc_opp_table: dmc-opp-table {
1455
- compatible = "operating-points-v2";
1456
-
1457
- rockchip,leakage-voltage-sel = <
1458
- 1 10 0
1459
- 11 254 1
1460
- >;
1461
- nvmem-cells = <&logic_leakage>;
1462
- nvmem-cell-names = "ddr_leakage";
1463
-
1464
- opp-400000000 {
1465
- opp-hz = /bits/ 64 <400000000>;
1466
- opp-microvolt = <950000>;
1467
- opp-microvolt-L0 = <950000>;
1468
- opp-microvolt-L1 = <950000>;
1469
- status = "disabled";
1470
- };
1471
- opp-600000000 {
1472
- opp-hz = /bits/ 64 <600000000>;
1473
- opp-microvolt = <1025000>;
1474
- opp-microvolt-L0 = <1025000>;
1475
- opp-microvolt-L1 = <1000000>;
1476
- status = "disabled";
1477
- };
1478
- opp-786000000 {
1479
- opp-hz = /bits/ 64 <786000000>;
1480
- opp-microvolt = <1075000>;
1481
- opp-microvolt-L0 = <1075000>;
1482
- opp-microvolt-L1 = <1050000>;
1483
- };
1484
- opp-800000000 {
1485
- opp-hz = /bits/ 64 <800000000>;
1486
- opp-microvolt = <1075000>;
1487
- opp-microvolt-L0 = <1075000>;
1488
- opp-microvolt-L1 = <1050000>;
1489
- };
1490
- opp-850000000 {
1491
- opp-hz = /bits/ 64 <850000000>;
1492
- opp-microvolt = <1075000>;
1493
- opp-microvolt-L0 = <1075000>;
1494
- opp-microvolt-L1 = <1050000>;
1495
- };
1496
- opp-933000000 {
1497
- opp-hz = /bits/ 64 <933000000>;
1498
- opp-microvolt = <1125000>;
1499
- opp-microvolt-L0 = <1125000>;
1500
- opp-microvolt-L1 = <1100000>;
1501
- };
1502
- /* 1066M is only for ddr4 */
1503
- opp-1066000000 {
1504
- opp-hz = /bits/ 64 <1066000000>;
1505
- opp-microvolt = <1175000>;
1506
- opp-microvolt-L0 = <1175000>;
1507
- opp-microvolt-L1 = <1150000>;
1508
- status = "disabled";
1509
- };
15101581 };
15111582
15121583 gic: interrupt-controller@ff811000 {
....@@ -1529,7 +1600,7 @@
15291600 #size-cells = <2>;
15301601 ranges;
15311602
1532
- gpio0: gpio0@ff210000 {
1603
+ gpio0: gpio@ff210000 {
15331604 compatible = "rockchip,gpio-bank";
15341605 reg = <0x0 0xff210000 0x0 0x100>;
15351606 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1542,7 +1613,7 @@
15421613 #interrupt-cells = <2>;
15431614 };
15441615
1545
- gpio1: gpio1@ff220000 {
1616
+ gpio1: gpio@ff220000 {
15461617 compatible = "rockchip,gpio-bank";
15471618 reg = <0x0 0xff220000 0x0 0x100>;
15481619 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1555,7 +1626,7 @@
15551626 #interrupt-cells = <2>;
15561627 };
15571628
1558
- gpio2: gpio2@ff230000 {
1629
+ gpio2: gpio@ff230000 {
15591630 compatible = "rockchip,gpio-bank";
15601631 reg = <0x0 0xff230000 0x0 0x100>;
15611632 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1568,7 +1639,7 @@
15681639 #interrupt-cells = <2>;
15691640 };
15701641
1571
- gpio3: gpio3@ff240000 {
1642
+ gpio3: gpio@ff240000 {
15721643 compatible = "rockchip,gpio-bank";
15731644 reg = <0x0 0xff240000 0x0 0x100>;
15741645 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1681,7 +1752,7 @@
16811752 rockchip,pins = <0 RK_PA5 2 &pcfg_pull_none>,
16821753 <0 RK_PA6 2 &pcfg_pull_none>;
16831754 };
1684
- i2c3_gpio: i2c3-gpio {
1755
+ i2c3_pins: i2c3-pins {
16851756 rockchip,pins =
16861757 <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>,
16871758 <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
....@@ -1791,7 +1862,7 @@
17911862 };
17921863
17931864 tsadc {
1794
- otp_gpio: otp-gpio {
1865
+ otp_pin: otp-pin {
17951866 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
17961867 };
17971868
....@@ -1814,7 +1885,7 @@
18141885 rockchip,pins = <1 RK_PB2 1 &pcfg_pull_none>;
18151886 };
18161887
1817
- uart0_rts_gpio: uart0-rts-gpio {
1888
+ uart0_rts_pin: uart0-rts-pin {
18181889 rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
18191890 };
18201891 };
....@@ -1833,7 +1904,7 @@
18331904 rockchip,pins = <3 RK_PA5 4 &pcfg_pull_none>;
18341905 };
18351906
1836
- uart1_rts_gpio: uart1-rts-gpio {
1907
+ uart1_rts_pin: uart1-rts-pin {
18371908 rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
18381909 };
18391910 };
....@@ -2059,7 +2130,7 @@
20592130 rockchip,pins = <2 RK_PA7 1 &pcfg_pull_up_4ma>;
20602131 };
20612132
2062
- sdmmc0m0_gpio: sdmmc0m0-gpio {
2133
+ sdmmc0m0_pin: sdmmc0m0-pin {
20632134 rockchip,pins = <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
20642135 };
20652136 };
....@@ -2069,7 +2140,7 @@
20692140 rockchip,pins = <0 RK_PD6 3 &pcfg_pull_up_4ma>;
20702141 };
20712142
2072
- sdmmc0m1_gpio: sdmmc0m1-gpio {
2143
+ sdmmc0m1_pin: sdmmc0m1-pin {
20732144 rockchip,pins = <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
20742145 };
20752146 };
....@@ -2102,7 +2173,7 @@
21022173 <1 RK_PA3 1 &pcfg_pull_up_8ma>;
21032174 };
21042175
2105
- sdmmc0_gpio: sdmmc0-gpio {
2176
+ sdmmc0_pins: sdmmc0-pins {
21062177 rockchip,pins =
21072178 <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
21082179 <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
....@@ -2144,7 +2215,7 @@
21442215 <3 RK_PA7 3 &pcfg_pull_up_4ma>;
21452216 };
21462217
2147
- sdmmc0ext_gpio: sdmmc0ext-gpio {
2218
+ sdmmc0ext_pins: sdmmc0ext-pins {
21482219 rockchip,pins =
21492220 <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
21502221 <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
....@@ -2189,7 +2260,7 @@
21892260 <1 RK_PC1 1 &pcfg_pull_up_8ma>;
21902261 };
21912262
2192
- sdmmc1_gpio: sdmmc1-gpio {
2263
+ sdmmc1_pins: sdmmc1-pins {
21932264 rockchip,pins =
21942265 <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
21952266 <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
....@@ -2249,10 +2320,8 @@
22492320 pwm0_pin: pwm0-pin {
22502321 rockchip,pins = <2 RK_PA4 1 &pcfg_pull_none>;
22512322 };
2252
-
22532323 pwm0_pin_pull_up: pwm0-pin-pull-up {
2254
- rockchip,pins =
2255
- <2 RK_PA4 1 &pcfg_pull_up>;
2324
+ rockchip,pins = <2 RK_PA4 1 &pcfg_pull_up>;
22562325 };
22572326 };
22582327
....@@ -2260,10 +2329,8 @@
22602329 pwm1_pin: pwm1-pin {
22612330 rockchip,pins = <2 RK_PA5 1 &pcfg_pull_none>;
22622331 };
2263
-
22642332 pwm1_pin_pull_up: pwm1-pin-pull-up {
2265
- rockchip,pins =
2266
- <2 RK_PA5 1 &pcfg_pull_up>;
2333
+ rockchip,pins = <2 RK_PA5 1 &pcfg_pull_up>;
22672334 };
22682335 };
22692336
....@@ -2368,12 +2435,12 @@
23682435 };
23692436
23702437 gmac2phy {
2371
- fephyled_speed100: fephyled-speed100 {
2372
- rockchip,pins = <0 RK_PD7 1 &pcfg_pull_none>;
2373
- };
2374
-
23752438 fephyled_speed10: fephyled-speed10 {
23762439 rockchip,pins = <0 RK_PD6 1 &pcfg_pull_none>;
2440
+ };
2441
+
2442
+ fephyled_speed100: fephyled-speed100 {
2443
+ rockchip,pins = <0 RK_PD7 1 &pcfg_pull_none>;
23772444 };
23782445
23792446 fephyled_duplex: fephyled-duplex {
....@@ -2409,7 +2476,7 @@
24092476 tsadc_int: tsadc-int {
24102477 rockchip,pins = <2 RK_PB5 2 &pcfg_pull_none>;
24112478 };
2412
- tsadc_gpio: tsadc-gpio {
2479
+ tsadc_pin: tsadc-pin {
24132480 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
24142481 };
24152482 };