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,22 +418,9 @@
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";
449
- };
450
-
451
- debug: debug@fe430000 {
452
- compatible = "rockchip,debug";
453
- reg = <0x0 0xfe430000 0x0 0x1000>,
454
- <0x0 0xfe432000 0x0 0x1000>,
455
- <0x0 0xfe434000 0x0 0x1000>,
456
- <0x0 0xfe436000 0x0 0x1000>,
457
- <0x0 0xfe610000 0x0 0x1000>,
458
- <0x0 0xfe710000 0x0 0x1000>;
459424 };
460425
461426 usbdrd3_0: usb@fe800000 {
....@@ -464,31 +429,36 @@
464429 #size-cells = <2>;
465430 ranges;
466431 clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>,
467
- <&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>;
468434 clock-names = "ref_clk", "suspend_clk",
469
- "bus_clk", "grf_clk";
435
+ "bus_clk", "aclk_usb3_rksoc_axi_perf",
436
+ "aclk_usb3", "grf_clk";
470437 status = "disabled";
471438
472
- usbdrd_dwc3_0: dwc3@fe800000 {
439
+ usbdrd_dwc3_0: usb@fe800000 {
473440 compatible = "snps,dwc3";
474441 reg = <0x0 0xfe800000 0x0 0x100000>;
475442 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";
476448 dr_mode = "otg";
477449 phys = <&u2phy0_otg>, <&tcphy0_usb3>;
478450 phy-names = "usb2-phy", "usb3-phy";
479451 phy_type = "utmi_wide";
480
- power-domains = <&power RK3399_PD_USB3>;
481
- resets = <&cru SRST_A_USB3_OTG0>;
482
- reset-names = "usb3-otg";
483452 snps,dis_enblslpm_quirk;
484
- snps,dis-u1u2-quirk;
453
+ snps,dis-u1-entry-quirk;
454
+ snps,dis-u2-entry-quirk;
485455 snps,dis-u2-freeclk-exists-quirk;
486456 snps,dis_u2_susphy_quirk;
487457 snps,dis-del-phy-power-chg-quirk;
488458 snps,dis-tx-ipgap-linecheck-quirk;
489
- snps,xhci-slow-suspend-quirk;
490
- snps,xhci-trb-ent-quirk;
491
- 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>;
492462 status = "disabled";
493463 };
494464 };
....@@ -499,30 +469,34 @@
499469 #size-cells = <2>;
500470 ranges;
501471 clocks = <&cru SCLK_USB3OTG1_REF>, <&cru SCLK_USB3OTG1_SUSPEND>,
502
- <&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>;
503474 clock-names = "ref_clk", "suspend_clk",
504
- "bus_clk", "grf_clk";
475
+ "bus_clk", "aclk_usb3_rksoc_axi_perf",
476
+ "aclk_usb3", "grf_clk";
505477 status = "disabled";
506478
507
- usbdrd_dwc3_1: dwc3@fe900000 {
479
+ usbdrd_dwc3_1: usb@fe900000 {
508480 compatible = "snps,dwc3";
509481 reg = <0x0 0xfe900000 0x0 0x100000>;
510482 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH 0>;
511
- 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";
512489 phys = <&u2phy1_otg>, <&tcphy1_usb3>;
513490 phy-names = "usb2-phy", "usb3-phy";
514491 phy_type = "utmi_wide";
515
- power-domains = <&power RK3399_PD_USB3>;
516
- resets = <&cru SRST_A_USB3_OTG1>;
517
- reset-names = "usb3-otg";
518492 snps,dis_enblslpm_quirk;
519493 snps,dis-u2-freeclk-exists-quirk;
520494 snps,dis_u2_susphy_quirk;
521495 snps,dis-del-phy-power-chg-quirk;
522496 snps,dis-tx-ipgap-linecheck-quirk;
523
- snps,xhci-slow-suspend-quirk;
524
- snps,xhci-trb-ent-quirk;
525
- 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>;
526500 status = "disabled";
527501 };
528502 };
....@@ -580,6 +554,7 @@
580554 its: interrupt-controller@fee20000 {
581555 compatible = "arm,gic-v3-its";
582556 msi-controller;
557
+ #msi-cells = <1>;
583558 reg = <0x0 0xfee20000 0x0 0x20000>;
584559 };
585560
....@@ -754,6 +729,8 @@
754729 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
755730 clock-names = "spiclk", "apb_pclk";
756731 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH 0>;
732
+ dmas = <&dmac_peri 10>, <&dmac_peri 11>;
733
+ dma-names = "tx", "rx";
757734 pinctrl-names = "default";
758735 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
759736 #address-cells = <1>;
....@@ -767,6 +744,8 @@
767744 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
768745 clock-names = "spiclk", "apb_pclk";
769746 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH 0>;
747
+ dmas = <&dmac_peri 12>, <&dmac_peri 13>;
748
+ dma-names = "tx", "rx";
770749 pinctrl-names = "default";
771750 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
772751 #address-cells = <1>;
....@@ -780,6 +759,8 @@
780759 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
781760 clock-names = "spiclk", "apb_pclk";
782761 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH 0>;
762
+ dmas = <&dmac_peri 14>, <&dmac_peri 15>;
763
+ dma-names = "tx", "rx";
783764 pinctrl-names = "default";
784765 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
785766 #address-cells = <1>;
....@@ -793,6 +774,8 @@
793774 clocks = <&cru SCLK_SPI4>, <&cru PCLK_SPI4>;
794775 clock-names = "spiclk", "apb_pclk";
795776 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH 0>;
777
+ dmas = <&dmac_peri 18>, <&dmac_peri 19>;
778
+ dma-names = "tx", "rx";
796779 pinctrl-names = "default";
797780 pinctrl-0 = <&spi4_clk &spi4_tx &spi4_rx &spi4_cs0>;
798781 #address-cells = <1>;
....@@ -806,6 +789,8 @@
806789 clocks = <&cru SCLK_SPI5>, <&cru PCLK_SPI5>;
807790 clock-names = "spiclk", "apb_pclk";
808791 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH 0>;
792
+ dmas = <&dmac_bus 8>, <&dmac_bus 9>;
793
+ dma-names = "tx", "rx";
809794 pinctrl-names = "default";
810795 pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>;
811796 power-domains = <&power RK3399_PD_SDIOAUDIO>;
....@@ -815,7 +800,7 @@
815800 };
816801
817802 thermal_zones: thermal-zones {
818
- soc_thermal: soc-thermal {
803
+ soc_thermal: cpu_thermal: cpu-thermal {
819804 polling-delay-passive = <20>;
820805 polling-delay = <1000>;
821806 sustainable-power = <1000>; /* milliwatts */
....@@ -823,17 +808,17 @@
823808 thermal-sensors = <&tsadc 0>;
824809
825810 trips {
826
- threshold: trip-point-0 {
811
+ threshold: cpu_alert0: cpu_alert0 {
827812 temperature = <70000>;
828813 hysteresis = <2000>;
829814 type = "passive";
830815 };
831
- target: trip-point-1 {
816
+ target: cpu_alert1: cpu_alert1 {
832817 temperature = <85000>;
833818 hysteresis = <2000>;
834819 type = "passive";
835820 };
836
- soc_crit: soc-crit {
821
+ soc_crit: cpu_crit: cpu_crit {
837822 temperature = <115000>; /* millicelsius */
838823 hysteresis = <2000>; /* millicelsius */
839824 type = "critical";
....@@ -881,9 +866,9 @@
881866 resets = <&cru SRST_TSADC>;
882867 reset-names = "tsadc-apb";
883868 rockchip,grf = <&grf>;
884
- rockchip,hw-tshut-temp = <120000>;
869
+ rockchip,hw-tshut-temp = <95000>;
885870 pinctrl-names = "gpio", "otpout";
886
- pinctrl-0 = <&otp_gpio>;
871
+ pinctrl-0 = <&otp_pin>;
887872 pinctrl-1 = <&otp_out>;
888873 #thermal-sensor-cells = <1>;
889874 status = "disabled";
....@@ -1032,26 +1017,26 @@
10321017 #size-cells = <0>;
10331018
10341019 /* These power domains are grouped by VD_CENTER */
1035
- pd_iep@RK3399_PD_IEP {
1020
+ power-domain@RK3399_PD_IEP {
10361021 reg = <RK3399_PD_IEP>;
10371022 clocks = <&cru ACLK_IEP>,
10381023 <&cru HCLK_IEP>;
10391024 pm_qos = <&qos_iep>;
10401025 };
1041
- pd_rga@RK3399_PD_RGA {
1026
+ power-domain@RK3399_PD_RGA {
10421027 reg = <RK3399_PD_RGA>;
10431028 clocks = <&cru ACLK_RGA>,
10441029 <&cru HCLK_RGA>;
10451030 pm_qos = <&qos_rga_r>,
10461031 <&qos_rga_w>;
10471032 };
1048
- pd_vcodec@RK3399_PD_VCODEC {
1033
+ power-domain@RK3399_PD_VCODEC {
10491034 reg = <RK3399_PD_VCODEC>;
10501035 clocks = <&cru ACLK_VCODEC>,
10511036 <&cru HCLK_VCODEC>;
10521037 pm_qos = <&qos_video_m0>;
10531038 };
1054
- pd_vdu@RK3399_PD_VDU {
1039
+ power-domain@RK3399_PD_VDU {
10551040 reg = <RK3399_PD_VDU>;
10561041 clocks = <&cru ACLK_VDU>,
10571042 <&cru HCLK_VDU>;
....@@ -1060,29 +1045,29 @@
10601045 };
10611046
10621047 /* These power domains are grouped by VD_GPU */
1063
- pd_gpu@RK3399_PD_GPU {
1048
+ power-domain@RK3399_PD_GPU {
10641049 reg = <RK3399_PD_GPU>;
10651050 clocks = <&cru ACLK_GPU>;
10661051 pm_qos = <&qos_gpu>;
10671052 };
10681053
10691054 /* These power domains are grouped by VD_LOGIC */
1070
- pd_edp@RK3399_PD_EDP {
1055
+ power-domain@RK3399_PD_EDP {
10711056 reg = <RK3399_PD_EDP>;
10721057 clocks = <&cru PCLK_EDP_CTRL>;
10731058 };
1074
- pd_emmc@RK3399_PD_EMMC {
1059
+ power-domain@RK3399_PD_EMMC {
10751060 reg = <RK3399_PD_EMMC>;
10761061 clocks = <&cru ACLK_EMMC>;
10771062 pm_qos = <&qos_emmc>;
10781063 };
1079
- pd_gmac@RK3399_PD_GMAC {
1064
+ power-domain@RK3399_PD_GMAC {
10801065 reg = <RK3399_PD_GMAC>;
10811066 clocks = <&cru ACLK_GMAC>,
10821067 <&cru PCLK_GMAC>;
10831068 pm_qos = <&qos_gmac>;
10841069 };
1085
- pd_perihp@RK3399_PD_PERIHP {
1070
+ power-domain@RK3399_PD_PERIHP {
10861071 reg = <RK3399_PD_PERIHP>;
10871072 #address-cells = <1>;
10881073 #size-cells = <0>;
....@@ -1092,73 +1077,73 @@
10921077 <&qos_usb_host0>,
10931078 <&qos_usb_host1>;
10941079
1095
- pd_sd@RK3399_PD_SD {
1080
+ power-domain@RK3399_PD_SD {
10961081 reg = <RK3399_PD_SD>;
10971082 clocks = <&cru HCLK_SDMMC>,
10981083 <&cru SCLK_SDMMC>;
10991084 pm_qos = <&qos_sd>;
11001085 };
11011086 };
1102
- pd_sdioaudio@RK3399_PD_SDIOAUDIO {
1087
+ power-domain@RK3399_PD_SDIOAUDIO {
11031088 reg = <RK3399_PD_SDIOAUDIO>;
11041089 clocks = <&cru HCLK_SDIO>;
11051090 pm_qos = <&qos_sdioaudio>;
11061091 };
1107
- 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 {
11081103 reg = <RK3399_PD_USB3>;
11091104 clocks = <&cru ACLK_USB3>;
11101105 pm_qos = <&qos_usb_otg0>,
11111106 <&qos_usb_otg1>;
11121107 };
1113
- pd_vio@RK3399_PD_VIO {
1108
+ power-domain@RK3399_PD_VIO {
11141109 reg = <RK3399_PD_VIO>;
11151110 #address-cells = <1>;
11161111 #size-cells = <0>;
11171112
1118
- pd_hdcp@RK3399_PD_HDCP {
1113
+ power-domain@RK3399_PD_HDCP {
11191114 reg = <RK3399_PD_HDCP>;
11201115 clocks = <&cru ACLK_HDCP>,
11211116 <&cru HCLK_HDCP>,
11221117 <&cru PCLK_HDCP>;
11231118 pm_qos = <&qos_hdcp>;
11241119 };
1125
- pd_isp0@RK3399_PD_ISP0 {
1120
+ power-domain@RK3399_PD_ISP0 {
11261121 reg = <RK3399_PD_ISP0>;
11271122 clocks = <&cru ACLK_ISP0>,
11281123 <&cru HCLK_ISP0>;
11291124 pm_qos = <&qos_isp0_m0>,
11301125 <&qos_isp0_m1>;
11311126 };
1132
- pd_isp1@RK3399_PD_ISP1 {
1127
+ power-domain@RK3399_PD_ISP1 {
11331128 reg = <RK3399_PD_ISP1>;
11341129 clocks = <&cru ACLK_ISP1>,
11351130 <&cru HCLK_ISP1>;
11361131 pm_qos = <&qos_isp1_m0>,
11371132 <&qos_isp1_m1>;
11381133 };
1139
- pd_tcpc0@RK3399_PD_TCPC0 {
1140
- reg = <RK3399_PD_TCPD0>;
1141
- clocks = <&cru SCLK_UPHY0_TCPDCORE>,
1142
- <&cru SCLK_UPHY0_TCPDPHY_REF>;
1143
- };
1144
- pd_tcpc1@RK3399_PD_TCPC1 {
1145
- reg = <RK3399_PD_TCPD1>;
1146
- clocks = <&cru SCLK_UPHY1_TCPDCORE>,
1147
- <&cru SCLK_UPHY1_TCPDPHY_REF>;
1148
- };
1149
- pd_vo@RK3399_PD_VO {
1134
+ power-domain@RK3399_PD_VO {
11501135 reg = <RK3399_PD_VO>;
11511136 #address-cells = <1>;
11521137 #size-cells = <0>;
11531138
1154
- pd_vopb@RK3399_PD_VOPB {
1139
+ power-domain@RK3399_PD_VOPB {
11551140 reg = <RK3399_PD_VOPB>;
11561141 clocks = <&cru ACLK_VOP0>,
11571142 <&cru HCLK_VOP0>;
11581143 pm_qos = <&qos_vop_big_r>,
11591144 <&qos_vop_big_w>;
11601145 };
1161
- pd_vopl@RK3399_PD_VOPL {
1146
+ power-domain@RK3399_PD_VOPL {
11621147 reg = <RK3399_PD_VOPL>;
11631148 clocks = <&cru ACLK_VOP1>,
11641149 <&cru HCLK_VOP1>;
....@@ -1172,8 +1157,6 @@
11721157 pmugrf: syscon@ff320000 {
11731158 compatible = "rockchip,rk3399-pmugrf", "syscon", "simple-mfd";
11741159 reg = <0x0 0xff320000 0x0 0x1000>;
1175
- #address-cells = <1>;
1176
- #size-cells = <1>;
11771160
11781161 pmu_io_domains: io-domains {
11791162 compatible = "rockchip,rk3399-pmu-io-voltage-domain";
....@@ -1349,20 +1332,16 @@
13491332 status = "disabled";
13501333 };
13511334
1352
- vdpu: vdpu@ff650400 {
1353
- compatible = "rockchip,vpu-decoder-v2";
1354
- reg = <0x0 0xff650400 0x0 0x400>;
1355
- interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH 0>;
1356
- 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";
13571341 clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
1358
- clock-names = "aclk_vcodec", "hclk_vcodec";
1359
- resets = <&cru SRST_H_VCODEC>, <&cru SRST_A_VCODEC>;
1360
- reset-names = "shared_video_h", "shared_video_a";
1342
+ clock-names = "aclk", "hclk";
13611343 iommus = <&vpu_mmu>;
13621344 power-domains = <&power RK3399_PD_VCODEC>;
1363
- rockchip,srv = <&mpp_srv>;
1364
- rockchip,taskqueue-node = <0>;
1365
- rockchip,resetgroup-node = <0>;
13661345 status = "disabled";
13671346 };
13681347
....@@ -1383,6 +1362,23 @@
13831362 status = "disabled";
13841363 };
13851364
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
+
13861382 vpu_mmu: iommu@ff650800 {
13871383 compatible = "rockchip,iommu";
13881384 reg = <0x0 0xff650800 0x0 0x40>;
....@@ -1390,8 +1386,20 @@
13901386 interrupt-names = "vpu_mmu";
13911387 clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
13921388 clock-names = "aclk", "iface";
1393
- power-domains = <&power RK3399_PD_VCODEC>;
13941389 #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>;
13951403 status = "disabled";
13961404 };
13971405
....@@ -1409,7 +1417,7 @@
14091417 <&cru SRST_VDU_CA>, <&cru SRST_VDU_CORE>;
14101418 reset-names = "video_h", "video_a", "niu_h", "niu_a",
14111419 "video_cabac", "video_core";
1412
- iommus = <&rkvdec_mmu>;
1420
+ iommus = <&vdec_mmu>;
14131421 rockchip,srv = <&mpp_srv>;
14141422 rockchip,taskqueue-node = <1>;
14151423 rockchip,resetgroup-node = <1>;
....@@ -1417,11 +1425,11 @@
14171425 status = "disabled";
14181426 };
14191427
1420
- rkvdec_mmu: iommu@ff660480 {
1428
+ vdec_mmu: iommu@ff660480 {
14211429 compatible = "rockchip,iommu";
14221430 reg = <0x0 0xff660480 0x0 0x40>, <0x0 0xff6604c0 0x0 0x40>;
14231431 interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH 0>;
1424
- interrupt-names = "rkvdec_mmu";
1432
+ interrupt-names = "vdec_mmu";
14251433 clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>;
14261434 clock-names = "aclk", "iface";
14271435 power-domains = <&power RK3399_PD_VDU>;
....@@ -1509,23 +1517,22 @@
15091517 pmucru: pmu-clock-controller@ff750000 {
15101518 compatible = "rockchip,rk3399-pmucru";
15111519 reg = <0x0 0xff750000 0x0 0x1000>;
1520
+ rockchip,grf = <&pmugrf>;
15121521 #clock-cells = <1>;
15131522 #reset-cells = <1>;
1514
- assigned-clocks = <&pmucru PLL_PPLL>, <&pmucru FCLK_CM0S_SRC_PMU>;
1515
- assigned-clock-rates = <676000000>, <97000000>;
1523
+ assigned-clocks = <&pmucru PLL_PPLL>;
1524
+ assigned-clock-rates = <676000000>;
15161525 };
15171526
15181527 cru: clock-controller@ff760000 {
15191528 compatible = "rockchip,rk3399-cru";
15201529 reg = <0x0 0xff760000 0x0 0x1000>;
1530
+ rockchip,grf = <&grf>;
15211531 #clock-cells = <1>;
15221532 #reset-cells = <1>;
15231533 assigned-clocks =
1524
- <&cru ACLK_VOP0>, <&cru HCLK_VOP0>,
1525
- <&cru ACLK_VOP1>, <&cru HCLK_VOP1>,
1526
- <&cru ARMCLKL>, <&cru ARMCLKB>,
15271534 <&cru PLL_GPLL>, <&cru PLL_CPLL>,
1528
- <&cru ACLK_GPU>, <&cru PLL_NPLL>,
1535
+ <&cru PLL_NPLL>,
15291536 <&cru ACLK_PERIHP>, <&cru HCLK_PERIHP>,
15301537 <&cru PCLK_PERIHP>,
15311538 <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>,
....@@ -1535,11 +1542,8 @@
15351542 <&cru ACLK_GIC_PRE>,
15361543 <&cru PCLK_DDR>;
15371544 assigned-clock-rates =
1538
- <400000000>, <200000000>,
1539
- <400000000>, <200000000>,
1540
- <816000000>, <816000000>,
15411545 <594000000>, <800000000>,
1542
- <200000000>, <1000000000>,
1546
+ <1000000000>,
15431547 <150000000>, <75000000>,
15441548 <37500000>,
15451549 <100000000>, <100000000>,
....@@ -1561,6 +1565,17 @@
15611565 status = "disabled";
15621566 };
15631567
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
+
15641579 u2phy0: usb2-phy@e450 {
15651580 compatible = "rockchip,rk3399-usb2phy";
15661581 reg = <0xe450 0x10>;
....@@ -1568,7 +1583,6 @@
15681583 clock-names = "phyclk";
15691584 #clock-cells = <0>;
15701585 clock-output-names = "clk_usbphy0_480m";
1571
- power-domains = <&power RK3399_PD_PERIHP>;
15721586 status = "disabled";
15731587
15741588 u2phy0_host: host-port {
....@@ -1596,7 +1610,6 @@
15961610 clock-names = "phyclk";
15971611 #clock-cells = <0>;
15981612 clock-output-names = "clk_usbphy1_480m";
1599
- power-domains = <&power RK3399_PD_PERIHP>;
16001613 status = "disabled";
16011614
16021615 u2phy1_host: host-port {
....@@ -1622,6 +1635,7 @@
16221635 reg = <0xf780 0x24>;
16231636 clocks = <&sdhci>;
16241637 clock-names = "emmcclk";
1638
+ drive-impedance-ohm = <50>;
16251639 #phy-cells = <0>;
16261640 status = "disabled";
16271641 };
....@@ -1633,16 +1647,6 @@
16331647 #phy-cells = <1>;
16341648 resets = <&cru SRST_PCIEPHY>;
16351649 reset-names = "phy";
1636
- status = "disabled";
1637
- };
1638
-
1639
- mipi_dphy_rx0: mipi-dphy-rx0 {
1640
- compatible = "rockchip,rk3399-mipi-dphy";
1641
- clocks = <&cru SCLK_MIPIDPHY_REF>,
1642
- <&cru SCLK_DPHY_RX0_CFG>,
1643
- <&cru PCLK_VIO_GRF>;
1644
- clock-names = "dphy-ref", "dphy-cfg", "grf";
1645
- power-domains = <&power RK3399_PD_VIO>;
16461650 status = "disabled";
16471651 };
16481652
....@@ -1697,13 +1701,6 @@
16971701 <&cru SRST_P_UPHY0_TCPHY>;
16981702 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
16991703 rockchip,grf = <&grf>;
1700
- rockchip,typec-conn-dir = <0xe580 0 16>;
1701
- rockchip,usb3tousb2-en = <0xe580 3 19>;
1702
- rockchip,usb3-host-disable = <0x2434 0 16>;
1703
- rockchip,usb3-host-port = <0x2434 12 28>;
1704
- rockchip,external-psm = <0xe588 14 30>;
1705
- rockchip,pipe-status = <0xe5c0 0 0>;
1706
- rockchip,uphy-dp-sel = <0x6268 19 19>;
17071704 status = "disabled";
17081705
17091706 tcphy0_dp: dp-port {
....@@ -1729,13 +1726,6 @@
17291726 <&cru SRST_P_UPHY1_TCPHY>;
17301727 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
17311728 rockchip,grf = <&grf>;
1732
- rockchip,typec-conn-dir = <0xe58c 0 16>;
1733
- rockchip,usb3tousb2-en = <0xe58c 3 19>;
1734
- rockchip,usb3-host-disable = <0x2444 0 16>;
1735
- rockchip,usb3-host-port = <0x2444 12 28>;
1736
- rockchip,external-psm = <0xe594 14 30>;
1737
- rockchip,pipe-status = <0xe5c0 16 16>;
1738
- rockchip,uphy-dp-sel = <0x6268 3 19>;
17391729 status = "disabled";
17401730
17411731 tcphy1_dp: dp-port {
....@@ -1840,8 +1830,8 @@
18401830 vopl: vop@ff8f0000 {
18411831 compatible = "rockchip,rk3399-vop-lit";
18421832 reg = <0x0 0xff8f0000 0x0 0x600>,
1843
- <0x0 0xff8f1c00 0x0 0x200>,
1844
- <0x0 0xff8f2000 0x0 0x400>;
1833
+ <0x0 0xff8f1c00 0x0 0x200>,
1834
+ <0x0 0xff8f2000 0x0 0x400>;
18451835 reg-names = "regs", "cabc_lut", "gamma_lut";
18461836 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>;
18471837 clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>, <&cru DCLK_VOP1_DIV>;
....@@ -1871,14 +1861,14 @@
18711861 remote-endpoint = <&hdmi_in_vopl>;
18721862 };
18731863
1874
- vopl_out_dp: endpoint@3 {
1864
+ vopl_out_dsi1: endpoint@3 {
18751865 reg = <3>;
1876
- remote-endpoint = <&dp_in_vopl>;
1866
+ remote-endpoint = <&dsi1_in_vopl>;
18771867 };
18781868
1879
- vopl_out_dsi1: endpoint@4 {
1869
+ vopl_out_dp: endpoint@4 {
18801870 reg = <4>;
1881
- remote-endpoint = <&dsi1_in_vopl>;
1871
+ remote-endpoint = <&dp_in_vopl>;
18821872 };
18831873 };
18841874 };
....@@ -1903,14 +1893,15 @@
19031893 clock-names = "aclk", "iface";
19041894 power-domains = <&power RK3399_PD_VOPL>;
19051895 #iommu-cells = <0>;
1896
+ rockchip,disable-device-link-resume;
19061897 status = "disabled";
19071898 };
19081899
19091900 vopb: vop@ff900000 {
19101901 compatible = "rockchip,rk3399-vop-big";
19111902 reg = <0x0 0xff900000 0x0 0x600>,
1912
- <0x0 0xff901c00 0x0 0x200>,
1913
- <0x0 0xff902000 0x0 0x1000>;
1903
+ <0x0 0xff901c00 0x0 0x200>,
1904
+ <0x0 0xff902000 0x0 0x1000>;
19141905 reg-names = "regs", "cabc_lut", "gamma_lut";
19151906 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH 0>;
19161907 clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>, <&cru DCLK_VOP0_DIV>;
....@@ -1940,14 +1931,14 @@
19401931 remote-endpoint = <&hdmi_in_vopb>;
19411932 };
19421933
1943
- vopb_out_dp: endpoint@3 {
1934
+ vopb_out_dsi1: endpoint@3 {
19441935 reg = <3>;
1945
- remote-endpoint = <&dp_in_vopb>;
1936
+ remote-endpoint = <&dsi1_in_vopb>;
19461937 };
19471938
1948
- vopb_out_dsi1: endpoint@4 {
1939
+ vopb_out_dp: endpoint@4 {
19491940 reg = <4>;
1950
- remote-endpoint = <&dsi1_in_vopb>;
1941
+ remote-endpoint = <&dp_in_vopb>;
19511942 };
19521943 };
19531944 };
....@@ -1972,6 +1963,7 @@
19721963 clock-names = "aclk", "iface";
19731964 power-domains = <&power RK3399_PD_VOPB>;
19741965 #iommu-cells = <0>;
1966
+ rockchip,disable-device-link-resume;
19751967 status = "disabled";
19761968 };
19771969
....@@ -2055,15 +2047,13 @@
20552047 hdmi: hdmi@ff940000 {
20562048 compatible = "rockchip,rk3399-dw-hdmi";
20572049 reg = <0x0 0xff940000 0x0 0x20000>;
2058
- interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH 0>,
2059
- <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH 0>;
2060
- interrupt-names = "hdmi", "hdmi_wakeup";
2050
+ interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH 0>;
20612051 clocks = <&cru PCLK_HDMI_CTRL>,
20622052 <&cru SCLK_HDMI_SFR>,
2063
- <&cru PLL_VPLL>,
2053
+ <&cru SCLK_HDMI_CEC>,
20642054 <&cru PCLK_VIO_GRF>,
2065
- <&cru SCLK_HDMI_CEC>;
2066
- clock-names = "iahb", "isfr", "vpll", "grf", "cec";
2055
+ <&cru PLL_VPLL>;
2056
+ clock-names = "iahb", "isfr", "cec", "grf", "vpll";
20672057 power-domains = <&power RK3399_PD_HDCP>;
20682058 reg-io-width = <4>;
20692059 rockchip,grf = <&grf>;
....@@ -2089,23 +2079,27 @@
20892079 };
20902080 };
20912081
2092
- dsi: dsi@ff960000 {
2093
- compatible = "rockchip,rk3399-mipi-dsi";
2082
+ dsi: mipi_dsi: dsi@ff960000 {
2083
+ compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi";
20942084 reg = <0x0 0xff960000 0x0 0x8000>;
20952085 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH 0>;
20962086 clocks = <&cru SCLK_DPHY_PLL>, <&cru PCLK_MIPI_DSI0>,
2097
- <&cru SCLK_DPHY_TX0_CFG>;
2098
- clock-names = "ref", "pclk", "phy_cfg";
2087
+ <&cru SCLK_DPHY_TX0_CFG>, <&cru PCLK_VIO_GRF>;
2088
+ clock-names = "ref", "pclk", "phy_cfg", "grf";
20992089 power-domains = <&power RK3399_PD_VIO>;
21002090 resets = <&cru SRST_P_MIPI_DSI0>;
21012091 reset-names = "apb";
21022092 rockchip,grf = <&grf>;
2103
- status = "disabled";
21042093 #address-cells = <1>;
21052094 #size-cells = <0>;
2095
+ status = "disabled";
21062096
21072097 ports {
2108
- port {
2098
+ #address-cells = <1>;
2099
+ #size-cells = <0>;
2100
+
2101
+ port@0 {
2102
+ reg = <0>;
21092103 #address-cells = <1>;
21102104 #size-cells = <0>;
21112105
....@@ -2113,7 +2107,6 @@
21132107 reg = <0>;
21142108 remote-endpoint = <&vopb_out_dsi>;
21152109 };
2116
-
21172110 dsi_in_vopl: endpoint@1 {
21182111 reg = <1>;
21192112 remote-endpoint = <&vopl_out_dsi>;
....@@ -2122,23 +2115,27 @@
21222115 };
21232116 };
21242117
2125
- dsi1: dsi@ff968000 {
2126
- compatible = "rockchip,rk3399-mipi-dsi";
2118
+ dsi1: mipi_dsi1: dsi@ff968000 {
2119
+ compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi";
21272120 reg = <0x0 0xff968000 0x0 0x8000>;
21282121 interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH 0>;
21292122 clocks = <&cru SCLK_DPHY_PLL>, <&cru PCLK_MIPI_DSI1>,
2130
- <&cru SCLK_DPHY_TX1RX1_CFG>;
2131
- clock-names = "ref", "pclk", "phy_cfg";
2123
+ <&cru SCLK_DPHY_TX1RX1_CFG>, <&cru PCLK_VIO_GRF>;
2124
+ clock-names = "ref", "pclk", "phy_cfg", "grf";
21322125 power-domains = <&power RK3399_PD_VIO>;
21332126 resets = <&cru SRST_P_MIPI_DSI1>;
21342127 reset-names = "apb";
21352128 rockchip,grf = <&grf>;
2136
- status = "disabled";
21372129 #address-cells = <1>;
21382130 #size-cells = <0>;
2131
+ status = "disabled";
21392132
21402133 ports {
2141
- port {
2134
+ #address-cells = <1>;
2135
+ #size-cells = <0>;
2136
+
2137
+ port@0 {
2138
+ reg = <0>;
21422139 #address-cells = <1>;
21432140 #size-cells = <0>;
21442141
....@@ -2159,9 +2156,9 @@
21592156 compatible = "rockchip,rk3399-mipi-dphy";
21602157 reg = <0x0 0xff968000 0x0 0x8000>;
21612158 clocks = <&cru SCLK_MIPIDPHY_REF>,
2162
- <&cru SCLK_DPHY_TX1RX1_CFG>,
2163
- <&cru PCLK_VIO_GRF>,
2164
- <&cru PCLK_MIPI_DSI1>;
2159
+ <&cru SCLK_DPHY_TX1RX1_CFG>,
2160
+ <&cru PCLK_VIO_GRF>,
2161
+ <&cru PCLK_MIPI_DSI1>;
21652162 clock-names = "dphy-ref", "dphy-cfg",
21662163 "grf", "pclk_mipi_dsi";
21672164 rockchip,grf = <&grf>;
....@@ -2173,8 +2170,10 @@
21732170 compatible = "rockchip,rk3399-edp";
21742171 reg = <0x0 0xff970000 0x0 0x8000>;
21752172 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH 0>;
2176
- clocks = <&cru PCLK_EDP_CTRL>;
2177
- 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>;
21782177 power-domains = <&power RK3399_PD_EDP>;
21792178 resets = <&cru SRST_P_EDP_CTRL>;
21802179 reset-names = "dp";
....@@ -2184,8 +2183,7 @@
21842183 ports {
21852184 #address-cells = <1>;
21862185 #size-cells = <0>;
2187
-
2188
- port@0 {
2186
+ edp_in: port@0 {
21892187 reg = <0>;
21902188 #address-cells = <1>;
21912189 #size-cells = <0>;
....@@ -2203,31 +2201,19 @@
22032201 };
22042202 };
22052203
2206
- hdmi_hdcp2: hdmi-hdcp2@ff988000 {
2207
- compatible = "rockchip,rk3399-hdmi-hdcp2";
2208
- reg = <0x0 0xff988000 0x0 0x2000>;
2209
- interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH 0>;
2210
- clocks = <&cru ACLK_HDCP22>, <&cru PCLK_HDCP22>,
2211
- <&cru HCLK_HDCP22>;
2212
- clock-names ="aclk_hdcp2", "pclk_hdcp2", "hdcp2_clk_hdmi";
2213
- status = "disabled";
2214
- };
2215
-
22162204 gpu: gpu@ff9a0000 {
22172205 compatible = "arm,malit860",
22182206 "arm,malit86x",
22192207 "arm,malit8xx",
22202208 "arm,mali-midgard";
2221
-
22222209 reg = <0x0 0xff9a0000 0x0 0x10000>;
2223
- interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH 0>,
2224
- <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH 0>,
2225
- <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH 0>;
2226
- interrupt-names = "GPU", "JOB", "MMU";
2227
-
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";
22282214 clocks = <&cru ACLK_GPU>;
22292215 clock-names = "clk_mali";
2230
- #cooling-cells = <2>; /* min followed by max */
2216
+ #cooling-cells = <2>;
22312217 power-domains = <&power RK3399_PD_GPU>;
22322218 power-off-delay-ms = <200>;
22332219 upthreshold = <40>;
....@@ -2311,29 +2297,6 @@
23112297 nocp_vio1_msch1: nocp-vio1-msch1@ffa8f800 {
23122298 compatible = "rockchip,rk3399-nocp";
23132299 reg = <0x0 0xffa8f800 0x0 0x400>;
2314
- };
2315
-
2316
- cci: cci@ffb00000 {
2317
- compatible = "arm,cci-500";
2318
- reg = <0x0 0xffb00000 0x0 0x10000>;
2319
- ranges = <0x0 0x0 0xffb00000 0xa0000>;
2320
- #address-cells = <1>;
2321
- #size-cells = <1>;
2322
- status = "disabled";
2323
-
2324
- cci_pmu: pmu@10000 {
2325
- compatible = "arm,cci-500-pmu,r0";
2326
- reg = <0x10000 0x80000>;
2327
- interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH 0>,
2328
- <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH 0>,
2329
- <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH 0>,
2330
- <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH 0>,
2331
- <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH 0>,
2332
- <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH 0>,
2333
- <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH 0>,
2334
- <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH 0>;
2335
- status = "disabled";
2336
- };
23372300 };
23382301
23392302 rockchip_system_monitor: rockchip-system-monitor {
....@@ -2428,6 +2391,11 @@
24282391 bias-disable;
24292392 };
24302393
2394
+ pcfg_pull_none_10ma: pcfg-pull-none-10ma {
2395
+ bias-disable;
2396
+ drive-strength = <10>;
2397
+ };
2398
+
24312399 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
24322400 bias-disable;
24332401 drive-strength = <12>;
....@@ -2453,19 +2421,14 @@
24532421 drive-strength = <2>;
24542422 };
24552423
2456
- pcfg_pull_none_10ma: pcfg-pull-none-10ma {
2457
- bias-disable;
2458
- drive-strength = <10>;
2424
+ pcfg_pull_up_8ma: pcfg-pull-up-8ma {
2425
+ bias-pull-up;
2426
+ drive-strength = <8>;
24592427 };
24602428
24612429 pcfg_pull_up_10ma: pcfg-pull-up-10ma {
24622430 bias-pull-up;
24632431 drive-strength = <10>;
2464
- };
2465
-
2466
- pcfg_pull_up_8ma: pcfg-pull-up-8ma {
2467
- bias-pull-up;
2468
- drive-strength = <8>;
24692432 };
24702433
24712434 pcfg_pull_up_18ma: pcfg-pull-up-18ma {
....@@ -2687,7 +2650,8 @@
26872650 };
26882651
26892652 i2s_8ch_mclk: i2s-8ch-mclk {
2690
- rockchip,pins = <4 RK_PA0 1 &pcfg_pull_none>;
2653
+ rockchip,pins =
2654
+ <4 RK_PA0 1 &pcfg_pull_none>;
26912655 };
26922656 };
26932657
....@@ -2945,7 +2909,7 @@
29452909 };
29462910
29472911 tsadc {
2948
- otp_gpio: otp-gpio {
2912
+ otp_pin: otp-pin {
29492913 rockchip,pins = <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
29502914 };
29512915