forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/arch/arm/boot/dts/aspeed-g5.dtsi
....@@ -1,5 +1,6 @@
11 // SPDX-License-Identifier: GPL-2.0+
22 #include <dt-bindings/clock/aspeed-clock.h>
3
+#include <dt-bindings/interrupt-controller/aspeed-scu-ic.h>
34
45 / {
56 model = "Aspeed BMC";
....@@ -53,7 +54,7 @@
5354 #size-cells = <1>;
5455 ranges;
5556
56
- fmc: flash-controller@1e620000 {
57
+ fmc: spi@1e620000 {
5758 reg = < 0x1e620000 0xc4
5859 0x20000000 0x10000000 >;
5960 #address-cells = <1>;
....@@ -65,21 +66,24 @@
6566 flash@0 {
6667 reg = < 0 >;
6768 compatible = "jedec,spi-nor";
69
+ spi-max-frequency = <50000000>;
6870 status = "disabled";
6971 };
7072 flash@1 {
7173 reg = < 1 >;
7274 compatible = "jedec,spi-nor";
75
+ spi-max-frequency = <50000000>;
7376 status = "disabled";
7477 };
7578 flash@2 {
7679 reg = < 2 >;
7780 compatible = "jedec,spi-nor";
81
+ spi-max-frequency = <50000000>;
7882 status = "disabled";
7983 };
8084 };
8185
82
- spi1: flash-controller@1e630000 {
86
+ spi1: spi@1e630000 {
8387 reg = < 0x1e630000 0xc4
8488 0x30000000 0x08000000 >;
8589 #address-cells = <1>;
....@@ -90,16 +94,18 @@
9094 flash@0 {
9195 reg = < 0 >;
9296 compatible = "jedec,spi-nor";
97
+ spi-max-frequency = <50000000>;
9398 status = "disabled";
9499 };
95100 flash@1 {
96101 reg = < 1 >;
97102 compatible = "jedec,spi-nor";
103
+ spi-max-frequency = <50000000>;
98104 status = "disabled";
99105 };
100106 };
101107
102
- spi2: flash-controller@1e631000 {
108
+ spi2: spi@1e631000 {
103109 reg = < 0x1e631000 0xc4
104110 0x38000000 0x08000000 >;
105111 #address-cells = <1>;
....@@ -110,11 +116,13 @@
110116 flash@0 {
111117 reg = < 0 >;
112118 compatible = "jedec,spi-nor";
119
+ spi-max-frequency = <50000000>;
113120 status = "disabled";
114121 };
115122 flash@1 {
116123 reg = < 1 >;
117124 compatible = "jedec,spi-nor";
125
+ spi-max-frequency = <50000000>;
118126 status = "disabled";
119127 };
120128 };
....@@ -188,6 +196,8 @@
188196 reg = <0x1e6a0000 0x300>;
189197 interrupts = <5>;
190198 clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>;
199
+ aspeed,vhub-downstream-ports = <5>;
200
+ aspeed,vhub-generic-endpoints = <15>;
191201 pinctrl-names = "default";
192202 pinctrl-0 = <&pinctrl_usb2ad_default>;
193203 status = "disabled";
....@@ -199,18 +209,40 @@
199209 #size-cells = <1>;
200210 ranges;
201211
212
+ edac: memory-controller@1e6e0000 {
213
+ compatible = "aspeed,ast2500-sdram-edac";
214
+ reg = <0x1e6e0000 0x174>;
215
+ interrupts = <0>;
216
+ status = "disabled";
217
+ };
218
+
202219 syscon: syscon@1e6e2000 {
203220 compatible = "aspeed,ast2500-scu", "syscon", "simple-mfd";
204221 reg = <0x1e6e2000 0x1a8>;
205222 #address-cells = <1>;
206
- #size-cells = <0>;
223
+ #size-cells = <1>;
224
+ ranges = <0 0x1e6e2000 0x1000>;
207225 #clock-cells = <1>;
208226 #reset-cells = <1>;
209227
210
- pinctrl: pinctrl {
211
- compatible = "aspeed,g5-pinctrl";
212
- aspeed,external-nodes = <&gfx &lhc>;
228
+ scu_ic: interrupt-controller@18 {
229
+ #interrupt-cells = <1>;
230
+ compatible = "aspeed,ast2500-scu-ic";
231
+ reg = <0x18 0x4>;
232
+ interrupts = <21>;
233
+ interrupt-controller;
234
+ };
213235
236
+ p2a: p2a-control@2c {
237
+ compatible = "aspeed,ast2500-p2a-ctrl";
238
+ reg = <0x2c 0x4>;
239
+ status = "disabled";
240
+ };
241
+
242
+ pinctrl: pinctrl@80 {
243
+ compatible = "aspeed,ast2500-pinctrl";
244
+ reg = <0x80 0x18>, <0xa0 0x10>;
245
+ aspeed,external-nodes = <&gfx>, <&lhc>;
214246 };
215247 };
216248
....@@ -225,6 +257,21 @@
225257 compatible = "aspeed,ast2500-gfx", "syscon";
226258 reg = <0x1e6e6000 0x1000>;
227259 reg-io-width = <4>;
260
+ clocks = <&syscon ASPEED_CLK_GATE_D1CLK>;
261
+ resets = <&syscon ASPEED_RESET_CRT1>;
262
+ status = "disabled";
263
+ interrupts = <0x19>;
264
+ };
265
+
266
+ xdma: xdma@1e6e7000 {
267
+ compatible = "aspeed,ast2500-xdma";
268
+ reg = <0x1e6e7000 0x100>;
269
+ clocks = <&syscon ASPEED_CLK_GATE_BCLK>;
270
+ resets = <&syscon ASPEED_RESET_XDMA>;
271
+ interrupts-extended = <&vic 6>, <&scu_ic ASPEED_AST2500_SCU_IC_PCIE_RESET_LO_TO_HI>;
272
+ aspeed,pcie-device = "bmc";
273
+ aspeed,scu = <&syscon>;
274
+ status = "disabled";
228275 };
229276
230277 adc: adc@1e6e9000 {
....@@ -236,20 +283,80 @@
236283 status = "disabled";
237284 };
238285
286
+ video: video@1e700000 {
287
+ compatible = "aspeed,ast2500-video-engine";
288
+ reg = <0x1e700000 0x1000>;
289
+ clocks = <&syscon ASPEED_CLK_GATE_VCLK>,
290
+ <&syscon ASPEED_CLK_GATE_ECLK>;
291
+ clock-names = "vclk", "eclk";
292
+ interrupts = <7>;
293
+ status = "disabled";
294
+ };
295
+
239296 sram: sram@1e720000 {
240297 compatible = "mmio-sram";
241298 reg = <0x1e720000 0x9000>; // 36K
299
+ };
300
+
301
+ sdmmc: sd-controller@1e740000 {
302
+ compatible = "aspeed,ast2500-sd-controller";
303
+ reg = <0x1e740000 0x100>;
304
+ #address-cells = <1>;
305
+ #size-cells = <1>;
306
+ ranges = <0 0x1e740000 0x10000>;
307
+ clocks = <&syscon ASPEED_CLK_GATE_SDCLK>;
308
+ status = "disabled";
309
+
310
+ sdhci0: sdhci@100 {
311
+ compatible = "aspeed,ast2500-sdhci";
312
+ reg = <0x100 0x100>;
313
+ interrupts = <26>;
314
+ sdhci,auto-cmd12;
315
+ clocks = <&syscon ASPEED_CLK_SDIO>;
316
+ status = "disabled";
317
+ };
318
+
319
+ sdhci1: sdhci@200 {
320
+ compatible = "aspeed,ast2500-sdhci";
321
+ reg = <0x200 0x100>;
322
+ interrupts = <26>;
323
+ sdhci,auto-cmd12;
324
+ clocks = <&syscon ASPEED_CLK_SDIO>;
325
+ status = "disabled";
326
+ };
242327 };
243328
244329 gpio: gpio@1e780000 {
245330 #gpio-cells = <2>;
246331 gpio-controller;
247332 compatible = "aspeed,ast2500-gpio";
248
- reg = <0x1e780000 0x1000>;
333
+ reg = <0x1e780000 0x200>;
249334 interrupts = <20>;
250335 gpio-ranges = <&pinctrl 0 0 232>;
251336 clocks = <&syscon ASPEED_CLK_APB>;
252337 interrupt-controller;
338
+ #interrupt-cells = <2>;
339
+ };
340
+
341
+ sgpio: sgpio@1e780200 {
342
+ #gpio-cells = <2>;
343
+ compatible = "aspeed,ast2500-sgpio";
344
+ gpio-controller;
345
+ interrupts = <40>;
346
+ reg = <0x1e780200 0x0100>;
347
+ clocks = <&syscon ASPEED_CLK_APB>;
348
+ interrupt-controller;
349
+ ngpios = <8>;
350
+ bus-frequency = <12000000>;
351
+ pinctrl-names = "default";
352
+ pinctrl-0 = <&pinctrl_sgpm_default>;
353
+ status = "disabled";
354
+ };
355
+
356
+ rtc: rtc@1e781000 {
357
+ compatible = "aspeed,ast2500-rtc";
358
+ reg = <0x1e781000 0x18>;
359
+ status = "disabled";
253360 };
254361
255362 timer: timer@1e782000 {
....@@ -330,8 +437,32 @@
330437 ranges = <0x0 0x1e789000 0x1000>;
331438
332439 lpc_bmc: lpc-bmc@0 {
333
- compatible = "aspeed,ast2500-lpc-bmc";
440
+ compatible = "aspeed,ast2500-lpc-bmc", "simple-mfd", "syscon";
334441 reg = <0x0 0x80>;
442
+ reg-io-width = <4>;
443
+
444
+ #address-cells = <1>;
445
+ #size-cells = <1>;
446
+ ranges = <0x0 0x0 0x80>;
447
+
448
+ kcs1: kcs@24 {
449
+ compatible = "aspeed,ast2500-kcs-bmc-v2";
450
+ reg = <0x24 0x1>, <0x30 0x1>, <0x3c 0x1>;
451
+ interrupts = <8>;
452
+ status = "disabled";
453
+ };
454
+ kcs2: kcs@28 {
455
+ compatible = "aspeed,ast2500-kcs-bmc-v2";
456
+ reg = <0x28 0x1>, <0x34 0x1>, <0x40 0x1>;
457
+ interrupts = <8>;
458
+ status = "disabled";
459
+ };
460
+ kcs3: kcs@2c {
461
+ compatible = "aspeed,ast2500-kcs-bmc-v2";
462
+ reg = <0x2c 0x1>, <0x38 0x1>, <0x44 0x1>;
463
+ interrupts = <8>;
464
+ status = "disabled";
465
+ };
335466 };
336467
337468 lpc_host: lpc-host@80 {
....@@ -343,23 +474,26 @@
343474 #size-cells = <1>;
344475 ranges = <0x0 0x80 0x1e0>;
345476
346
- lpc_ctrl: lpc-ctrl@0 {
347
- compatible = "aspeed,ast2500-lpc-ctrl";
348
- reg = <0x0 0x80>;
349
- clocks = <&syscon ASPEED_CLK_GATE_LCLK>;
350
- status = "disabled";
351
- };
352
-
353
- lpc_snoop: lpc-snoop@0 {
354
- compatible = "aspeed,ast2500-lpc-snoop";
355
- reg = <0x0 0x80>;
477
+ kcs4: kcs@94 {
478
+ compatible = "aspeed,ast2500-kcs-bmc-v2";
479
+ reg = <0x94 0x1>, <0x98 0x1>, <0x9c 0x1>;
356480 interrupts = <8>;
357481 status = "disabled";
358482 };
359483
360
- lhc: lhc@20 {
361
- compatible = "aspeed,ast2500-lhc";
362
- reg = <0x20 0x24 0x48 0x8>;
484
+ lpc_ctrl: lpc-ctrl@0 {
485
+ compatible = "aspeed,ast2500-lpc-ctrl";
486
+ reg = <0x0 0x10>;
487
+ clocks = <&syscon ASPEED_CLK_GATE_LCLK>;
488
+ status = "disabled";
489
+ };
490
+
491
+ lpc_snoop: lpc-snoop@10 {
492
+ compatible = "aspeed,ast2500-lpc-snoop";
493
+ reg = <0x10 0x8>;
494
+ interrupts = <8>;
495
+ clocks = <&syscon ASPEED_CLK_GATE_LCLK>;
496
+ status = "disabled";
363497 };
364498
365499 lpc_reset: reset-controller@18 {
....@@ -368,11 +502,16 @@
368502 #reset-cells = <1>;
369503 };
370504
505
+ lhc: lhc@20 {
506
+ compatible = "aspeed,ast2500-lhc";
507
+ reg = <0x20 0x24 0x48 0x8>;
508
+ };
509
+
510
+
371511 ibt: ibt@c0 {
372512 compatible = "aspeed,ast2500-ibt-bmc";
373513 reg = <0xc0 0x18>;
374514 interrupts = <8>;
375
- clocks = <&syscon ASPEED_CLK_GATE_LCLK>;
376515 status = "disabled";
377516 };
378517 };
....@@ -1283,6 +1422,11 @@
12831422 groups = "SDA2";
12841423 };
12851424
1425
+ pinctrl_sgpm_default: sgpm_default {
1426
+ function = "SGPM";
1427
+ groups = "SGPM";
1428
+ };
1429
+
12861430 pinctrl_sgps1_default: sgps1_default {
12871431 function = "SGPS1";
12881432 groups = "SGPS1";