forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/arch/arm/boot/dts/bcm5301x.dtsi
....@@ -13,12 +13,13 @@
1313 #include <dt-bindings/input/input.h>
1414 #include <dt-bindings/interrupt-controller/irq.h>
1515 #include <dt-bindings/interrupt-controller/arm-gic.h>
16
-#include "skeleton.dtsi"
1716
1817 / {
18
+ #address-cells = <1>;
19
+ #size-cells = <1>;
1920 interrupt-parent = <&gic>;
2021
21
- chipcommonA {
22
+ chipcommonA@18000000 {
2223 compatible = "simple-bus";
2324 ranges = <0x00000000 0x18000000 0x00001000>;
2425 #address-cells = <1>;
....@@ -37,11 +38,13 @@
3738 reg = <0x0400 0x100>;
3839 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
3940 clocks = <&iprocslow>;
41
+ pinctrl-names = "default";
42
+ pinctrl-0 = <&pinmux_uart1>;
4043 status = "disabled";
4144 };
4245 };
4346
44
- mpcore {
47
+ mpcore@19000000 {
4548 compatible = "simple-bus";
4649 ranges = <0x00000000 0x19000000 0x00023000>;
4750 #address-cells = <1>;
....@@ -145,7 +148,7 @@
145148 };
146149 };
147150
148
- usb2_phy: usb2-phy {
151
+ usb2_phy: usb2-phy@1800c000 {
149152 compatible = "brcm,ns-usb2-phy";
150153 reg = <0x1800c000 0x1000>;
151154 reg-names = "dmu";
....@@ -251,6 +254,10 @@
251254 reg = <0x00013000 0x1000>;
252255 };
253256
257
+ pcie2: pcie@14000 {
258
+ reg = <0x00014000 0x1000>;
259
+ };
260
+
254261 usb2: usb2@21000 {
255262 reg = <0x00021000 0x1000>;
256263
....@@ -260,7 +267,7 @@
260267
261268 interrupt-parent = <&gic>;
262269
263
- ehci: ehci@21000 {
270
+ ehci: usb@21000 {
264271 #usb-cells = <0>;
265272
266273 compatible = "generic-ehci";
....@@ -282,7 +289,7 @@
282289 };
283290 };
284291
285
- ohci: ohci@22000 {
292
+ ohci: usb@22000 {
286293 #usb-cells = <0>;
287294
288295 compatible = "generic-ohci";
....@@ -349,6 +356,14 @@
349356 };
350357 };
351358
359
+ pwm: pwm@18002000 {
360
+ compatible = "brcm,iproc-pwm";
361
+ reg = <0x18002000 0x28>;
362
+ clocks = <&osc>;
363
+ #pwm-cells = <3>;
364
+ status = "disabled";
365
+ };
366
+
352367 mdio: mdio@18003000 {
353368 compatible = "brcm,iproc-mdio";
354369 reg = <0x18003000 0x8>;
....@@ -356,7 +371,7 @@
356371 #address-cells = <1>;
357372 };
358373
359
- mdio-bus-mux {
374
+ mdio-bus-mux@18003000 {
360375 compatible = "mdio-mux-mmioreg";
361376 mdio-parent-bus = <&mdio>;
362377 #address-cells = <1>;
....@@ -383,6 +398,15 @@
383398 reg = <0x18105000 0x1000>;
384399 };
385400
401
+ uart2: serial@18008000 {
402
+ compatible = "ns16550a";
403
+ reg = <0x18008000 0x20>;
404
+ clocks = <&iprocslow>;
405
+ interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
406
+ reg-shift = <2>;
407
+ status = "disabled";
408
+ };
409
+
386410 i2c0: i2c@18009000 {
387411 compatible = "brcm,iproc-i2c";
388412 reg = <0x18009000 0x50>;
....@@ -391,6 +415,48 @@
391415 #size-cells = <0>;
392416 clock-frequency = <100000>;
393417 status = "disabled";
418
+ };
419
+
420
+ dmu@1800c000 {
421
+ compatible = "simple-bus";
422
+ ranges = <0 0x1800c000 0x1000>;
423
+ #address-cells = <1>;
424
+ #size-cells = <1>;
425
+
426
+ cru@100 {
427
+ compatible = "simple-bus";
428
+ reg = <0x100 0x1a4>;
429
+ ranges;
430
+ #address-cells = <1>;
431
+ #size-cells = <1>;
432
+
433
+ pin-controller@1c0 {
434
+ compatible = "brcm,bcm4708-pinmux";
435
+ reg = <0x1c0 0x24>;
436
+ reg-names = "cru_gpio_control";
437
+
438
+ spi-pins {
439
+ groups = "spi_grp";
440
+ function = "spi";
441
+ };
442
+
443
+ pinmux_i2c: i2c {
444
+ groups = "i2c_grp";
445
+ function = "i2c";
446
+ };
447
+
448
+ pinmux_pwm: pwm {
449
+ groups = "pwm0_grp", "pwm1_grp",
450
+ "pwm2_grp", "pwm3_grp";
451
+ function = "pwm";
452
+ };
453
+
454
+ pinmux_uart1: uart1 {
455
+ groups = "uart1_grp";
456
+ function = "uart1";
457
+ };
458
+ };
459
+ };
394460 };
395461
396462 lcpll0: lcpll0@1800c100 {
....@@ -421,8 +487,6 @@
421487 srab: srab@18007000 {
422488 compatible = "brcm,bcm5301x-srab";
423489 reg = <0x18007000 0x1000>;
424
- #address-cells = <1>;
425
- #size-cells = <0>;
426490
427491 status = "disabled";
428492
....@@ -468,7 +532,6 @@
468532 "spi_lr_session_done",
469533 "spi_lr_overread";
470534 clocks = <&iprocmed>;
471
- clock-names = "iprocmed";
472535 num-cs = <2>;
473536 #address-cells = <1>;
474537 #size-cells = <0>;
....@@ -477,8 +540,11 @@
477540 compatible = "jedec,spi-nor";
478541 reg = <0>;
479542 spi-max-frequency = <20000000>;
480
- linux,part-probe = "ofpart", "bcm47xxpart";
481543 status = "disabled";
544
+
545
+ partitions {
546
+ compatible = "brcm,bcm947xx-cfe-partitions";
547
+ };
482548 };
483549 };
484550