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";
....@@ -1006,26 +1197,23 @@
10061197 reg-io-width = <4>;
10071198 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
10081199 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
1009
- interrupt-names = "hdmi", "hdmi_wakeup";
10101200 clocks = <&cru PCLK_HDMI>,
10111201 <&cru SCLK_HDMI_SFC>,
1012
- <&cru SCLK_RTC32K>,
1013
- <&cru HCLK_VIO>;
1202
+ <&cru SCLK_RTC32K>;
10141203 clock-names = "iahb",
10151204 "isfr",
1016
- "cec",
1017
- "hclk_vio";
1205
+ "cec";
10181206 phys = <&hdmiphy>;
10191207 phy-names = "hdmi";
1020
- pinctrl-names = "default", "gpio";
1208
+ pinctrl-names = "default", "pin";
10211209 pinctrl-0 = <&hdmi_cec &hdmii2c_xfer &hdmi_hpd>;
1022
- pinctrl-1 = <&i2c3_gpio>;
1210
+ pinctrl-1 = <&i2c3_pins>;
10231211 resets = <&cru SRST_HDMI_P>,
10241212 <&cru SRST_HDMIPHY>;
10251213 reset-names = "hdmi",
10261214 "hdmiphy";
10271215 rockchip,grf = <&grf>;
1028
- max-tmdsclk = <371250>;
1216
+ #sound-dai-cells = <0>;
10291217 status = "disabled";
10301218
10311219 ports {
....@@ -1040,56 +1228,27 @@
10401228 };
10411229 };
10421230
1043
- tve: tve@ff373e00 {
1044
- compatible = "rockchip,rk3328-tve";
1045
- reg = <0x0 0xff373e00 0x0 0x100>,
1046
- <0x0 0xff420000 0x0 0x10000>;
1047
- rockchip,saturation = <0x00376749>;
1048
- rockchip,brightcontrast = <0x0000a305>;
1049
- rockchip,adjtiming = <0xb6c00880>;
1050
- rockchip,lumafilter0 = <0x01ff0000>;
1051
- rockchip,lumafilter1 = <0xf40200fe>;
1052
- rockchip,lumafilter2 = <0xf332d70c>;
1053
- rockchip,daclevel = <0x22>;
1054
- rockchip,dac1level = <0x7>;
1055
- status = "disabled";
1056
-
1057
- ports {
1058
- tve_in: port {
1059
- #address-cells = <1>;
1060
- #size-cells = <0>;
1061
- tve_in_vop: endpoint@0 {
1062
- reg = <0>;
1063
- remote-endpoint = <&vop_out_tve>;
1064
- };
1065
- };
1066
- };
1067
- };
1068
-
1069
- display_subsystem: display-subsystem {
1070
- compatible = "rockchip,display-subsystem";
1071
- ports = <&vop_out>;
1072
- status = "disabled";
1073
- };
1074
-
10751231 codec: codec@ff410000 {
10761232 compatible = "rockchip,rk3328-codec";
10771233 reg = <0x0 0xff410000 0x0 0x1000>;
1078
- rockchip,grf = <&grf>;
1079
- clocks = <&cru PCLK_ACODEC>, <&cru SCLK_I2S1>;
1234
+ clocks = <&cru PCLK_ACODECPHY>, <&cru SCLK_I2S1>;
10801235 clock-names = "pclk", "mclk";
1236
+ rockchip,grf = <&grf>;
1237
+ #sound-dai-cells = <0>;
10811238 status = "disabled";
10821239 };
10831240
1084
- hdmiphy: hdmiphy@ff430000 {
1241
+ hdmiphy: phy@ff430000 {
10851242 compatible = "rockchip,rk3328-hdmi-phy";
10861243 reg = <0x0 0xff430000 0x0 0x10000>;
10871244 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
1088
- #phy-cells = <0>;
1089
- clocks = <&cru PCLK_HDMIPHY>, <&xin24m>;
1090
- clock-names = "sysclk", "refclk";
1091
- #clock-cells = <0>;
1245
+ clocks = <&cru PCLK_HDMIPHY>, <&xin24m>, <&cru DCLK_HDMIPHY>;
1246
+ clock-names = "sysclk", "refclk", "refpclk";
10921247 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>;
10931252 status = "disabled";
10941253 };
10951254
....@@ -1110,7 +1269,8 @@
11101269 <&cru SCLK_RTC32K>, <&cru SCLK_UART0>,
11111270 <&cru SCLK_UART1>, <&cru SCLK_UART2>,
11121271 <&cru ACLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
1113
- <&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>,
11141274 <&cru ACLK_RKVENC>, <&cru ACLK_VPU_PRE>,
11151275 <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>,
11161276 <&cru SCLK_VENC_CORE>, <&cru SCLK_VENC_DSP>,
....@@ -1120,8 +1280,7 @@
11201280 <&cru ACLK_BUS_PRE>, <&cru HCLK_BUS_PRE>,
11211281 <&cru PCLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
11221282 <&cru HCLK_PERI>, <&cru PCLK_PERI>,
1123
- <&cru SCLK_RTC32K>, <&cru ACLK_VOP>,
1124
- <&cru ACLK_GMAC>;
1283
+ <&cru SCLK_RTC32K>;
11251284 assigned-clock-parents =
11261285 <&cru HDMIPHY>, <&cru PLL_APLL>,
11271286 <&cru PLL_GPLL>, <&xin24m>,
....@@ -1132,6 +1291,7 @@
11321291 <24000000>, <24000000>,
11331292 <15000000>, <15000000>,
11341293 <100000000>, <100000000>,
1294
+ <100000000>, <100000000>,
11351295 <50000000>, <100000000>,
11361296 <100000000>, <100000000>,
11371297 <50000000>, <50000000>,
....@@ -1141,8 +1301,7 @@
11411301 <150000000>, <75000000>,
11421302 <75000000>, <150000000>,
11431303 <75000000>, <75000000>,
1144
- <32768>, <400000000>,
1145
- <180000000>;
1304
+ <32768>;
11461305 };
11471306
11481307 usb2phy_grf: syscon@ff450000 {
....@@ -1223,7 +1382,7 @@
12231382 };
12241383 };
12251384
1226
- sdmmc: dwmmc@ff500000 {
1385
+ sdmmc: mmc@ff500000 {
12271386 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
12281387 reg = <0x0 0xff500000 0x0 0x4000>;
12291388 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1235,7 +1394,7 @@
12351394 status = "disabled";
12361395 };
12371396
1238
- sdio: dwmmc@ff510000 {
1397
+ sdio: mmc@ff510000 {
12391398 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
12401399 reg = <0x0 0xff510000 0x0 0x4000>;
12411400 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1247,7 +1406,7 @@
12471406 status = "disabled";
12481407 };
12491408
1250
- emmc: dwmmc@ff520000 {
1409
+ emmc: mmc@ff520000 {
12511410 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
12521411 reg = <0x0 0xff520000 0x0 0x4000>;
12531412 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1275,6 +1434,7 @@
12751434 resets = <&cru SRST_GMAC2IO_A>;
12761435 reset-names = "stmmaceth";
12771436 rockchip,grf = <&grf>;
1437
+ snps,txpbl = <0x4>;
12781438 status = "disabled";
12791439 };
12801440
....@@ -1303,7 +1463,7 @@
13031463 #address-cells = <1>;
13041464 #size-cells = <0>;
13051465
1306
- phy: phy@0 {
1466
+ phy: ethernet-phy@0 {
13071467 compatible = "ethernet-phy-id1234.d400", "ethernet-phy-ieee802.3-c22";
13081468 reg = <0>;
13091469 clocks = <&cru SCLK_MAC2PHY_OUT>;
....@@ -1320,13 +1480,12 @@
13201480 "snps,dwc2";
13211481 reg = <0x0 0xff580000 0x0 0x40000>;
13221482 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
1323
- clocks = <&cru HCLK_OTG>;
1324
- clock-names = "otg";
1483
+ clocks = <&cru HCLK_OTG>, <&cru HCLK_OTG_PMU>;
1484
+ clock-names = "otg", "otg_pmu";
13251485 dr_mode = "otg";
13261486 g-np-tx-fifo-size = <16>;
13271487 g-rx-fifo-size = <280>;
13281488 g-tx-fifo-size = <256 128 128 64 32 16>;
1329
- g-use-dma;
13301489 phys = <&u2phy_otg>;
13311490 phy-names = "usb2-phy";
13321491 status = "disabled";
....@@ -1336,8 +1495,9 @@
13361495 compatible = "generic-ehci";
13371496 reg = <0x0 0xff5c0000 0x0 0x10000>;
13381497 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1339
- clocks = <&cru HCLK_HOST0>, <&u2phy>;
1340
- clock-names = "usbhost", "utmi";
1498
+ clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
1499
+ <&u2phy>;
1500
+ clock-names = "usbhost", "arbiter", "utmi";
13411501 phys = <&u2phy_host>;
13421502 phy-names = "usb";
13431503 status = "disabled";
....@@ -1347,27 +1507,28 @@
13471507 compatible = "generic-ohci";
13481508 reg = <0x0 0xff5d0000 0x0 0x10000>;
13491509 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1350
- clocks = <&cru HCLK_HOST0>, <&u2phy>;
1351
- clock-names = "usbhost", "utmi";
1510
+ clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
1511
+ <&u2phy>;
1512
+ clock-names = "usbhost", "arbiter", "utmi";
13521513 phys = <&u2phy_host>;
13531514 phy-names = "usb";
13541515 status = "disabled";
13551516 };
13561517
1357
- sdmmc_ext: dwmmc@ff5f0000 {
1518
+ sdmmc_ext: mmc@ff5f0000 {
13581519 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
13591520 reg = <0x0 0xff5f0000 0x0 0x4000>;
13601521 clock-freq-min-max = <400000 150000000>;
13611522 clocks = <&cru HCLK_SDMMC_EXT>, <&cru SCLK_SDMMC_EXT>,
13621523 <&cru SCLK_SDMMC_EXT_DRV>, <&cru SCLK_SDMMC_EXT_SAMPLE>;
1363
- clock-names = "biu", "ciu", "ciu-drv", "ciu-sample";
1524
+ clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
13641525 fifo-depth = <0x100>;
13651526 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
13661527 status = "disabled";
13671528 };
13681529
1369
- usbdrd3: usb@ff600000 {
1370
- compatible = "rockchip,rk3328-dwc3";
1530
+ usbdrd3: usbdrd {
1531
+ compatible = "rockchip,rk3328-dwc3", "snps,dwc3";
13711532 clocks = <&cru SCLK_USB3OTG_REF>, <&cru SCLK_USB3OTG_SUSPEND>,
13721533 <&cru ACLK_USB3OTG>;
13731534 clock-names = "ref_clk", "suspend_clk",
....@@ -1385,13 +1546,14 @@
13851546 phys = <&u3phy_utmi>, <&u3phy_pipe>;
13861547 phy-names = "usb2-phy", "usb3-phy";
13871548 phy_type = "utmi_wide";
1549
+ snps,dis-del-phy-power-chg-quirk;
13881550 snps,dis_enblslpm_quirk;
1551
+ snps,dis-tx-ipgap-linecheck-quirk;
13891552 snps,dis-u2-freeclk-exists-quirk;
13901553 snps,dis_u2_susphy_quirk;
1391
- snps,dis-u3-autosuspend-quirk;
13921554 snps,dis_u3_susphy_quirk;
1393
- snps,dis-del-phy-power-chg-quirk;
1394
- snps,tx-ipgap-linecheck-dis-quirk;
1555
+ snps,parkmode-disable-hs-quirk;
1556
+ snps,parkmode-disable-ss-quirk;
13951557 status = "disabled";
13961558 };
13971559 };
....@@ -1412,102 +1574,10 @@
14121574 };
14131575
14141576 dfi: dfi@ff790000 {
1415
- reg = <0x00 0xff790000 0x00 0x400>;
14161577 compatible = "rockchip,rk3328-dfi";
1578
+ reg = <0x00 0xff790000 0x00 0x400>;
14171579 rockchip,grf = <&grf>;
14181580 status = "disabled";
1419
- };
1420
-
1421
- dmc: dmc {
1422
- compatible = "rockchip,rk3328-dmc";
1423
- devfreq-events = <&dfi>;
1424
- clocks = <&cru SCLK_DDRCLK>;
1425
- clock-names = "dmc_clk";
1426
- operating-points-v2 = <&dmc_opp_table>;
1427
- ddr_timing = <&ddr_timing>;
1428
- upthreshold = <40>;
1429
- downdifferential = <20>;
1430
- system-status-freq = <
1431
- /*system status freq(KHz)*/
1432
- SYS_STATUS_NORMAL 786000
1433
- SYS_STATUS_REBOOT 786000
1434
- SYS_STATUS_SUSPEND 786000
1435
- SYS_STATUS_VIDEO_1080P 786000
1436
- SYS_STATUS_VIDEO_4K 786000
1437
- SYS_STATUS_VIDEO_4K_10B 933000
1438
- SYS_STATUS_PERFORMANCE 933000
1439
- SYS_STATUS_BOOST 933000
1440
- >;
1441
- auto-min-freq = <786000>;
1442
- auto-freq-en = <0>;
1443
- #cooling-cells = <2>;
1444
- status = "disabled";
1445
-
1446
- ddr_power_model: ddr_power_model {
1447
- compatible = "ddr_power_model";
1448
- dynamic-power-coefficient = <120>;
1449
- static-power-coefficient = <200>;
1450
- ts = <32000 4700 (-80) 2>;
1451
- thermal-zone = "soc-thermal";
1452
- };
1453
- };
1454
-
1455
- dmc_opp_table: dmc-opp-table {
1456
- compatible = "operating-points-v2";
1457
-
1458
- rockchip,leakage-voltage-sel = <
1459
- 1 10 0
1460
- 11 254 1
1461
- >;
1462
- nvmem-cells = <&logic_leakage>;
1463
- nvmem-cell-names = "ddr_leakage";
1464
-
1465
- opp-400000000 {
1466
- opp-hz = /bits/ 64 <400000000>;
1467
- opp-microvolt = <950000>;
1468
- opp-microvolt-L0 = <950000>;
1469
- opp-microvolt-L1 = <950000>;
1470
- status = "disabled";
1471
- };
1472
- opp-600000000 {
1473
- opp-hz = /bits/ 64 <600000000>;
1474
- opp-microvolt = <1025000>;
1475
- opp-microvolt-L0 = <1025000>;
1476
- opp-microvolt-L1 = <1000000>;
1477
- status = "disabled";
1478
- };
1479
- opp-786000000 {
1480
- opp-hz = /bits/ 64 <786000000>;
1481
- opp-microvolt = <1075000>;
1482
- opp-microvolt-L0 = <1075000>;
1483
- opp-microvolt-L1 = <1050000>;
1484
- };
1485
- opp-800000000 {
1486
- opp-hz = /bits/ 64 <800000000>;
1487
- opp-microvolt = <1075000>;
1488
- opp-microvolt-L0 = <1075000>;
1489
- opp-microvolt-L1 = <1050000>;
1490
- };
1491
- opp-850000000 {
1492
- opp-hz = /bits/ 64 <850000000>;
1493
- opp-microvolt = <1075000>;
1494
- opp-microvolt-L0 = <1075000>;
1495
- opp-microvolt-L1 = <1050000>;
1496
- };
1497
- opp-933000000 {
1498
- opp-hz = /bits/ 64 <933000000>;
1499
- opp-microvolt = <1125000>;
1500
- opp-microvolt-L0 = <1125000>;
1501
- opp-microvolt-L1 = <1100000>;
1502
- };
1503
- /* 1066M is only for ddr4 */
1504
- opp-1066000000 {
1505
- opp-hz = /bits/ 64 <1066000000>;
1506
- opp-microvolt = <1175000>;
1507
- opp-microvolt-L0 = <1175000>;
1508
- opp-microvolt-L1 = <1150000>;
1509
- status = "disabled";
1510
- };
15111581 };
15121582
15131583 gic: interrupt-controller@ff811000 {
....@@ -1530,7 +1600,7 @@
15301600 #size-cells = <2>;
15311601 ranges;
15321602
1533
- gpio0: gpio0@ff210000 {
1603
+ gpio0: gpio@ff210000 {
15341604 compatible = "rockchip,gpio-bank";
15351605 reg = <0x0 0xff210000 0x0 0x100>;
15361606 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1543,7 +1613,7 @@
15431613 #interrupt-cells = <2>;
15441614 };
15451615
1546
- gpio1: gpio1@ff220000 {
1616
+ gpio1: gpio@ff220000 {
15471617 compatible = "rockchip,gpio-bank";
15481618 reg = <0x0 0xff220000 0x0 0x100>;
15491619 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1556,7 +1626,7 @@
15561626 #interrupt-cells = <2>;
15571627 };
15581628
1559
- gpio2: gpio2@ff230000 {
1629
+ gpio2: gpio@ff230000 {
15601630 compatible = "rockchip,gpio-bank";
15611631 reg = <0x0 0xff230000 0x0 0x100>;
15621632 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1569,7 +1639,7 @@
15691639 #interrupt-cells = <2>;
15701640 };
15711641
1572
- gpio3: gpio3@ff240000 {
1642
+ gpio3: gpio@ff240000 {
15731643 compatible = "rockchip,gpio-bank";
15741644 reg = <0x0 0xff240000 0x0 0x100>;
15751645 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1682,7 +1752,7 @@
16821752 rockchip,pins = <0 RK_PA5 2 &pcfg_pull_none>,
16831753 <0 RK_PA6 2 &pcfg_pull_none>;
16841754 };
1685
- i2c3_gpio: i2c3-gpio {
1755
+ i2c3_pins: i2c3-pins {
16861756 rockchip,pins =
16871757 <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>,
16881758 <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
....@@ -1792,7 +1862,7 @@
17921862 };
17931863
17941864 tsadc {
1795
- otp_gpio: otp-gpio {
1865
+ otp_pin: otp-pin {
17961866 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
17971867 };
17981868
....@@ -1815,7 +1885,7 @@
18151885 rockchip,pins = <1 RK_PB2 1 &pcfg_pull_none>;
18161886 };
18171887
1818
- uart0_rts_gpio: uart0-rts-gpio {
1888
+ uart0_rts_pin: uart0-rts-pin {
18191889 rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
18201890 };
18211891 };
....@@ -1834,7 +1904,7 @@
18341904 rockchip,pins = <3 RK_PA5 4 &pcfg_pull_none>;
18351905 };
18361906
1837
- uart1_rts_gpio: uart1-rts-gpio {
1907
+ uart1_rts_pin: uart1-rts-pin {
18381908 rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
18391909 };
18401910 };
....@@ -2060,7 +2130,7 @@
20602130 rockchip,pins = <2 RK_PA7 1 &pcfg_pull_up_4ma>;
20612131 };
20622132
2063
- sdmmc0m0_gpio: sdmmc0m0-gpio {
2133
+ sdmmc0m0_pin: sdmmc0m0-pin {
20642134 rockchip,pins = <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
20652135 };
20662136 };
....@@ -2070,7 +2140,7 @@
20702140 rockchip,pins = <0 RK_PD6 3 &pcfg_pull_up_4ma>;
20712141 };
20722142
2073
- sdmmc0m1_gpio: sdmmc0m1-gpio {
2143
+ sdmmc0m1_pin: sdmmc0m1-pin {
20742144 rockchip,pins = <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
20752145 };
20762146 };
....@@ -2103,7 +2173,7 @@
21032173 <1 RK_PA3 1 &pcfg_pull_up_8ma>;
21042174 };
21052175
2106
- sdmmc0_gpio: sdmmc0-gpio {
2176
+ sdmmc0_pins: sdmmc0-pins {
21072177 rockchip,pins =
21082178 <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
21092179 <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
....@@ -2145,7 +2215,7 @@
21452215 <3 RK_PA7 3 &pcfg_pull_up_4ma>;
21462216 };
21472217
2148
- sdmmc0ext_gpio: sdmmc0ext-gpio {
2218
+ sdmmc0ext_pins: sdmmc0ext-pins {
21492219 rockchip,pins =
21502220 <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
21512221 <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
....@@ -2190,7 +2260,7 @@
21902260 <1 RK_PC1 1 &pcfg_pull_up_8ma>;
21912261 };
21922262
2193
- sdmmc1_gpio: sdmmc1-gpio {
2263
+ sdmmc1_pins: sdmmc1-pins {
21942264 rockchip,pins =
21952265 <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
21962266 <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
....@@ -2250,10 +2320,8 @@
22502320 pwm0_pin: pwm0-pin {
22512321 rockchip,pins = <2 RK_PA4 1 &pcfg_pull_none>;
22522322 };
2253
-
22542323 pwm0_pin_pull_up: pwm0-pin-pull-up {
2255
- rockchip,pins =
2256
- <2 RK_PA4 1 &pcfg_pull_up>;
2324
+ rockchip,pins = <2 RK_PA4 1 &pcfg_pull_up>;
22572325 };
22582326 };
22592327
....@@ -2261,10 +2329,8 @@
22612329 pwm1_pin: pwm1-pin {
22622330 rockchip,pins = <2 RK_PA5 1 &pcfg_pull_none>;
22632331 };
2264
-
22652332 pwm1_pin_pull_up: pwm1-pin-pull-up {
2266
- rockchip,pins =
2267
- <2 RK_PA5 1 &pcfg_pull_up>;
2333
+ rockchip,pins = <2 RK_PA5 1 &pcfg_pull_up>;
22682334 };
22692335 };
22702336
....@@ -2369,12 +2435,12 @@
23692435 };
23702436
23712437 gmac2phy {
2372
- fephyled_speed100: fephyled-speed100 {
2373
- rockchip,pins = <0 RK_PD7 1 &pcfg_pull_none>;
2374
- };
2375
-
23762438 fephyled_speed10: fephyled-speed10 {
23772439 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>;
23782444 };
23792445
23802446 fephyled_duplex: fephyled-duplex {
....@@ -2410,7 +2476,7 @@
24102476 tsadc_int: tsadc-int {
24112477 rockchip,pins = <2 RK_PB5 2 &pcfg_pull_none>;
24122478 };
2413
- tsadc_gpio: tsadc-gpio {
2479
+ tsadc_pin: tsadc-pin {
24142480 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
24152481 };
24162482 };