forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
....@@ -56,7 +56,7 @@
5656 };
5757
5858 cpu0: cpu@0 {
59
- compatible = "arm,cortex-a53", "arm,armv8";
59
+ compatible = "arm,cortex-a53";
6060 device_type = "cpu";
6161 reg = <0x0 0x0>;
6262 enable-method = "psci";
....@@ -70,7 +70,7 @@
7070 };
7171
7272 cpu1: cpu@1 {
73
- compatible = "arm,cortex-a53", "arm,armv8";
73
+ compatible = "arm,cortex-a53";
7474 device_type = "cpu";
7575 reg = <0x0 0x1>;
7676 enable-method = "psci";
....@@ -79,10 +79,11 @@
7979 capacity-dmips-mhz = <592>;
8080 clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER0>;
8181 operating-points-v2 = <&cluster0_opp>;
82
+ #cooling-cells = <2>;
8283 };
8384
8485 cpu2: cpu@2 {
85
- compatible = "arm,cortex-a53", "arm,armv8";
86
+ compatible = "arm,cortex-a53";
8687 device_type = "cpu";
8788 reg = <0x0 0x2>;
8889 enable-method = "psci";
....@@ -91,10 +92,11 @@
9192 capacity-dmips-mhz = <592>;
9293 clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER0>;
9394 operating-points-v2 = <&cluster0_opp>;
95
+ #cooling-cells = <2>;
9496 };
9597
9698 cpu3: cpu@3 {
97
- compatible = "arm,cortex-a53", "arm,armv8";
99
+ compatible = "arm,cortex-a53";
98100 device_type = "cpu";
99101 reg = <0x0 0x3>;
100102 enable-method = "psci";
....@@ -103,10 +105,11 @@
103105 capacity-dmips-mhz = <592>;
104106 clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER0>;
105107 operating-points-v2 = <&cluster0_opp>;
108
+ #cooling-cells = <2>;
106109 };
107110
108111 cpu4: cpu@100 {
109
- compatible = "arm,cortex-a73", "arm,armv8";
112
+ compatible = "arm,cortex-a73";
110113 device_type = "cpu";
111114 reg = <0x0 0x100>;
112115 enable-method = "psci";
....@@ -120,7 +123,7 @@
120123 };
121124
122125 cpu5: cpu@101 {
123
- compatible = "arm,cortex-a73", "arm,armv8";
126
+ compatible = "arm,cortex-a73";
124127 device_type = "cpu";
125128 reg = <0x0 0x101>;
126129 enable-method = "psci";
....@@ -129,10 +132,11 @@
129132 capacity-dmips-mhz = <1024>;
130133 clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER1>;
131134 operating-points-v2 = <&cluster1_opp>;
135
+ #cooling-cells = <2>;
132136 };
133137
134138 cpu6: cpu@102 {
135
- compatible = "arm,cortex-a73", "arm,armv8";
139
+ compatible = "arm,cortex-a73";
136140 device_type = "cpu";
137141 reg = <0x0 0x102>;
138142 enable-method = "psci";
....@@ -141,10 +145,11 @@
141145 capacity-dmips-mhz = <1024>;
142146 clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER1>;
143147 operating-points-v2 = <&cluster1_opp>;
148
+ #cooling-cells = <2>;
144149 };
145150
146151 cpu7: cpu@103 {
147
- compatible = "arm,cortex-a73", "arm,armv8";
152
+ compatible = "arm,cortex-a73";
148153 device_type = "cpu";
149154 reg = <0x0 0x103>;
150155 enable-method = "psci";
....@@ -153,6 +158,7 @@
153158 capacity-dmips-mhz = <1024>;
154159 clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER1>;
155160 operating-points-v2 = <&cluster1_opp>;
161
+ #cooling-cells = <2>;
156162 };
157163
158164 idle-states {
....@@ -425,7 +431,7 @@
425431 resets = <&iomcu_rst 0x20 4>;
426432 pinctrl-names = "default";
427433 pinctrl-0 = <&i2c1_pmx_func &i2c1_cfg_func>;
428
- status = "disabled";
434
+ status = "ok";
429435 };
430436
431437 i2c3: i2c@fdf0c000 {
....@@ -472,6 +478,8 @@
472478 compatible = "arm,pl011", "arm,primecell";
473479 reg = <0x0 0xfdf00000 0x0 0x1000>;
474480 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
481
+ dma-names = "rx", "tx";
482
+ dmas = <&dma0 2 &dma0 3>;
475483 clocks = <&crg_ctrl HI3660_CLK_GATE_UART1>,
476484 <&crg_ctrl HI3660_CLK_GATE_UART1>;
477485 clock-names = "uartclk", "apb_pclk";
....@@ -484,6 +492,8 @@
484492 compatible = "arm,pl011", "arm,primecell";
485493 reg = <0x0 0xfdf03000 0x0 0x1000>;
486494 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
495
+ dma-names = "rx", "tx";
496
+ dmas = <&dma0 4 &dma0 5>;
487497 clocks = <&crg_ctrl HI3660_CLK_GATE_UART2>,
488498 <&crg_ctrl HI3660_PCLK>;
489499 clock-names = "uartclk", "apb_pclk";
....@@ -508,6 +518,8 @@
508518 compatible = "arm,pl011", "arm,primecell";
509519 reg = <0x0 0xfdf01000 0x0 0x1000>;
510520 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
521
+ dma-names = "rx", "tx";
522
+ dmas = <&dma0 6 &dma0 7>;
511523 clocks = <&crg_ctrl HI3660_CLK_GATE_UART4>,
512524 <&crg_ctrl HI3660_CLK_GATE_UART4>;
513525 clock-names = "uartclk", "apb_pclk";
....@@ -520,6 +532,8 @@
520532 compatible = "arm,pl011", "arm,primecell";
521533 reg = <0x0 0xfdf05000 0x0 0x1000>;
522534 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
535
+ dma-names = "rx", "tx";
536
+ dmas = <&dma0 8 &dma0 9>;
523537 clocks = <&crg_ctrl HI3660_CLK_GATE_UART5>,
524538 <&crg_ctrl HI3660_CLK_GATE_UART5>;
525539 clock-names = "uartclk", "apb_pclk";
....@@ -546,11 +560,21 @@
546560 #dma-cells = <1>;
547561 dma-channels = <16>;
548562 dma-requests = <32>;
549
- dma-min-chan = <1>;
563
+ dma-channel-mask = <0xfffe>;
550564 interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
551565 clocks = <&crg_ctrl HI3660_CLK_GATE_DMAC>;
552566 dma-no-cci;
553567 dma-type = "hi3660_dma";
568
+ };
569
+
570
+ asp_dmac: dma-controller@e804b000 {
571
+ compatible = "hisilicon,hisi-pcm-asp-dma-1.0";
572
+ reg = <0x0 0xe804b000 0x0 0x1000>;
573
+ #dma-cells = <1>;
574
+ dma-channels = <16>;
575
+ dma-requests = <32>;
576
+ interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
577
+ interrupt-names = "asp_dma_irq";
554578 };
555579
556580 rtc0: rtc@fff04000 {
....@@ -950,7 +974,7 @@
950974 clocks = <&crg_ctrl HI3660_CLK_GATE_SPI2>;
951975 clock-names = "apb_pclk";
952976 pinctrl-names = "default";
953
- pinctrl-0 = <&spi2_pmx_func>;
977
+ pinctrl-0 = <&spi2_pmx_func &spi2_cfg_func>;
954978 num-cs = <1>;
955979 cs-gpios = <&gpio27 2 0>;
956980 status = "disabled";
....@@ -965,7 +989,7 @@
965989 clocks = <&crg_ctrl HI3660_CLK_GATE_SPI3>;
966990 clock-names = "apb_pclk";
967991 pinctrl-names = "default";
968
- pinctrl-0 = <&spi3_pmx_func>;
992
+ pinctrl-0 = <&spi3_pmx_func &spi3_cfg_func>;
969993 num-cs = <1>;
970994 cs-gpios = <&gpio18 5 0>;
971995 status = "disabled";
....@@ -1065,16 +1089,18 @@
10651089 compatible = "arm,sp805", "arm,primecell";
10661090 reg = <0x0 0xe8a06000 0x0 0x1000>;
10671091 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
1068
- clocks = <&crg_ctrl HI3660_OSC32K>;
1069
- clock-names = "apb_pclk";
1092
+ clocks = <&crg_ctrl HI3660_OSC32K>,
1093
+ <&crg_ctrl HI3660_OSC32K>;
1094
+ clock-names = "wdog_clk", "apb_pclk";
10701095 };
10711096
10721097 watchdog1: watchdog@e8a07000 {
10731098 compatible = "arm,sp805", "arm,primecell";
10741099 reg = <0x0 0xe8a07000 0x0 0x1000>;
10751100 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
1076
- clocks = <&crg_ctrl HI3660_OSC32K>;
1077
- clock-names = "apb_pclk";
1101
+ clocks = <&crg_ctrl HI3660_OSC32K>,
1102
+ <&crg_ctrl HI3660_OSC32K>;
1103
+ clock-names = "wdog_clk", "apb_pclk";
10781104 };
10791105
10801106 tsensor: tsensor@fff30000 {
....@@ -1112,15 +1138,57 @@
11121138 map0 {
11131139 trip = <&target>;
11141140 contribution = <1024>;
1115
- cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
1141
+ cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1142
+ <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1143
+ <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1144
+ <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
11161145 };
11171146 map1 {
11181147 trip = <&target>;
11191148 contribution = <512>;
1120
- cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
1149
+ cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1150
+ <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1151
+ <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1152
+ <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
11211153 };
11221154 };
11231155 };
11241156 };
1157
+
1158
+ usb3_otg_bc: usb3_otg_bc@ff200000 {
1159
+ compatible = "syscon", "simple-mfd";
1160
+ reg = <0x0 0xff200000 0x0 0x1000>;
1161
+
1162
+ usb_phy: usb-phy {
1163
+ compatible = "hisilicon,hi3660-usb-phy";
1164
+ #phy-cells = <0>;
1165
+ hisilicon,pericrg-syscon = <&crg_ctrl>;
1166
+ hisilicon,pctrl-syscon = <&pctrl>;
1167
+ hisilicon,eye-diagram-param = <0x22466e4>;
1168
+ };
1169
+ };
1170
+
1171
+ dwc3: dwc3@ff100000 {
1172
+ compatible = "snps,dwc3";
1173
+ reg = <0x0 0xff100000 0x0 0x100000>;
1174
+
1175
+ clocks = <&crg_ctrl HI3660_CLK_ABB_USB>,
1176
+ <&crg_ctrl HI3660_ACLK_GATE_USB3OTG>;
1177
+ clock-names = "ref", "bus_early";
1178
+
1179
+ assigned-clocks = <&crg_ctrl HI3660_ACLK_GATE_USB3OTG>;
1180
+ assigned-clock-rates = <229000000>;
1181
+
1182
+ resets = <&crg_rst 0x90 8>,
1183
+ <&crg_rst 0x90 7>,
1184
+ <&crg_rst 0x90 6>,
1185
+ <&crg_rst 0x90 5>;
1186
+
1187
+ interrupts = <0 159 4>, <0 161 4>;
1188
+ phys = <&usb_phy>;
1189
+ phy-names = "usb3-phy";
1190
+ };
11251191 };
11261192 };
1193
+
1194
+#include "hi3660-coresight.dtsi"