5d562063ea7f4f96ed2ec9adc86ebb8f83aa5574
[openwrt/staging/ynezz.git] / target / linux / rtl838x / dts / rtl838x.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /dts-v1/;
4
5 / {
6 #address-cells = <1>;
7 #size-cells = <1>;
8
9 compatible = "realtek,rtl838x-soc";
10 reg = <0xbb000000 0xa000>;
11
12 cpus {
13 #address-cells = <1>;
14 #size-cells = <0>;
15 frequency = <500000000>;
16
17 cpu@0 {
18 compatible = "mips,mips4KEc";
19 reg = <0>;
20 };
21 };
22
23 memory@0 {
24 device_type = "memory";
25 reg = <0x0 0x8000000>;
26 };
27
28 chosen {
29 bootargs = "console=ttyS0,38400";
30 };
31
32 cpuintc: cpuintc {
33 #address-cells = <0>;
34 #interrupt-cells = <1>;
35 interrupt-controller;
36 compatible = "rtl838x,icu";
37 reg = <0xb8003000 0x20>;
38 };
39
40 spi0: spi@b8001200 {
41 status = "okay";
42
43 compatible = "realtek,rtl838x-nor";
44 reg = <0xb8001200 0x100>;
45
46 #address-cells = <1>;
47 #size-cells = <0>;
48 };
49
50 uart0: uart@b8002000 {
51 status = "disabled";
52
53 compatible = "ns16550a";
54 reg = <0xb8002000 0x100>;
55
56 clock-frequency = <200000000>;
57 interrupts = <31>;
58
59 reg-io-width = <1>;
60 reg-shift = <2>;
61 fifo-size = <1>;
62 no-loopback-test;
63 };
64
65 uart1: uart@b8002100 {
66 status = "okay";
67
68 compatible = "ns16550a";
69 reg = <0xb8002100 0x100>;
70
71 clock-frequency = <200000000>;
72
73 interrupt-parent = <&cpuintc>;
74 interrupts = <30>;
75
76 reg-io-width = <1>;
77 reg-shift = <2>;
78 fifo-size = <1>;
79 no-loopback-test;
80 };
81
82 gpio0: gpio-controller@b8003500 {
83 compatible = "realtek,rtl838x-gpio";
84 reg = <0xb8003500 0x20>;
85 gpio-controller;
86 #gpio-cells = <2>;
87 interrupt-parent = <&cpuintc>;
88 interrupts = <23>;
89 };
90
91 ethernet0: ethernet@bb00a300 {
92 status = "okay";
93
94 compatible = "realtek,rtl838x-eth";
95 reg = <0xbb00a300 0x100>;
96 interrupt-parent = <&cpuintc>;
97 interrupts = <24>;
98 #interrupt-cells = <1>;
99 phy-mode = "internal";
100
101 fixed-link {
102 speed = <1000>;
103 full-duplex;
104 };
105 };
106
107 switch0: switch@bb000000 {
108 status = "okay";
109
110 compatible = "realtek,rtl838x-switch";
111 };
112 };