forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/boot/dts/rockchip/rk3399.dtsi
....@@ -24,7 +24,14 @@
2424 #size-cells = <2>;
2525
2626 aliases {
27
+ dsi0 = &dsi;
28
+ dsi1 = &dsi1;
2729 ethernet0 = &gmac;
30
+ gpio0 = &gpio0;
31
+ gpio1 = &gpio1;
32
+ gpio2 = &gpio2;
33
+ gpio3 = &gpio3;
34
+ gpio4 = &gpio4;
2835 i2c0 = &i2c0;
2936 i2c1 = &i2c1;
3037 i2c2 = &i2c2;
....@@ -42,8 +49,6 @@
4249 serial2 = &uart2;
4350 serial3 = &uart3;
4451 serial4 = &uart4;
45
- dsi0 = &dsi;
46
- dsi1 = &dsi1;
4752 };
4853
4954 cpus {
....@@ -78,7 +83,7 @@
7883
7984 cpu_l0: cpu@0 {
8085 device_type = "cpu";
81
- compatible = "arm,cortex-a53", "arm,armv8";
86
+ compatible = "arm,cortex-a53";
8287 reg = <0x0 0x0>;
8388 enable-method = "psci";
8489 capacity-dmips-mhz = <485>;
....@@ -90,7 +95,7 @@
9095
9196 cpu_l1: cpu@1 {
9297 device_type = "cpu";
93
- compatible = "arm,cortex-a53", "arm,armv8";
98
+ compatible = "arm,cortex-a53";
9499 reg = <0x0 0x1>;
95100 enable-method = "psci";
96101 capacity-dmips-mhz = <485>;
....@@ -102,7 +107,7 @@
102107
103108 cpu_l2: cpu@2 {
104109 device_type = "cpu";
105
- compatible = "arm,cortex-a53", "arm,armv8";
110
+ compatible = "arm,cortex-a53";
106111 reg = <0x0 0x2>;
107112 enable-method = "psci";
108113 capacity-dmips-mhz = <485>;
....@@ -114,7 +119,7 @@
114119
115120 cpu_l3: cpu@3 {
116121 device_type = "cpu";
117
- compatible = "arm,cortex-a53", "arm,armv8";
122
+ compatible = "arm,cortex-a53";
118123 reg = <0x0 0x3>;
119124 enable-method = "psci";
120125 capacity-dmips-mhz = <485>;
....@@ -126,7 +131,7 @@
126131
127132 cpu_b0: cpu@100 {
128133 device_type = "cpu";
129
- compatible = "arm,cortex-a72", "arm,armv8";
134
+ compatible = "arm,cortex-a72";
130135 reg = <0x0 0x100>;
131136 enable-method = "psci";
132137 capacity-dmips-mhz = <1024>;
....@@ -138,7 +143,7 @@
138143
139144 cpu_b1: cpu@101 {
140145 device_type = "cpu";
141
- compatible = "arm,cortex-a72", "arm,armv8";
146
+ compatible = "arm,cortex-a72";
142147 reg = <0x0 0x101>;
143148 enable-method = "psci";
144149 capacity-dmips-mhz = <1024>;
....@@ -176,14 +181,6 @@
176181 ports = <&vopl_out>, <&vopb_out>;
177182 clocks = <&cru PLL_VPLL>, <&cru PLL_CPLL>;
178183 clock-names = "hdmi-tmds-pll", "default-vop-pll";
179
- devfreq = <&dmc>;
180
- };
181
-
182
- firmware {
183
- optee: optee {
184
- compatible = "linaro,optee-tz";
185
- method = "smc";
186
- };
187184 };
188185
189186 pmu_a53 {
....@@ -231,7 +228,7 @@
231228 #clock-cells = <0>;
232229 };
233230
234
- amba {
231
+ amba: bus {
235232 compatible = "simple-bus";
236233 #address-cells = <2>;
237234 #size-cells = <2>;
....@@ -243,9 +240,9 @@
243240 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH 0>,
244241 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH 0>;
245242 #dma-cells = <1>;
243
+ arm,pl330-periph-burst;
246244 clocks = <&cru ACLK_DMAC0_PERILP>;
247245 clock-names = "apb_pclk";
248
- arm,pl330-periph-burst;
249246 };
250247
251248 dmac_peri: dma-controller@ff6e0000 {
....@@ -254,9 +251,9 @@
254251 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH 0>,
255252 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH 0>;
256253 #dma-cells = <1>;
254
+ arm,pl330-periph-burst;
257255 clocks = <&cru ACLK_DMAC1_PERILP>;
258256 clock-names = "apb_pclk";
259
- arm,pl330-periph-burst;
260257 };
261258 };
262259
....@@ -325,10 +322,11 @@
325322 resets = <&cru SRST_A_GMAC>;
326323 reset-names = "stmmaceth";
327324 rockchip,grf = <&grf>;
325
+ snps,txpbl = <0x4>;
328326 status = "disabled";
329327 };
330328
331
- sdio0: dwmmc@fe310000 {
329
+ sdio0: mmc@fe310000 {
332330 compatible = "rockchip,rk3399-dw-mshc",
333331 "rockchip,rk3288-dw-mshc";
334332 reg = <0x0 0xfe310000 0x0 0x4000>;
....@@ -344,7 +342,7 @@
344342 status = "disabled";
345343 };
346344
347
- sdmmc: dwmmc@fe320000 {
345
+ sdmmc: mmc@fe320000 {
348346 compatible = "rockchip,rk3399-dw-mshc",
349347 "rockchip,rk3288-dw-mshc";
350348 reg = <0x0 0xfe320000 0x0 0x4000>;
....@@ -381,28 +379,14 @@
381379 status = "disabled";
382380 };
383381
384
- usic: usb@fe340000 {
385
- compatible = "generic-ehci";
386
- reg = <0x0 0xfe340000 0x0 0x30000>;
387
- interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH 0>;
388
- clocks = <&cru HCLK_HSIC>, <&cru SCLK_HSICPHY>,
389
- <&cru PCLK_HSICPHY>;
390
- clock-names = "hclk_hsic", "clk_hsicphy", "pclk_hsicphy";
391
- rockchip-has-usic;
392
- status = "disabled";
393
- };
394
-
395382 usb_host0_ehci: usb@fe380000 {
396383 compatible = "generic-ehci";
397384 reg = <0x0 0xfe380000 0x0 0x20000>;
398385 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH 0>;
399386 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
400387 <&u2phy0>;
401
- clock-names = "usbhost", "arbiter",
402
- "utmi";
403388 phys = <&u2phy0_host>;
404389 phy-names = "usb";
405
- power-domains = <&power RK3399_PD_PERIHP>;
406390 status = "disabled";
407391 };
408392
....@@ -412,11 +396,8 @@
412396 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH 0>;
413397 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
414398 <&u2phy0>;
415
- clock-names = "usbhost", "arbiter",
416
- "utmi";
417399 phys = <&u2phy0_host>;
418400 phy-names = "usb";
419
- power-domains = <&power RK3399_PD_PERIHP>;
420401 status = "disabled";
421402 };
422403
....@@ -426,11 +407,8 @@
426407 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH 0>;
427408 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>,
428409 <&u2phy1>;
429
- clock-names = "usbhost", "arbiter",
430
- "utmi";
431410 phys = <&u2phy1_host>;
432411 phy-names = "usb";
433
- power-domains = <&power RK3399_PD_PERIHP>;
434412 status = "disabled";
435413 };
436414
....@@ -440,11 +418,8 @@
440418 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH 0>;
441419 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>,
442420 <&u2phy1>;
443
- clock-names = "usbhost", "arbiter",
444
- "utmi";
445421 phys = <&u2phy1_host>;
446422 phy-names = "usb";
447
- power-domains = <&power RK3399_PD_PERIHP>;
448423 status = "disabled";
449424 };
450425
....@@ -454,31 +429,36 @@
454429 #size-cells = <2>;
455430 ranges;
456431 clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>,
457
- <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_GRF>;
432
+ <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_RKSOC_AXI_PERF>,
433
+ <&cru ACLK_USB3>, <&cru ACLK_USB3_GRF>;
458434 clock-names = "ref_clk", "suspend_clk",
459
- "bus_clk", "grf_clk";
435
+ "bus_clk", "aclk_usb3_rksoc_axi_perf",
436
+ "aclk_usb3", "grf_clk";
460437 status = "disabled";
461438
462
- usbdrd_dwc3_0: dwc3@fe800000 {
439
+ usbdrd_dwc3_0: usb@fe800000 {
463440 compatible = "snps,dwc3";
464441 reg = <0x0 0xfe800000 0x0 0x100000>;
465442 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH 0>;
443
+ clocks = <&cru SCLK_USB3OTG0_REF>, <&cru ACLK_USB3OTG0>,
444
+ <&cru SCLK_USB3OTG0_SUSPEND>;
445
+ clock-names = "ref", "bus_early", "suspend";
446
+ resets = <&cru SRST_A_USB3_OTG0>;
447
+ reset-names = "usb3-otg";
466448 dr_mode = "otg";
467449 phys = <&u2phy0_otg>, <&tcphy0_usb3>;
468450 phy-names = "usb2-phy", "usb3-phy";
469451 phy_type = "utmi_wide";
470
- power-domains = <&power RK3399_PD_USB3>;
471
- resets = <&cru SRST_A_USB3_OTG0>;
472
- reset-names = "usb3-otg";
473452 snps,dis_enblslpm_quirk;
474
- snps,dis-u1u2-quirk;
453
+ snps,dis-u1-entry-quirk;
454
+ snps,dis-u2-entry-quirk;
475455 snps,dis-u2-freeclk-exists-quirk;
476456 snps,dis_u2_susphy_quirk;
477457 snps,dis-del-phy-power-chg-quirk;
478458 snps,dis-tx-ipgap-linecheck-quirk;
479
- snps,xhci-slow-suspend-quirk;
480
- snps,xhci-trb-ent-quirk;
481
- snps,xhci-warm-reset-on-suspend-quirk;
459
+ snps,parkmode-disable-hs-quirk;
460
+ snps,parkmode-disable-ss-quirk;
461
+ power-domains = <&power RK3399_PD_USB3>;
482462 status = "disabled";
483463 };
484464 };
....@@ -489,30 +469,34 @@
489469 #size-cells = <2>;
490470 ranges;
491471 clocks = <&cru SCLK_USB3OTG1_REF>, <&cru SCLK_USB3OTG1_SUSPEND>,
492
- <&cru ACLK_USB3OTG1>, <&cru ACLK_USB3_GRF>;
472
+ <&cru ACLK_USB3OTG1>, <&cru ACLK_USB3_RKSOC_AXI_PERF>,
473
+ <&cru ACLK_USB3>, <&cru ACLK_USB3_GRF>;
493474 clock-names = "ref_clk", "suspend_clk",
494
- "bus_clk", "grf_clk";
475
+ "bus_clk", "aclk_usb3_rksoc_axi_perf",
476
+ "aclk_usb3", "grf_clk";
495477 status = "disabled";
496478
497
- usbdrd_dwc3_1: dwc3@fe900000 {
479
+ usbdrd_dwc3_1: usb@fe900000 {
498480 compatible = "snps,dwc3";
499481 reg = <0x0 0xfe900000 0x0 0x100000>;
500482 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH 0>;
501
- dr_mode = "host";
483
+ clocks = <&cru SCLK_USB3OTG1_REF>, <&cru ACLK_USB3OTG1>,
484
+ <&cru SCLK_USB3OTG1_SUSPEND>;
485
+ clock-names = "ref", "bus_early", "suspend";
486
+ resets = <&cru SRST_A_USB3_OTG1>;
487
+ reset-names = "usb3-otg";
488
+ dr_mode = "otg";
502489 phys = <&u2phy1_otg>, <&tcphy1_usb3>;
503490 phy-names = "usb2-phy", "usb3-phy";
504491 phy_type = "utmi_wide";
505
- power-domains = <&power RK3399_PD_USB3>;
506
- resets = <&cru SRST_A_USB3_OTG1>;
507
- reset-names = "usb3-otg";
508492 snps,dis_enblslpm_quirk;
509493 snps,dis-u2-freeclk-exists-quirk;
510494 snps,dis_u2_susphy_quirk;
511495 snps,dis-del-phy-power-chg-quirk;
512496 snps,dis-tx-ipgap-linecheck-quirk;
513
- snps,xhci-slow-suspend-quirk;
514
- snps,xhci-trb-ent-quirk;
515
- snps,xhci-warm-reset-on-suspend-quirk;
497
+ snps,parkmode-disable-hs-quirk;
498
+ snps,parkmode-disable-ss-quirk;
499
+ power-domains = <&power RK3399_PD_USB3>;
516500 status = "disabled";
517501 };
518502 };
....@@ -570,6 +554,7 @@
570554 its: interrupt-controller@fee20000 {
571555 compatible = "arm,gic-v3-its";
572556 msi-controller;
557
+ #msi-cells = <1>;
573558 reg = <0x0 0xfee20000 0x0 0x20000>;
574559 };
575560
....@@ -744,6 +729,8 @@
744729 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
745730 clock-names = "spiclk", "apb_pclk";
746731 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH 0>;
732
+ dmas = <&dmac_peri 10>, <&dmac_peri 11>;
733
+ dma-names = "tx", "rx";
747734 pinctrl-names = "default";
748735 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
749736 #address-cells = <1>;
....@@ -757,6 +744,8 @@
757744 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
758745 clock-names = "spiclk", "apb_pclk";
759746 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH 0>;
747
+ dmas = <&dmac_peri 12>, <&dmac_peri 13>;
748
+ dma-names = "tx", "rx";
760749 pinctrl-names = "default";
761750 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
762751 #address-cells = <1>;
....@@ -770,6 +759,8 @@
770759 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
771760 clock-names = "spiclk", "apb_pclk";
772761 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH 0>;
762
+ dmas = <&dmac_peri 14>, <&dmac_peri 15>;
763
+ dma-names = "tx", "rx";
773764 pinctrl-names = "default";
774765 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
775766 #address-cells = <1>;
....@@ -783,6 +774,8 @@
783774 clocks = <&cru SCLK_SPI4>, <&cru PCLK_SPI4>;
784775 clock-names = "spiclk", "apb_pclk";
785776 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH 0>;
777
+ dmas = <&dmac_peri 18>, <&dmac_peri 19>;
778
+ dma-names = "tx", "rx";
786779 pinctrl-names = "default";
787780 pinctrl-0 = <&spi4_clk &spi4_tx &spi4_rx &spi4_cs0>;
788781 #address-cells = <1>;
....@@ -796,6 +789,8 @@
796789 clocks = <&cru SCLK_SPI5>, <&cru PCLK_SPI5>;
797790 clock-names = "spiclk", "apb_pclk";
798791 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH 0>;
792
+ dmas = <&dmac_bus 8>, <&dmac_bus 9>;
793
+ dma-names = "tx", "rx";
799794 pinctrl-names = "default";
800795 pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>;
801796 power-domains = <&power RK3399_PD_SDIOAUDIO>;
....@@ -805,7 +800,7 @@
805800 };
806801
807802 thermal_zones: thermal-zones {
808
- soc_thermal: soc-thermal {
803
+ soc_thermal: cpu_thermal: cpu-thermal {
809804 polling-delay-passive = <20>;
810805 polling-delay = <1000>;
811806 sustainable-power = <1000>; /* milliwatts */
....@@ -813,17 +808,17 @@
813808 thermal-sensors = <&tsadc 0>;
814809
815810 trips {
816
- threshold: trip-point-0 {
811
+ threshold: cpu_alert0: cpu_alert0 {
817812 temperature = <70000>;
818813 hysteresis = <2000>;
819814 type = "passive";
820815 };
821
- target: trip-point-1 {
816
+ target: cpu_alert1: cpu_alert1 {
822817 temperature = <85000>;
823818 hysteresis = <2000>;
824819 type = "passive";
825820 };
826
- soc_crit: soc-crit {
821
+ soc_crit: cpu_crit: cpu_crit {
827822 temperature = <115000>; /* millicelsius */
828823 hysteresis = <2000>; /* millicelsius */
829824 type = "critical";
....@@ -871,9 +866,9 @@
871866 resets = <&cru SRST_TSADC>;
872867 reset-names = "tsadc-apb";
873868 rockchip,grf = <&grf>;
874
- rockchip,hw-tshut-temp = <120000>;
869
+ rockchip,hw-tshut-temp = <95000>;
875870 pinctrl-names = "gpio", "otpout";
876
- pinctrl-0 = <&otp_gpio>;
871
+ pinctrl-0 = <&otp_pin>;
877872 pinctrl-1 = <&otp_out>;
878873 #thermal-sensor-cells = <1>;
879874 status = "disabled";
....@@ -1022,26 +1017,26 @@
10221017 #size-cells = <0>;
10231018
10241019 /* These power domains are grouped by VD_CENTER */
1025
- pd_iep@RK3399_PD_IEP {
1020
+ power-domain@RK3399_PD_IEP {
10261021 reg = <RK3399_PD_IEP>;
10271022 clocks = <&cru ACLK_IEP>,
10281023 <&cru HCLK_IEP>;
10291024 pm_qos = <&qos_iep>;
10301025 };
1031
- pd_rga@RK3399_PD_RGA {
1026
+ power-domain@RK3399_PD_RGA {
10321027 reg = <RK3399_PD_RGA>;
10331028 clocks = <&cru ACLK_RGA>,
10341029 <&cru HCLK_RGA>;
10351030 pm_qos = <&qos_rga_r>,
10361031 <&qos_rga_w>;
10371032 };
1038
- pd_vcodec@RK3399_PD_VCODEC {
1033
+ power-domain@RK3399_PD_VCODEC {
10391034 reg = <RK3399_PD_VCODEC>;
10401035 clocks = <&cru ACLK_VCODEC>,
10411036 <&cru HCLK_VCODEC>;
10421037 pm_qos = <&qos_video_m0>;
10431038 };
1044
- pd_vdu@RK3399_PD_VDU {
1039
+ power-domain@RK3399_PD_VDU {
10451040 reg = <RK3399_PD_VDU>;
10461041 clocks = <&cru ACLK_VDU>,
10471042 <&cru HCLK_VDU>;
....@@ -1050,29 +1045,29 @@
10501045 };
10511046
10521047 /* These power domains are grouped by VD_GPU */
1053
- pd_gpu@RK3399_PD_GPU {
1048
+ power-domain@RK3399_PD_GPU {
10541049 reg = <RK3399_PD_GPU>;
10551050 clocks = <&cru ACLK_GPU>;
10561051 pm_qos = <&qos_gpu>;
10571052 };
10581053
10591054 /* These power domains are grouped by VD_LOGIC */
1060
- pd_edp@RK3399_PD_EDP {
1055
+ power-domain@RK3399_PD_EDP {
10611056 reg = <RK3399_PD_EDP>;
10621057 clocks = <&cru PCLK_EDP_CTRL>;
10631058 };
1064
- pd_emmc@RK3399_PD_EMMC {
1059
+ power-domain@RK3399_PD_EMMC {
10651060 reg = <RK3399_PD_EMMC>;
10661061 clocks = <&cru ACLK_EMMC>;
10671062 pm_qos = <&qos_emmc>;
10681063 };
1069
- pd_gmac@RK3399_PD_GMAC {
1064
+ power-domain@RK3399_PD_GMAC {
10701065 reg = <RK3399_PD_GMAC>;
10711066 clocks = <&cru ACLK_GMAC>,
10721067 <&cru PCLK_GMAC>;
10731068 pm_qos = <&qos_gmac>;
10741069 };
1075
- pd_perihp@RK3399_PD_PERIHP {
1070
+ power-domain@RK3399_PD_PERIHP {
10761071 reg = <RK3399_PD_PERIHP>;
10771072 #address-cells = <1>;
10781073 #size-cells = <0>;
....@@ -1082,73 +1077,73 @@
10821077 <&qos_usb_host0>,
10831078 <&qos_usb_host1>;
10841079
1085
- pd_sd@RK3399_PD_SD {
1080
+ power-domain@RK3399_PD_SD {
10861081 reg = <RK3399_PD_SD>;
10871082 clocks = <&cru HCLK_SDMMC>,
10881083 <&cru SCLK_SDMMC>;
10891084 pm_qos = <&qos_sd>;
10901085 };
10911086 };
1092
- pd_sdioaudio@RK3399_PD_SDIOAUDIO {
1087
+ power-domain@RK3399_PD_SDIOAUDIO {
10931088 reg = <RK3399_PD_SDIOAUDIO>;
10941089 clocks = <&cru HCLK_SDIO>;
10951090 pm_qos = <&qos_sdioaudio>;
10961091 };
1097
- pd_usb3@RK3399_PD_USB3 {
1092
+ power-domain@RK3399_PD_TCPD0 {
1093
+ reg = <RK3399_PD_TCPD0>;
1094
+ clocks = <&cru SCLK_UPHY0_TCPDCORE>,
1095
+ <&cru SCLK_UPHY0_TCPDPHY_REF>;
1096
+ };
1097
+ power-domain@RK3399_PD_TCPD1 {
1098
+ reg = <RK3399_PD_TCPD1>;
1099
+ clocks = <&cru SCLK_UPHY1_TCPDCORE>,
1100
+ <&cru SCLK_UPHY1_TCPDPHY_REF>;
1101
+ };
1102
+ power-domain@RK3399_PD_USB3 {
10981103 reg = <RK3399_PD_USB3>;
10991104 clocks = <&cru ACLK_USB3>;
11001105 pm_qos = <&qos_usb_otg0>,
11011106 <&qos_usb_otg1>;
11021107 };
1103
- pd_vio@RK3399_PD_VIO {
1108
+ power-domain@RK3399_PD_VIO {
11041109 reg = <RK3399_PD_VIO>;
11051110 #address-cells = <1>;
11061111 #size-cells = <0>;
11071112
1108
- pd_hdcp@RK3399_PD_HDCP {
1113
+ power-domain@RK3399_PD_HDCP {
11091114 reg = <RK3399_PD_HDCP>;
11101115 clocks = <&cru ACLK_HDCP>,
11111116 <&cru HCLK_HDCP>,
11121117 <&cru PCLK_HDCP>;
11131118 pm_qos = <&qos_hdcp>;
11141119 };
1115
- pd_isp0@RK3399_PD_ISP0 {
1120
+ power-domain@RK3399_PD_ISP0 {
11161121 reg = <RK3399_PD_ISP0>;
11171122 clocks = <&cru ACLK_ISP0>,
11181123 <&cru HCLK_ISP0>;
11191124 pm_qos = <&qos_isp0_m0>,
11201125 <&qos_isp0_m1>;
11211126 };
1122
- pd_isp1@RK3399_PD_ISP1 {
1127
+ power-domain@RK3399_PD_ISP1 {
11231128 reg = <RK3399_PD_ISP1>;
11241129 clocks = <&cru ACLK_ISP1>,
11251130 <&cru HCLK_ISP1>;
11261131 pm_qos = <&qos_isp1_m0>,
11271132 <&qos_isp1_m1>;
11281133 };
1129
- pd_tcpc0@RK3399_PD_TCPC0 {
1130
- reg = <RK3399_PD_TCPD0>;
1131
- clocks = <&cru SCLK_UPHY0_TCPDCORE>,
1132
- <&cru SCLK_UPHY0_TCPDPHY_REF>;
1133
- };
1134
- pd_tcpc1@RK3399_PD_TCPC1 {
1135
- reg = <RK3399_PD_TCPD1>;
1136
- clocks = <&cru SCLK_UPHY1_TCPDCORE>,
1137
- <&cru SCLK_UPHY1_TCPDPHY_REF>;
1138
- };
1139
- pd_vo@RK3399_PD_VO {
1134
+ power-domain@RK3399_PD_VO {
11401135 reg = <RK3399_PD_VO>;
11411136 #address-cells = <1>;
11421137 #size-cells = <0>;
11431138
1144
- pd_vopb@RK3399_PD_VOPB {
1139
+ power-domain@RK3399_PD_VOPB {
11451140 reg = <RK3399_PD_VOPB>;
11461141 clocks = <&cru ACLK_VOP0>,
11471142 <&cru HCLK_VOP0>;
11481143 pm_qos = <&qos_vop_big_r>,
11491144 <&qos_vop_big_w>;
11501145 };
1151
- pd_vopl@RK3399_PD_VOPL {
1146
+ power-domain@RK3399_PD_VOPL {
11521147 reg = <RK3399_PD_VOPL>;
11531148 clocks = <&cru ACLK_VOP1>,
11541149 <&cru HCLK_VOP1>;
....@@ -1162,8 +1157,6 @@
11621157 pmugrf: syscon@ff320000 {
11631158 compatible = "rockchip,rk3399-pmugrf", "syscon", "simple-mfd";
11641159 reg = <0x0 0xff320000 0x0 0x1000>;
1165
- #address-cells = <1>;
1166
- #size-cells = <1>;
11671160
11681161 pmu_io_domains: io-domains {
11691162 compatible = "rockchip,rk3399-pmu-io-voltage-domain";
....@@ -1339,20 +1332,16 @@
13391332 status = "disabled";
13401333 };
13411334
1342
- vdpu: vdpu@ff650400 {
1343
- compatible = "rockchip,vpu-decoder-v2";
1344
- reg = <0x0 0xff650400 0x0 0x400>;
1345
- interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH 0>;
1346
- interrupt-names = "irq_dec";
1335
+ vpu: video-codec@ff650000 {
1336
+ compatible = "rockchip,rk3399-vpu";
1337
+ reg = <0x0 0xff650000 0x0 0x800>;
1338
+ interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH 0>,
1339
+ <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH 0>;
1340
+ interrupt-names = "vepu", "vdpu";
13471341 clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
1348
- clock-names = "aclk_vcodec", "hclk_vcodec";
1349
- resets = <&cru SRST_H_VCODEC>, <&cru SRST_A_VCODEC>;
1350
- reset-names = "shared_video_h", "shared_video_a";
1342
+ clock-names = "aclk", "hclk";
13511343 iommus = <&vpu_mmu>;
13521344 power-domains = <&power RK3399_PD_VCODEC>;
1353
- rockchip,srv = <&mpp_srv>;
1354
- rockchip,taskqueue-node = <0>;
1355
- rockchip,resetgroup-node = <0>;
13561345 status = "disabled";
13571346 };
13581347
....@@ -1373,6 +1362,23 @@
13731362 status = "disabled";
13741363 };
13751364
1365
+ vdpu: vdpu@ff650400 {
1366
+ compatible = "rockchip,vpu-decoder-v2";
1367
+ reg = <0x0 0xff650400 0x0 0x400>;
1368
+ interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH 0>;
1369
+ interrupt-names = "irq_dec";
1370
+ clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
1371
+ clock-names = "aclk_vcodec", "hclk_vcodec";
1372
+ resets = <&cru SRST_H_VCODEC>, <&cru SRST_A_VCODEC>;
1373
+ reset-names = "shared_video_h", "shared_video_a";
1374
+ iommus = <&vpu_mmu>;
1375
+ power-domains = <&power RK3399_PD_VCODEC>;
1376
+ rockchip,srv = <&mpp_srv>;
1377
+ rockchip,taskqueue-node = <0>;
1378
+ rockchip,resetgroup-node = <0>;
1379
+ status = "disabled";
1380
+ };
1381
+
13761382 vpu_mmu: iommu@ff650800 {
13771383 compatible = "rockchip,iommu";
13781384 reg = <0x0 0xff650800 0x0 0x40>;
....@@ -1380,8 +1386,20 @@
13801386 interrupt-names = "vpu_mmu";
13811387 clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
13821388 clock-names = "aclk", "iface";
1383
- power-domains = <&power RK3399_PD_VCODEC>;
13841389 #iommu-cells = <0>;
1390
+ power-domains = <&power RK3399_PD_VCODEC>;
1391
+ status = "disabled";
1392
+ };
1393
+
1394
+ vdec: video-codec@ff660000 {
1395
+ compatible = "rockchip,rk3399-vdec";
1396
+ reg = <0x0 0xff660000 0x0 0x400>;
1397
+ interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH 0>;
1398
+ clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>,
1399
+ <&cru SCLK_VDU_CA>, <&cru SCLK_VDU_CORE>;
1400
+ clock-names = "axi", "ahb", "cabac", "core";
1401
+ iommus = <&vdec_mmu>;
1402
+ power-domains = <&power RK3399_PD_VDU>;
13851403 status = "disabled";
13861404 };
13871405
....@@ -1399,7 +1417,7 @@
13991417 <&cru SRST_VDU_CA>, <&cru SRST_VDU_CORE>;
14001418 reset-names = "video_h", "video_a", "niu_h", "niu_a",
14011419 "video_cabac", "video_core";
1402
- iommus = <&rkvdec_mmu>;
1420
+ iommus = <&vdec_mmu>;
14031421 rockchip,srv = <&mpp_srv>;
14041422 rockchip,taskqueue-node = <1>;
14051423 rockchip,resetgroup-node = <1>;
....@@ -1407,11 +1425,11 @@
14071425 status = "disabled";
14081426 };
14091427
1410
- rkvdec_mmu: iommu@ff660480 {
1428
+ vdec_mmu: iommu@ff660480 {
14111429 compatible = "rockchip,iommu";
14121430 reg = <0x0 0xff660480 0x0 0x40>, <0x0 0xff6604c0 0x0 0x40>;
14131431 interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH 0>;
1414
- interrupt-names = "rkvdec_mmu";
1432
+ interrupt-names = "vdec_mmu";
14151433 clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>;
14161434 clock-names = "aclk", "iface";
14171435 power-domains = <&power RK3399_PD_VDU>;
....@@ -1499,23 +1517,22 @@
14991517 pmucru: pmu-clock-controller@ff750000 {
15001518 compatible = "rockchip,rk3399-pmucru";
15011519 reg = <0x0 0xff750000 0x0 0x1000>;
1520
+ rockchip,grf = <&pmugrf>;
15021521 #clock-cells = <1>;
15031522 #reset-cells = <1>;
1504
- assigned-clocks = <&pmucru PLL_PPLL>, <&pmucru FCLK_CM0S_SRC_PMU>;
1505
- assigned-clock-rates = <676000000>, <97000000>;
1523
+ assigned-clocks = <&pmucru PLL_PPLL>;
1524
+ assigned-clock-rates = <676000000>;
15061525 };
15071526
15081527 cru: clock-controller@ff760000 {
15091528 compatible = "rockchip,rk3399-cru";
15101529 reg = <0x0 0xff760000 0x0 0x1000>;
1530
+ rockchip,grf = <&grf>;
15111531 #clock-cells = <1>;
15121532 #reset-cells = <1>;
15131533 assigned-clocks =
1514
- <&cru ACLK_VOP0>, <&cru HCLK_VOP0>,
1515
- <&cru ACLK_VOP1>, <&cru HCLK_VOP1>,
1516
- <&cru ARMCLKL>, <&cru ARMCLKB>,
15171534 <&cru PLL_GPLL>, <&cru PLL_CPLL>,
1518
- <&cru ACLK_GPU>, <&cru PLL_NPLL>,
1535
+ <&cru PLL_NPLL>,
15191536 <&cru ACLK_PERIHP>, <&cru HCLK_PERIHP>,
15201537 <&cru PCLK_PERIHP>,
15211538 <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>,
....@@ -1525,11 +1542,8 @@
15251542 <&cru ACLK_GIC_PRE>,
15261543 <&cru PCLK_DDR>;
15271544 assigned-clock-rates =
1528
- <400000000>, <200000000>,
1529
- <400000000>, <200000000>,
1530
- <816000000>, <816000000>,
15311545 <594000000>, <800000000>,
1532
- <200000000>, <1000000000>,
1546
+ <1000000000>,
15331547 <150000000>, <75000000>,
15341548 <37500000>,
15351549 <100000000>, <100000000>,
....@@ -1551,6 +1565,17 @@
15511565 status = "disabled";
15521566 };
15531567
1568
+ mipi_dphy_rx0: mipi-dphy-rx0 {
1569
+ compatible = "rockchip,rk3399-mipi-dphy";
1570
+ clocks = <&cru SCLK_MIPIDPHY_REF>,
1571
+ <&cru SCLK_DPHY_RX0_CFG>,
1572
+ <&cru PCLK_VIO_GRF>;
1573
+ clock-names = "dphy-ref", "dphy-cfg", "grf";
1574
+ power-domains = <&power RK3399_PD_VIO>;
1575
+ #phy-cells = <0>;
1576
+ status = "disabled";
1577
+ };
1578
+
15541579 u2phy0: usb2-phy@e450 {
15551580 compatible = "rockchip,rk3399-usb2phy";
15561581 reg = <0xe450 0x10>;
....@@ -1558,7 +1583,6 @@
15581583 clock-names = "phyclk";
15591584 #clock-cells = <0>;
15601585 clock-output-names = "clk_usbphy0_480m";
1561
- power-domains = <&power RK3399_PD_PERIHP>;
15621586 status = "disabled";
15631587
15641588 u2phy0_host: host-port {
....@@ -1586,7 +1610,6 @@
15861610 clock-names = "phyclk";
15871611 #clock-cells = <0>;
15881612 clock-output-names = "clk_usbphy1_480m";
1589
- power-domains = <&power RK3399_PD_PERIHP>;
15901613 status = "disabled";
15911614
15921615 u2phy1_host: host-port {
....@@ -1612,6 +1635,7 @@
16121635 reg = <0xf780 0x24>;
16131636 clocks = <&sdhci>;
16141637 clock-names = "emmcclk";
1638
+ drive-impedance-ohm = <50>;
16151639 #phy-cells = <0>;
16161640 status = "disabled";
16171641 };
....@@ -1623,16 +1647,6 @@
16231647 #phy-cells = <1>;
16241648 resets = <&cru SRST_PCIEPHY>;
16251649 reset-names = "phy";
1626
- status = "disabled";
1627
- };
1628
-
1629
- mipi_dphy_rx0: mipi-dphy-rx0 {
1630
- compatible = "rockchip,rk3399-mipi-dphy";
1631
- clocks = <&cru SCLK_MIPIDPHY_REF>,
1632
- <&cru SCLK_DPHY_RX0_CFG>,
1633
- <&cru PCLK_VIO_GRF>;
1634
- clock-names = "dphy-ref", "dphy-cfg", "grf";
1635
- power-domains = <&power RK3399_PD_VIO>;
16361650 status = "disabled";
16371651 };
16381652
....@@ -1687,13 +1701,6 @@
16871701 <&cru SRST_P_UPHY0_TCPHY>;
16881702 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
16891703 rockchip,grf = <&grf>;
1690
- rockchip,typec-conn-dir = <0xe580 0 16>;
1691
- rockchip,usb3tousb2-en = <0xe580 3 19>;
1692
- rockchip,usb3-host-disable = <0x2434 0 16>;
1693
- rockchip,usb3-host-port = <0x2434 12 28>;
1694
- rockchip,external-psm = <0xe588 14 30>;
1695
- rockchip,pipe-status = <0xe5c0 0 0>;
1696
- rockchip,uphy-dp-sel = <0x6268 19 19>;
16971704 status = "disabled";
16981705
16991706 tcphy0_dp: dp-port {
....@@ -1719,13 +1726,6 @@
17191726 <&cru SRST_P_UPHY1_TCPHY>;
17201727 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
17211728 rockchip,grf = <&grf>;
1722
- rockchip,typec-conn-dir = <0xe58c 0 16>;
1723
- rockchip,usb3tousb2-en = <0xe58c 3 19>;
1724
- rockchip,usb3-host-disable = <0x2444 0 16>;
1725
- rockchip,usb3-host-port = <0x2444 12 28>;
1726
- rockchip,external-psm = <0xe594 14 30>;
1727
- rockchip,pipe-status = <0xe5c0 16 16>;
1728
- rockchip,uphy-dp-sel = <0x6268 3 19>;
17291729 status = "disabled";
17301730
17311731 tcphy1_dp: dp-port {
....@@ -1830,8 +1830,8 @@
18301830 vopl: vop@ff8f0000 {
18311831 compatible = "rockchip,rk3399-vop-lit";
18321832 reg = <0x0 0xff8f0000 0x0 0x600>,
1833
- <0x0 0xff8f1c00 0x0 0x200>,
1834
- <0x0 0xff8f2000 0x0 0x400>;
1833
+ <0x0 0xff8f1c00 0x0 0x200>,
1834
+ <0x0 0xff8f2000 0x0 0x400>;
18351835 reg-names = "regs", "cabc_lut", "gamma_lut";
18361836 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>;
18371837 clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>, <&cru DCLK_VOP1_DIV>;
....@@ -1861,14 +1861,14 @@
18611861 remote-endpoint = <&hdmi_in_vopl>;
18621862 };
18631863
1864
- vopl_out_dp: endpoint@3 {
1864
+ vopl_out_dsi1: endpoint@3 {
18651865 reg = <3>;
1866
- remote-endpoint = <&dp_in_vopl>;
1866
+ remote-endpoint = <&dsi1_in_vopl>;
18671867 };
18681868
1869
- vopl_out_dsi1: endpoint@4 {
1869
+ vopl_out_dp: endpoint@4 {
18701870 reg = <4>;
1871
- remote-endpoint = <&dsi1_in_vopl>;
1871
+ remote-endpoint = <&dp_in_vopl>;
18721872 };
18731873 };
18741874 };
....@@ -1893,14 +1893,15 @@
18931893 clock-names = "aclk", "iface";
18941894 power-domains = <&power RK3399_PD_VOPL>;
18951895 #iommu-cells = <0>;
1896
+ rockchip,disable-device-link-resume;
18961897 status = "disabled";
18971898 };
18981899
18991900 vopb: vop@ff900000 {
19001901 compatible = "rockchip,rk3399-vop-big";
19011902 reg = <0x0 0xff900000 0x0 0x600>,
1902
- <0x0 0xff901c00 0x0 0x200>,
1903
- <0x0 0xff902000 0x0 0x1000>;
1903
+ <0x0 0xff901c00 0x0 0x200>,
1904
+ <0x0 0xff902000 0x0 0x1000>;
19041905 reg-names = "regs", "cabc_lut", "gamma_lut";
19051906 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH 0>;
19061907 clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>, <&cru DCLK_VOP0_DIV>;
....@@ -1930,14 +1931,14 @@
19301931 remote-endpoint = <&hdmi_in_vopb>;
19311932 };
19321933
1933
- vopb_out_dp: endpoint@3 {
1934
+ vopb_out_dsi1: endpoint@3 {
19341935 reg = <3>;
1935
- remote-endpoint = <&dp_in_vopb>;
1936
+ remote-endpoint = <&dsi1_in_vopb>;
19361937 };
19371938
1938
- vopb_out_dsi1: endpoint@4 {
1939
+ vopb_out_dp: endpoint@4 {
19391940 reg = <4>;
1940
- remote-endpoint = <&dsi1_in_vopb>;
1941
+ remote-endpoint = <&dp_in_vopb>;
19411942 };
19421943 };
19431944 };
....@@ -1962,6 +1963,7 @@
19621963 clock-names = "aclk", "iface";
19631964 power-domains = <&power RK3399_PD_VOPB>;
19641965 #iommu-cells = <0>;
1966
+ rockchip,disable-device-link-resume;
19651967 status = "disabled";
19661968 };
19671969
....@@ -2048,10 +2050,10 @@
20482050 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH 0>;
20492051 clocks = <&cru PCLK_HDMI_CTRL>,
20502052 <&cru SCLK_HDMI_SFR>,
2051
- <&cru PLL_VPLL>,
2053
+ <&cru SCLK_HDMI_CEC>,
20522054 <&cru PCLK_VIO_GRF>,
2053
- <&cru SCLK_HDMI_CEC>;
2054
- clock-names = "iahb", "isfr", "vpll", "grf", "cec";
2055
+ <&cru PLL_VPLL>;
2056
+ clock-names = "iahb", "isfr", "cec", "grf", "vpll";
20552057 power-domains = <&power RK3399_PD_HDCP>;
20562058 reg-io-width = <4>;
20572059 rockchip,grf = <&grf>;
....@@ -2077,23 +2079,27 @@
20772079 };
20782080 };
20792081
2080
- dsi: dsi@ff960000 {
2081
- compatible = "rockchip,rk3399-mipi-dsi";
2082
+ dsi: mipi_dsi: dsi@ff960000 {
2083
+ compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi";
20822084 reg = <0x0 0xff960000 0x0 0x8000>;
20832085 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH 0>;
20842086 clocks = <&cru SCLK_DPHY_PLL>, <&cru PCLK_MIPI_DSI0>,
2085
- <&cru SCLK_DPHY_TX0_CFG>;
2086
- clock-names = "ref", "pclk", "phy_cfg";
2087
+ <&cru SCLK_DPHY_TX0_CFG>, <&cru PCLK_VIO_GRF>;
2088
+ clock-names = "ref", "pclk", "phy_cfg", "grf";
20872089 power-domains = <&power RK3399_PD_VIO>;
20882090 resets = <&cru SRST_P_MIPI_DSI0>;
20892091 reset-names = "apb";
20902092 rockchip,grf = <&grf>;
2091
- status = "disabled";
20922093 #address-cells = <1>;
20932094 #size-cells = <0>;
2095
+ status = "disabled";
20942096
20952097 ports {
2096
- port {
2098
+ #address-cells = <1>;
2099
+ #size-cells = <0>;
2100
+
2101
+ port@0 {
2102
+ reg = <0>;
20972103 #address-cells = <1>;
20982104 #size-cells = <0>;
20992105
....@@ -2101,7 +2107,6 @@
21012107 reg = <0>;
21022108 remote-endpoint = <&vopb_out_dsi>;
21032109 };
2104
-
21052110 dsi_in_vopl: endpoint@1 {
21062111 reg = <1>;
21072112 remote-endpoint = <&vopl_out_dsi>;
....@@ -2110,23 +2115,27 @@
21102115 };
21112116 };
21122117
2113
- dsi1: dsi@ff968000 {
2114
- compatible = "rockchip,rk3399-mipi-dsi";
2118
+ dsi1: mipi_dsi1: dsi@ff968000 {
2119
+ compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi";
21152120 reg = <0x0 0xff968000 0x0 0x8000>;
21162121 interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH 0>;
21172122 clocks = <&cru SCLK_DPHY_PLL>, <&cru PCLK_MIPI_DSI1>,
2118
- <&cru SCLK_DPHY_TX1RX1_CFG>;
2119
- clock-names = "ref", "pclk", "phy_cfg";
2123
+ <&cru SCLK_DPHY_TX1RX1_CFG>, <&cru PCLK_VIO_GRF>;
2124
+ clock-names = "ref", "pclk", "phy_cfg", "grf";
21202125 power-domains = <&power RK3399_PD_VIO>;
21212126 resets = <&cru SRST_P_MIPI_DSI1>;
21222127 reset-names = "apb";
21232128 rockchip,grf = <&grf>;
2124
- status = "disabled";
21252129 #address-cells = <1>;
21262130 #size-cells = <0>;
2131
+ status = "disabled";
21272132
21282133 ports {
2129
- port {
2134
+ #address-cells = <1>;
2135
+ #size-cells = <0>;
2136
+
2137
+ port@0 {
2138
+ reg = <0>;
21302139 #address-cells = <1>;
21312140 #size-cells = <0>;
21322141
....@@ -2147,9 +2156,9 @@
21472156 compatible = "rockchip,rk3399-mipi-dphy";
21482157 reg = <0x0 0xff968000 0x0 0x8000>;
21492158 clocks = <&cru SCLK_MIPIDPHY_REF>,
2150
- <&cru SCLK_DPHY_TX1RX1_CFG>,
2151
- <&cru PCLK_VIO_GRF>,
2152
- <&cru PCLK_MIPI_DSI1>;
2159
+ <&cru SCLK_DPHY_TX1RX1_CFG>,
2160
+ <&cru PCLK_VIO_GRF>,
2161
+ <&cru PCLK_MIPI_DSI1>;
21532162 clock-names = "dphy-ref", "dphy-cfg",
21542163 "grf", "pclk_mipi_dsi";
21552164 rockchip,grf = <&grf>;
....@@ -2161,8 +2170,10 @@
21612170 compatible = "rockchip,rk3399-edp";
21622171 reg = <0x0 0xff970000 0x0 0x8000>;
21632172 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH 0>;
2164
- clocks = <&cru PCLK_EDP_CTRL>;
2165
- clock-names = "dp";
2173
+ clocks = <&cru PCLK_EDP>, <&cru PCLK_EDP_CTRL>, <&cru PCLK_VIO_GRF>;
2174
+ clock-names = "dp", "pclk", "grf";
2175
+ pinctrl-names = "default";
2176
+ pinctrl-0 = <&edp_hpd>;
21662177 power-domains = <&power RK3399_PD_EDP>;
21672178 resets = <&cru SRST_P_EDP_CTRL>;
21682179 reset-names = "dp";
....@@ -2172,8 +2183,7 @@
21722183 ports {
21732184 #address-cells = <1>;
21742185 #size-cells = <0>;
2175
-
2176
- port@0 {
2186
+ edp_in: port@0 {
21772187 reg = <0>;
21782188 #address-cells = <1>;
21792189 #size-cells = <0>;
....@@ -2191,31 +2201,19 @@
21912201 };
21922202 };
21932203
2194
- hdmi_hdcp2: hdmi-hdcp2@ff988000 {
2195
- compatible = "rockchip,rk3399-hdmi-hdcp2";
2196
- reg = <0x0 0xff988000 0x0 0x2000>;
2197
- interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH 0>;
2198
- clocks = <&cru ACLK_HDCP22>, <&cru PCLK_HDCP22>,
2199
- <&cru HCLK_HDCP22>;
2200
- clock-names ="aclk_hdcp2", "pclk_hdcp2", "hdcp2_clk_hdmi";
2201
- status = "disabled";
2202
- };
2203
-
22042204 gpu: gpu@ff9a0000 {
22052205 compatible = "arm,malit860",
22062206 "arm,malit86x",
22072207 "arm,malit8xx",
22082208 "arm,mali-midgard";
2209
-
22102209 reg = <0x0 0xff9a0000 0x0 0x10000>;
2211
- interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH 0>,
2212
- <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH 0>,
2213
- <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH 0>;
2214
- interrupt-names = "GPU", "JOB", "MMU";
2215
-
2210
+ interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH 0>,
2211
+ <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH 0>,
2212
+ <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH 0>;
2213
+ interrupt-names = "job", "mmu", "gpu";
22162214 clocks = <&cru ACLK_GPU>;
22172215 clock-names = "clk_mali";
2218
- #cooling-cells = <2>; /* min followed by max */
2216
+ #cooling-cells = <2>;
22192217 power-domains = <&power RK3399_PD_GPU>;
22202218 power-off-delay-ms = <200>;
22212219 upthreshold = <40>;
....@@ -2393,6 +2391,11 @@
23932391 bias-disable;
23942392 };
23952393
2394
+ pcfg_pull_none_10ma: pcfg-pull-none-10ma {
2395
+ bias-disable;
2396
+ drive-strength = <10>;
2397
+ };
2398
+
23962399 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
23972400 bias-disable;
23982401 drive-strength = <12>;
....@@ -2418,19 +2421,14 @@
24182421 drive-strength = <2>;
24192422 };
24202423
2421
- pcfg_pull_none_10ma: pcfg-pull-none-10ma {
2422
- bias-disable;
2423
- drive-strength = <10>;
2424
+ pcfg_pull_up_8ma: pcfg-pull-up-8ma {
2425
+ bias-pull-up;
2426
+ drive-strength = <8>;
24242427 };
24252428
24262429 pcfg_pull_up_10ma: pcfg-pull-up-10ma {
24272430 bias-pull-up;
24282431 drive-strength = <10>;
2429
- };
2430
-
2431
- pcfg_pull_up_8ma: pcfg-pull-up-8ma {
2432
- bias-pull-up;
2433
- drive-strength = <8>;
24342432 };
24352433
24362434 pcfg_pull_up_18ma: pcfg-pull-up-18ma {
....@@ -2652,7 +2650,8 @@
26522650 };
26532651
26542652 i2s_8ch_mclk: i2s-8ch-mclk {
2655
- rockchip,pins = <4 RK_PA0 1 &pcfg_pull_none>;
2653
+ rockchip,pins =
2654
+ <4 RK_PA0 1 &pcfg_pull_none>;
26562655 };
26572656 };
26582657
....@@ -2910,7 +2909,7 @@
29102909 };
29112910
29122911 tsadc {
2913
- otp_gpio: otp-gpio {
2912
+ otp_pin: otp-pin {
29142913 rockchip,pins = <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
29152914 };
29162915