forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
....@@ -81,7 +81,7 @@
8181 };
8282
8383 cpu0: cpu@0 {
84
- compatible = "arm,cortex-a53", "arm,armv8";
84
+ compatible = "arm,cortex-a53";
8585 device_type = "cpu";
8686 reg = <0x0 0x0>;
8787 enable-method = "psci";
....@@ -94,11 +94,12 @@
9494 };
9595
9696 cpu1: cpu@1 {
97
- compatible = "arm,cortex-a53", "arm,armv8";
97
+ compatible = "arm,cortex-a53";
9898 device_type = "cpu";
9999 reg = <0x0 0x1>;
100100 enable-method = "psci";
101101 next-level-cache = <&CLUSTER0_L2>;
102
+ clocks = <&stub_clock 0>;
102103 operating-points-v2 = <&cpu_opp_table>;
103104 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
104105 #cooling-cells = <2>; /* min followed by max */
....@@ -106,11 +107,12 @@
106107 };
107108
108109 cpu2: cpu@2 {
109
- compatible = "arm,cortex-a53", "arm,armv8";
110
+ compatible = "arm,cortex-a53";
110111 device_type = "cpu";
111112 reg = <0x0 0x2>;
112113 enable-method = "psci";
113114 next-level-cache = <&CLUSTER0_L2>;
115
+ clocks = <&stub_clock 0>;
114116 operating-points-v2 = <&cpu_opp_table>;
115117 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
116118 #cooling-cells = <2>; /* min followed by max */
....@@ -118,11 +120,12 @@
118120 };
119121
120122 cpu3: cpu@3 {
121
- compatible = "arm,cortex-a53", "arm,armv8";
123
+ compatible = "arm,cortex-a53";
122124 device_type = "cpu";
123125 reg = <0x0 0x3>;
124126 enable-method = "psci";
125127 next-level-cache = <&CLUSTER0_L2>;
128
+ clocks = <&stub_clock 0>;
126129 operating-points-v2 = <&cpu_opp_table>;
127130 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
128131 #cooling-cells = <2>; /* min followed by max */
....@@ -130,11 +133,12 @@
130133 };
131134
132135 cpu4: cpu@100 {
133
- compatible = "arm,cortex-a53", "arm,armv8";
136
+ compatible = "arm,cortex-a53";
134137 device_type = "cpu";
135138 reg = <0x0 0x100>;
136139 enable-method = "psci";
137140 next-level-cache = <&CLUSTER1_L2>;
141
+ clocks = <&stub_clock 0>;
138142 operating-points-v2 = <&cpu_opp_table>;
139143 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
140144 #cooling-cells = <2>; /* min followed by max */
....@@ -142,11 +146,12 @@
142146 };
143147
144148 cpu5: cpu@101 {
145
- compatible = "arm,cortex-a53", "arm,armv8";
149
+ compatible = "arm,cortex-a53";
146150 device_type = "cpu";
147151 reg = <0x0 0x101>;
148152 enable-method = "psci";
149153 next-level-cache = <&CLUSTER1_L2>;
154
+ clocks = <&stub_clock 0>;
150155 operating-points-v2 = <&cpu_opp_table>;
151156 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
152157 #cooling-cells = <2>; /* min followed by max */
....@@ -154,11 +159,12 @@
154159 };
155160
156161 cpu6: cpu@102 {
157
- compatible = "arm,cortex-a53", "arm,armv8";
162
+ compatible = "arm,cortex-a53";
158163 device_type = "cpu";
159164 reg = <0x0 0x102>;
160165 enable-method = "psci";
161166 next-level-cache = <&CLUSTER1_L2>;
167
+ clocks = <&stub_clock 0>;
162168 operating-points-v2 = <&cpu_opp_table>;
163169 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
164170 #cooling-cells = <2>; /* min followed by max */
....@@ -166,11 +172,12 @@
166172 };
167173
168174 cpu7: cpu@103 {
169
- compatible = "arm,cortex-a53", "arm,armv8";
175
+ compatible = "arm,cortex-a53";
170176 device_type = "cpu";
171177 reg = <0x0 0x103>;
172178 enable-method = "psci";
173179 next-level-cache = <&CLUSTER1_L2>;
180
+ clocks = <&stub_clock 0>;
174181 operating-points-v2 = <&cpu_opp_table>;
175182 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
176183 #cooling-cells = <2>; /* min followed by max */
....@@ -253,6 +260,7 @@
253260 compatible = "hisilicon,hi6220-aoctrl", "syscon";
254261 reg = <0x0 0xf7800000 0x0 0x2000>;
255262 #clock-cells = <1>;
263
+ #reset-cells = <1>;
256264 };
257265
258266 sys_ctrl: sys_ctrl@f7030000 {
....@@ -294,7 +302,7 @@
294302 mboxes = <&mailbox 1 0 11>;
295303 };
296304
297
- uart0: uart@f8015000 { /* console */
305
+ uart0: serial@f8015000 { /* console */
298306 compatible = "arm,pl011", "arm,primecell";
299307 reg = <0x0 0xf8015000 0x0 0x1000>;
300308 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
....@@ -303,7 +311,7 @@
303311 clock-names = "uartclk", "apb_pclk";
304312 };
305313
306
- uart1: uart@f7111000 {
314
+ uart1: serial@f7111000 {
307315 compatible = "arm,pl011", "arm,primecell";
308316 reg = <0x0 0xf7111000 0x0 0x1000>;
309317 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
....@@ -312,10 +320,12 @@
312320 clock-names = "uartclk", "apb_pclk";
313321 pinctrl-names = "default";
314322 pinctrl-0 = <&uart1_pmx_func &uart1_cfg_func1 &uart1_cfg_func2>;
323
+ dmas = <&dma0 8 &dma0 9>;
324
+ dma-names = "rx", "tx";
315325 status = "disabled";
316326 };
317327
318
- uart2: uart@f7112000 {
328
+ uart2: serial@f7112000 {
319329 compatible = "arm,pl011", "arm,primecell";
320330 reg = <0x0 0xf7112000 0x0 0x1000>;
321331 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
....@@ -327,7 +337,7 @@
327337 status = "disabled";
328338 };
329339
330
- uart3: uart@f7113000 {
340
+ uart3: serial@f7113000 {
331341 compatible = "arm,pl011", "arm,primecell";
332342 reg = <0x0 0xf7113000 0x0 0x1000>;
333343 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
....@@ -339,7 +349,7 @@
339349 status = "disabled";
340350 };
341351
342
- uart4: uart@f7114000 {
352
+ uart4: serial@f7114000 {
343353 compatible = "arm,pl011", "arm,primecell";
344354 reg = <0x0 0xf7114000 0x0 0x1000>;
345355 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
....@@ -361,7 +371,7 @@
361371 clocks = <&sys_ctrl HI6220_EDMAC_ACLK>;
362372 dma-no-cci;
363373 dma-type = "hi6220_dma";
364
- status = "ok";
374
+ status = "okay";
365375 };
366376
367377 dual_timer0: timer@f8008000 {
....@@ -833,8 +843,9 @@
833843 compatible = "arm,sp805", "arm,primecell";
834844 reg = <0x0 0xf8005000 0x0 0x1000>;
835845 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
836
- clocks = <&ao_ctrl HI6220_WDT0_PCLK>;
837
- clock-names = "apb_pclk";
846
+ clocks = <&ao_ctrl HI6220_WDT0_PCLK>,
847
+ <&ao_ctrl HI6220_WDT0_PCLK>;
848
+ clock-names = "wdog_clk", "apb_pclk";
838849 };
839850
840851 tsensor: tsensor@0,f7030700 {
....@@ -886,7 +897,14 @@
886897 cooling-maps {
887898 map0 {
888899 trip = <&target>;
889
- cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
900
+ cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
901
+ <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
902
+ <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
903
+ <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
904
+ <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
905
+ <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
906
+ <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
907
+ <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
890908 };
891909 };
892910 };
....@@ -1005,6 +1023,43 @@
10051023 clock-names = "apb_pclk";
10061024 cpu = <&cpu7>;
10071025 };
1026
+
1027
+ mali: gpu@f4080000 {
1028
+ compatible = "hisilicon,hi6220-mali", "arm,mali-450";
1029
+ reg = <0x0 0xf4080000 0x0 0x00040000>;
1030
+ interrupt-parent = <&gic>;
1031
+ interrupts = <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
1032
+ <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
1033
+ <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
1034
+ <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
1035
+ <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
1036
+ <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
1037
+ <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
1038
+ <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
1039
+ <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
1040
+ <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>,
1041
+ <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>;
1042
+
1043
+ interrupt-names = "gp",
1044
+ "gpmmu",
1045
+ "pp",
1046
+ "pp0",
1047
+ "ppmmu0",
1048
+ "pp1",
1049
+ "ppmmu1",
1050
+ "pp2",
1051
+ "ppmmu2",
1052
+ "pp3",
1053
+ "ppmmu3";
1054
+ clocks = <&media_ctrl HI6220_G3D_CLK>,
1055
+ <&media_ctrl HI6220_G3D_PCLK>;
1056
+ clock-names = "core", "bus";
1057
+ assigned-clocks = <&media_ctrl HI6220_G3D_CLK>,
1058
+ <&media_ctrl HI6220_G3D_PCLK>;
1059
+ assigned-clock-rates = <500000000>, <144000000>;
1060
+ reset-names = "ao_g3d", "media_g3d";
1061
+ resets = <&ao_ctrl AO_G3D>, <&media_ctrl MEDIA_G3D>;
1062
+ };
10081063 };
10091064 };
10101065