hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/arch/arm64/boot/dts/rockchip/rk1808.dtsi
....@@ -21,7 +21,6 @@
2121 #size-cells = <2>;
2222
2323 aliases {
24
- ethernet0 = &gmac;
2524 i2c0 = &i2c0;
2625 i2c1 = &i2c1;
2726 i2c2 = &i2c2;
....@@ -241,19 +240,17 @@
241240 };
242241 };
243242
244
- firmware {
245
- optee: optee {
246
- compatible = "linaro,optee-tz";
247
- method = "smc";
248
- status = "disabled";
249
- };
250
- };
251
-
252243 gmac_clkin: external-gmac-clock {
253244 compatible = "fixed-clock";
254245 clock-frequency = <125000000>;
255246 clock-output-names = "gmac_clkin";
256247 #clock-cells = <0>;
248
+ };
249
+
250
+ mipi_csi2: mipi-csi2 {
251
+ compatible = "rockchip,rk1808-mipi-csi2";
252
+ rockchip,hw = <&mipi_csi2_hw>;
253
+ status = "disabled";
257254 };
258255
259256 psci {
....@@ -381,13 +378,15 @@
381378 phy-names = "usb2-phy", "usb3-phy";
382379 phy_type = "utmi_wide";
383380 snps,dis_enblslpm_quirk;
384
- snps,dis-u1u2-quirk;
381
+ snps,dis-u1-entry-quirk;
382
+ snps,dis-u2-entry-quirk;
385383 snps,dis-u2-freeclk-exists-quirk;
386384 snps,dis_u2_susphy_quirk;
387385 snps,dis_u3_susphy_quirk;
388386 snps,dis-del-phy-power-chg-quirk;
389387 snps,tx-ipgap-linecheck-dis-quirk;
390
- snps,xhci-trb-ent-quirk;
388
+ snps,parkmode-disable-hs-quirk;
389
+ snps,parkmode-disable-ss-quirk;
391390 status = "disabled";
392391 };
393392 };
....@@ -808,6 +807,7 @@
808807 pwm0: pwm@ff3d0000 {
809808 compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm";
810809 reg = <0x0 0xff3d0000 0x0 0x10>;
810
+ interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
811811 #pwm-cells = <3>;
812812 pinctrl-names = "active";
813813 pinctrl-0 = <&pwm0_pin>;
....@@ -819,6 +819,7 @@
819819 pwm1: pwm@ff3d0010 {
820820 compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm";
821821 reg = <0x0 0xff3d0010 0x0 0x10>;
822
+ interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
822823 #pwm-cells = <3>;
823824 pinctrl-names = "active";
824825 pinctrl-0 = <&pwm1_pin>;
....@@ -830,6 +831,7 @@
830831 pwm2: pwm@ff3d0020 {
831832 compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm";
832833 reg = <0x0 0xff3d0020 0x0 0x10>;
834
+ interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
833835 #pwm-cells = <3>;
834836 pinctrl-names = "active";
835837 pinctrl-0 = <&pwm2_pin>;
....@@ -841,6 +843,8 @@
841843 pwm3: pwm@ff3d0030 {
842844 compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm";
843845 reg = <0x0 0xff3d0030 0x0 0x10>;
846
+ interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
847
+ <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
844848 #pwm-cells = <3>;
845849 pinctrl-names = "active";
846850 pinctrl-0 = <&pwm3_pin>;
....@@ -852,6 +856,7 @@
852856 pwm4: pwm@ff3d8000 {
853857 compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm";
854858 reg = <0x0 0xff3d8000 0x0 0x10>;
859
+ interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
855860 #pwm-cells = <3>;
856861 pinctrl-names = "active";
857862 pinctrl-0 = <&pwm4_pin>;
....@@ -863,6 +868,7 @@
863868 pwm5: pwm@ff3d8010 {
864869 compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm";
865870 reg = <0x0 0xff3d8010 0x0 0x10>;
871
+ interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
866872 #pwm-cells = <3>;
867873 pinctrl-names = "active";
868874 pinctrl-0 = <&pwm5_pin>;
....@@ -874,6 +880,7 @@
874880 pwm6: pwm@ff3d8020 {
875881 compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm";
876882 reg = <0x0 0xff3d8020 0x0 0x10>;
883
+ interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
877884 #pwm-cells = <3>;
878885 pinctrl-names = "active";
879886 pinctrl-0 = <&pwm6_pin>;
....@@ -885,6 +892,8 @@
885892 pwm7: pwm@ff3d8030 {
886893 compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm";
887894 reg = <0x0 0xff3d8030 0x0 0x10>;
895
+ interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>,
896
+ <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
888897 #pwm-cells = <3>;
889898 pinctrl-names = "active";
890899 pinctrl-0 = <&pwm7_pin>;
....@@ -1213,6 +1222,7 @@
12131222 pwm8: pwm@ff5d0000 {
12141223 compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm";
12151224 reg = <0x0 0xff5d0000 0x0 0x10>;
1225
+ interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
12161226 #pwm-cells = <3>;
12171227 pinctrl-names = "active";
12181228 pinctrl-0 = <&pwm8_pin>;
....@@ -1224,6 +1234,7 @@
12241234 pwm9: pwm@fff5d0010 {
12251235 compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm";
12261236 reg = <0x0 0xff5d0010 0x0 0x10>;
1237
+ interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
12271238 #pwm-cells = <3>;
12281239 pinctrl-names = "active";
12291240 pinctrl-0 = <&pwm9_pin>;
....@@ -1235,6 +1246,7 @@
12351246 pwm10: pwm@ff5d0020 {
12361247 compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm";
12371248 reg = <0x0 0xff5d0020 0x0 0x10>;
1249
+ interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
12381250 #pwm-cells = <3>;
12391251 pinctrl-names = "active";
12401252 pinctrl-0 = <&pwm10_pin>;
....@@ -1246,6 +1258,8 @@
12461258 pwm11: pwm@ff5d0030 {
12471259 compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm";
12481260 reg = <0x0 0xff5d0030 0x0 0x10>;
1261
+ interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
1262
+ <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
12491263 #pwm-cells = <3>;
12501264 pinctrl-names = "active";
12511265 pinctrl-0 = <&pwm11_pin>;
....@@ -1335,7 +1349,7 @@
13351349 };
13361350
13371351 pdm: pdm@ff800000 {
1338
- compatible = "rockchip,rk1808-pdm";
1352
+ compatible = "rockchip,rk1808-pdm", "rockchip,pdm";
13391353 reg = <0x0 0xff800000 0x0 0x1000>;
13401354 clocks = <&cru SCLK_PDM>, <&cru HCLK_PDM>;
13411355 clock-names = "pdm_clk", "pdm_hclk";
....@@ -1533,8 +1547,8 @@
15331547 status = "disabled";
15341548 };
15351549
1536
- mipi_csi2: mipi-csi2@ffb10000 {
1537
- compatible = "rockchip,rk1808-mipi-csi2";
1550
+ mipi_csi2_hw: mipi-csi2-hw@ffb10000 {
1551
+ compatible = "rockchip,rk1808-mipi-csi2-hw";
15381552 reg = <0x0 0xffb10000 0x0 0x100>;
15391553 reg-names = "csihost_regs";
15401554 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,
....@@ -1701,7 +1715,7 @@
17011715 reg = <0x0 0xffc60000 0x0 0x4000>;
17021716 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
17031717 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
1704
- clock-names = "biu", "ciu", "ciu-drv", "ciu-sample";
1718
+ clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
17051719 max-frequency = <150000000>;
17061720 fifo-depth = <0x100>;
17071721 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1798,7 +1812,7 @@
17981812 reg = <0x0 0xffcf0000 0x0 0x4000>;
17991813 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
18001814 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
1801
- clock-names = "biu", "ciu", "ciu-drv", "ciu-sample";
1815
+ clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
18021816 max-frequency = <150000000>;
18031817 fifo-depth = <0x100>;
18041818 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
....@@ -1812,7 +1826,7 @@
18121826 reg = <0x0 0xffd00000 0x0 0x4000>;
18131827 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
18141828 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
1815
- clock-names = "biu", "ciu", "ciu-drv", "ciu-sample";
1829
+ clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
18161830 max-frequency = <150000000>;
18171831 fifo-depth = <0x100>;
18181832 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
....@@ -2254,15 +2268,15 @@
22542268 i2s1 {
22552269 i2s1_2ch_lrck: i2s1-2ch-lrck {
22562270 rockchip,pins =
2257
- <3 RK_PA0 1 &pcfg_pull_none_2ma>;
2271
+ <3 RK_PA0 1 &pcfg_pull_none_2ma_smt>;
22582272 };
22592273 i2s1_2ch_sclk: i2s1-2ch-sclk {
22602274 rockchip,pins =
2261
- <3 RK_PA1 1 &pcfg_pull_none_2ma>;
2275
+ <3 RK_PA1 1 &pcfg_pull_none_2ma_smt>;
22622276 };
22632277 i2s1_2ch_mclk: i2s1-2ch-mclk {
22642278 rockchip,pins =
2265
- <3 RK_PA2 1 &pcfg_pull_none_2ma>;
2279
+ <3 RK_PA2 1 &pcfg_pull_none_2ma_smt>;
22662280 };
22672281 i2s1_2ch_sdo: i2s1-2ch-sdo {
22682282 rockchip,pins =
....@@ -2289,11 +2303,11 @@
22892303 };
22902304 i2s0_8ch_sclkrx: i2s0-8ch-sclkrx {
22912305 rockchip,pins =
2292
- <3 RK_PB0 1 &pcfg_pull_none_2ma>;
2306
+ <3 RK_PB0 1 &pcfg_pull_none_2ma_smt>;
22932307 };
22942308 i2s0_8ch_lrckrx: i2s0-8ch-lrckrx {
22952309 rockchip,pins =
2296
- <3 RK_PB1 1 &pcfg_pull_none_2ma>;
2310
+ <3 RK_PB1 1 &pcfg_pull_none_2ma_smt>;
22972311 };
22982312 i2s0_8ch_sdo3: i2s0-8ch-sdo3 {
22992313 rockchip,pins =
....@@ -2309,15 +2323,15 @@
23092323 };
23102324 i2s0_8ch_mclk: i2s0-8ch-mclk {
23112325 rockchip,pins =
2312
- <3 RK_PB5 1 &pcfg_pull_none_2ma>;
2326
+ <3 RK_PB5 1 &pcfg_pull_none_2ma_smt>;
23132327 };
23142328 i2s0_8ch_lrcktx: i2s0-8ch-lrcktx {
23152329 rockchip,pins =
2316
- <3 RK_PB6 1 &pcfg_pull_none_2ma>;
2330
+ <3 RK_PB6 1 &pcfg_pull_none_2ma_smt>;
23172331 };
23182332 i2s0_8ch_sclktx: i2s0-8ch-sclktx {
23192333 rockchip,pins =
2320
- <3 RK_PB7 1 &pcfg_pull_none_2ma>;
2334
+ <3 RK_PB7 1 &pcfg_pull_none_2ma_smt>;
23212335 };
23222336 i2s0_8ch_sdo0: i2s0-8ch-sdo0 {
23232337 rockchip,pins =