hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/rk312x.dtsi
....@@ -57,9 +57,6 @@
5757
5858 aliases {
5959 ethernet0 = &gmac;
60
- serial0 = &uart0;
61
- serial1 = &uart1;
62
- serial2 = &uart2;
6360 i2c0 = &i2c0;
6461 i2c1 = &i2c1;
6562 i2c2 = &i2c2;
....@@ -67,6 +64,10 @@
6764 mmc0 = &sdmmc;
6865 mmc1 = &sdio;
6966 mmc2 = &emmc;
67
+ serial0 = &uart0;
68
+ serial1 = &uart1;
69
+ serial2 = &uart2;
70
+ spi0 = &spi0;
7071 };
7172
7273 cpus {
....@@ -113,8 +114,8 @@
113114 clocks = <&cru PLL_APLL>;
114115 rockchip,leakage-voltage-sel = <
115116 1 13 0
116
- 14 18 1
117
- 18 254 2
117
+ 14 49 1
118
+ 50 254 2
118119 >;
119120 nvmem-cells = <&cpu_leakage>;
120121 nvmem-cell-names = "cpu_leakage";
....@@ -233,7 +234,7 @@
233234 system-status-freq = <
234235 /*system status freq(KHz)*/
235236 SYS_STATUS_NORMAL 456000
236
- SYS_STATUS_SUSPEND 456000
237
+ SYS_STATUS_SUSPEND 300000
237238 SYS_STATUS_REBOOT 456000
238239 >;
239240 auto-min-freq = <456000>;
....@@ -247,6 +248,7 @@
247248 opp-200000000 {
248249 opp-hz = /bits/ 64 <200000000>;
249250 opp-microvolt = <1025000>;
251
+ status = "disabled";
250252 };
251253 opp-300000000 {
252254 opp-hz = /bits/ 64 <300000000>;
....@@ -615,7 +617,6 @@
615617 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>;
616618 clock-names = "aclk_rga", "hclk_rga", "sclk_rga";
617619 power-domains = <&power RK3128_PD_VIO>;
618
- dma-coherent;
619620 status = "disabled";
620621 };
621622
....@@ -670,12 +671,12 @@
670671 compatible = "rockchip,rk3128-mipi-dsi";
671672 reg = <0x10110000 0x4000>;
672673 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
673
- clocks = <&cru PCLK_MIPI>, <&cru HCLK_VIO_H2P>, <&video_phy>;
674
- clock-names = "pclk", "h2p", "hs_clk";
674
+ clocks = <&cru PCLK_MIPI>, <&cru HCLK_VIO_H2P>;
675
+ clock-names = "pclk", "hclk";
675676 resets = <&cru SRST_VIO_MIPI_DSI>;
676677 reset-names = "apb";
677678 phys = <&video_phy>;
678
- phy-names = "mipi_dphy";
679
+ phy-names = "dphy";
679680 power-domains = <&power RK3128_PD_VIO>;
680681 rockchip,grf = <&grf>;
681682 #address-cells = <1>;
....@@ -831,12 +832,11 @@
831832 #size-cells = <0>;
832833 pinctrl-names = "default";
833834 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
834
- clock-freq-min-max = <400000 50000000>;
835
- clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
836
- clock-names = "biu", "ciu";
835
+ max-frequency = <50000000>;
836
+ clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
837
+ clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
837838 dmas = <&pdma 10>;
838839 dma-names = "rx-tx";
839
- num-slots = <1>;
840840 fifo-depth = <0x100>;
841841 bus-width = <4>;
842842 status = "disabled";
....@@ -996,14 +996,15 @@
996996 };
997997
998998 video_phy: video-phy@20038000 {
999
- compatible = "rockchip,rk3128-video-phy";
999
+ compatible = "rockchip,rk3128-dsi-dphy", "rockchip,rk3128-video-phy";
10001000 reg = <0x20038000 0x4000>, <0x10110000 0x4000>;
1001
+ reg-names = "phy", "host";
10011002 clocks = <&cru SCLK_MIPI_24M>, <&cru PCLK_MIPIPHY>,
10021003 <&cru PCLK_MIPI>;
1003
- clock-names = "ref", "pclk_phy", "pclk_host";
1004
+ clock-names = "ref", "pclk", "pclk_host";
10041005 #clock-cells = <0>;
10051006 resets = <&cru SRST_MIPIPHY_P>;
1006
- reset-names = "rst";
1007
+ reset-names = "apb";
10071008 power-domains = <&power RK3128_PD_VIO>;
10081009 #phy-cells = <0>;
10091010 status = "disabled";
....@@ -1180,7 +1181,7 @@
11801181 reg = <0x20074000 0x1000>;
11811182 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
11821183 pinctrl-names = "default";
1183
- pinctrl-0 = <&spi0_tx &spi0_rx &spi0_clk &spi0_cs0 &spi0_cs1>;
1184
+ pinctrl-0 = <&spi0m0_tx &spi0m0_rx &spi0m0_clk &spi0m0_cs0 &spi0m0_cs1>;
11841185 clock-names = "spiclk", "apb_pclk";
11851186 dmas = <&pdma 8>, <&pdma 9>;
11861187 dma-names = "tx", "rx";
....@@ -1290,10 +1291,6 @@
12901291
12911292 pcfg_pull_default: pcfg_pull_default {
12921293 bias-pull-pin-default;
1293
- };
1294
-
1295
- pcfg_pull_up: pcfg-pull-up {
1296
- bias-pull-up;
12971294 };
12981295
12991296 pcfg_output_high: pcfg-output-high {
....@@ -1420,8 +1417,8 @@
14201417
14211418 uart0 {
14221419 uart0_xfer: uart0-xfer {
1423
- rockchip,pins = <2 RK_PD2 2 &pcfg_pull_up>,
1424
- <2 RK_PD3 2 &pcfg_pull_up>;
1420
+ rockchip,pins = <2 RK_PD2 2 &pcfg_pull_default>,
1421
+ <2 RK_PD3 2 &pcfg_pull_none>;
14251422 };
14261423
14271424 uart0_cts: uart0-cts {
....@@ -1435,8 +1432,8 @@
14351432
14361433 uart1 {
14371434 uart1_xfer: uart1-xfer {
1438
- rockchip,pins = <1 RK_PB1 2 &pcfg_pull_up>,
1439
- <1 RK_PB2 2 &pcfg_pull_up>;
1435
+ rockchip,pins = <1 RK_PB1 2 &pcfg_pull_default>,
1436
+ <1 RK_PB2 2 &pcfg_pull_default>;
14401437 };
14411438
14421439 uart1_cts: uart1-cts {
....@@ -1450,8 +1447,8 @@
14501447
14511448 uart2 {
14521449 uart2_xfer: uart2-xfer {
1453
- rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>,
1454
- <1 RK_PC3 2 &pcfg_pull_up>;
1450
+ rockchip,pins = <1 RK_PC2 2 &pcfg_pull_default>,
1451
+ <1 RK_PC3 2 &pcfg_pull_none>;
14551452 };
14561453
14571454 uart2_cts: uart2-cts {
....@@ -1466,6 +1463,10 @@
14661463 sdmmc {
14671464 sdmmc_clk: sdmmc-clk {
14681465 rockchip,pins = <1 RK_PC0 1 &pcfg_pull_none>;
1466
+ };
1467
+
1468
+ sdmmc_det: sdmmc-det {
1469
+ rockchip,pins = <1 RK_PC1 1 &pcfg_pull_none>;
14691470 };
14701471
14711472 sdmmc_cmd: sdmmc-cmd {
....@@ -1607,60 +1608,60 @@
16071608 };
16081609 };
16091610
1610
- spi {
1611
- spi0_clk: spi0-clk {
1611
+ spi0 {
1612
+ spi0m0_clk: spi0m0-clk {
16121613 rockchip,pins = <1 RK_PB0 1 &pcfg_pull_default>;
16131614 };
16141615
1615
- spi0_cs0: spi0-cs0 {
1616
+ spi0m0_cs0: spi0m0-cs0 {
16161617 rockchip,pins = <1 RK_PB3 1 &pcfg_pull_default>;
16171618 };
16181619
1619
- spi0_tx: spi0-tx {
1620
+ spi0m0_tx: spi0m0-tx {
16201621 rockchip,pins = <1 RK_PB1 1 &pcfg_pull_default>;
16211622 };
16221623
1623
- spi0_rx: spi0-rx {
1624
+ spi0m0_rx: spi0m0-rx {
16241625 rockchip,pins = <1 RK_PB2 1 &pcfg_pull_default>;
16251626 };
16261627
1627
- spi0_cs1: spi0-cs1 {
1628
+ spi0m0_cs1: spi0m0-cs1 {
16281629 rockchip,pins = <1 RK_PB4 1 &pcfg_pull_default>;
16291630 };
16301631
1631
- spi1_clk: spi1-clk {
1632
+ spi0m1_clk: spi0m1-clk {
16321633 rockchip,pins = <2 RK_PA0 2 &pcfg_pull_default>;
16331634 };
16341635
1635
- spi1_cs0: spi1-cs0 {
1636
+ spi0m1_cs0: spi0m1-cs0 {
16361637 rockchip,pins = <1 RK_PD6 3 &pcfg_pull_default>;
16371638 };
16381639
1639
- spi1_tx: spi1-tx {
1640
+ spi0m1_tx: spi0m1-tx {
16401641 rockchip,pins = <1 RK_PD5 3 &pcfg_pull_default>;
16411642 };
16421643
1643
- spi1_rx: spi1-rx {
1644
+ spi0m1_rx: spi0m1-rx {
16441645 rockchip,pins = <1 RK_PD4 3 &pcfg_pull_default>;
16451646 };
16461647
1647
- spi1_cs1: spi1-cs1 {
1648
+ spi0m1_cs1: spi0m1-cs1 {
16481649 rockchip,pins = <1 RK_PD7 3 &pcfg_pull_default>;
16491650 };
16501651
1651
- spi2_clk: spi2-clk {
1652
+ spi0m2_clk: spi0m2-clk {
16521653 rockchip,pins = <0 RK_PB1 2 &pcfg_pull_default>;
16531654 };
16541655
1655
- spi2_cs0: spi2-cs0 {
1656
+ spi0m2_cs0: spi0m2-cs0 {
16561657 rockchip,pins = <0 RK_PB6 2 &pcfg_pull_default>;
16571658 };
16581659
1659
- spi2_tx: spi2-tx {
1660
+ spi0m2_tx: spi0m2-tx {
16601661 rockchip,pins = <0 RK_PB3 2 &pcfg_pull_default>;
16611662 };
16621663
1663
- spi2_rx: spi2-rx {
1664
+ spi0m2_rx: spi0m2-rx {
16641665 rockchip,pins = <0 RK_PB5 2 &pcfg_pull_default>;
16651666 };
16661667 };