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