1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/clock/rtl83xx-clk.h>
7 #define STRINGIZE(s) #s
8 #define LAN_LABEL(p, s) STRINGIZE(p ## s)
9 #define SWITCH_PORT_LABEL(n) LAN_LABEL(lan, n)
11 #define INTERNAL_PHY(n) \
12 phy##n: ethernet-phy@##n { \
14 compatible = "ethernet-phy-ieee802.3-c22"; \
18 #define EXTERNAL_PHY(n) \
19 phy##n: ethernet-phy@##n { \
21 compatible = "ethernet-phy-ieee802.3-c22"; \
24 #define EXTERNAL_SFP_PHY(n) \
25 phy##n: ethernet-phy@##n { \
26 compatible = "ethernet-phy-ieee802.3-c22"; \
32 #define EXTERNAL_SFP_PHY_FULL(n, s) \
33 phy##n: ethernet-phy@##n { \
34 compatible = "ethernet-phy-ieee802.3-c22"; \
39 #define SWITCH_PORT(n, s, m) \
42 label = SWITCH_PORT_LABEL(s) ; \
43 phy-handle = <&phy##n>; \
47 #define SWITCH_SFP_PORT(n, s, m) \
50 label = SWITCH_PORT_LABEL(s) ; \
51 phy-handle = <&phy##n>; \
63 compatible = "realtek,rtl839x-soc";
66 compatible = "fixed-clock";
68 clock-frequency = <25000000>;
71 ccu: clock-controller {
72 compatible = "realtek,rtl8390-clock";
75 clock-names = "ref_clk";
83 compatible = "mips,mips34Kc";
85 clocks = <&ccu CLK_CPU>;
86 operating-points-v2 = <&cpu_opp_table>;
90 compatible = "mips,mips34Kc";
92 clocks = <&ccu CLK_CPU>;
93 operating-points-v2 = <&cpu_opp_table>;
97 cpu_opp_table: opp-table-0 {
98 compatible = "operating-points-v2";
102 opp-hz = /bits/ 64 <425000000>;
105 opp-hz = /bits/ 64 <450000000>;
108 opp-hz = /bits/ 64 <475000000>;
111 opp-hz = /bits/ 64 <500000000>;
114 opp-hz = /bits/ 64 <525000000>;
117 opp-hz = /bits/ 64 <550000000>;
120 opp-hz = /bits/ 64 <575000000>;
123 opp-hz = /bits/ 64 <600000000>;
126 opp-hz = /bits/ 64 <625000000>;
129 opp-hz = /bits/ 64 <650000000>;
132 opp-hz = /bits/ 64 <675000000>;
135 opp-hz = /bits/ 64 <700000000>;
138 opp-hz = /bits/ 64 <725000000>;
141 opp-hz = /bits/ 64 <750000000>;
151 bootargs = "earlycon";
152 stdout-path = "serial0:115200n8";
156 compatible = "mti,cpu-interrupt-controller";
157 #address-cells = <0>;
158 #interrupt-cells = <1>;
159 interrupt-controller;
163 compatible = "simple-bus";
164 #address-cells = <1>;
166 ranges = <0x0 0x18000000 0x10000>;
168 intc: interrupt-controller@3000 {
169 compatible = "realtek,rtl8390-intc", "realtek,rtl-intc";
170 reg = <0x3000 0x18>, <0x3018 0x18>;
171 interrupt-controller;
172 #interrupt-cells = <2>;
174 interrupt-parent = <&cpuintc>;
175 interrupts = <2>, <3>, <4>, <5>, <6>;
179 compatible = "realtek,rtl8380-spi";
180 reg = <0x1200 0x100>;
182 #address-cells = <1>;
187 compatible = "realtek,rtl8390-timer", "realtek,otto-timer";
188 reg = <0x3100 0x10>, <0x3110 0x10>, <0x3120 0x10>,
189 <0x3130 0x10>, <0x3140 0x10>;
191 interrupt-parent = <&intc>;
192 interrupts = <29 4>, <28 4>, <17 4>, <16 4>, <15 4>;
193 clocks = <&ccu CLK_LXB>;
197 compatible = "ns16550a";
198 reg = <0x2000 0x100>;
200 clocks = <&ccu CLK_LXB>;
202 interrupt-parent = <&intc>;
212 pinctrl-names = "default";
213 pinctrl-0 = <&enable_uart1>;
215 compatible = "ns16550a";
216 reg = <0x2100 0x100>;
218 clocks = <&ccu CLK_LXB>;
220 interrupt-parent = <&intc>;
231 gpio0: gpio-controller@3500 {
232 compatible = "realtek,rtl8390-gpio", "realtek,otto-gpio";
239 interrupt-controller;
240 #interrupt-cells = <2>;
241 interrupt-parent = <&intc>;
245 watchdog0: watchdog@3150 {
246 compatible = "realtek,rtl8390-wdt";
249 realtek,reset-mode = "soc";
251 clocks = <&ccu CLK_LXB>;
254 interrupt-parent = <&intc>;
255 interrupt-names = "phase1", "phase2";
256 interrupts = <19 4>, <18 4>;
262 compatible = "pinctrl-single";
263 reg = <0x1b000004 0x4>;
265 pinctrl-single,bit-per-mux;
266 pinctrl-single,register-width = <32>;
267 pinctrl-single,function-mask = <0x1>;
268 #pinctrl-cells = <2>;
270 enable_uart1: pinmux_enable_uart1 {
271 pinctrl-single,bits = <0x0 0x1 0x3>;
274 disable_jtag: pinmux_disable_jtag {
275 pinctrl-single,bits = <0x0 0x2 0x3>;
281 compatible = "pinctrl-single";
282 reg = <0x1b0000e4 0x4>;
284 pinctrl-single,bit-per-mux;
285 pinctrl-single,register-width = <32>;
286 pinctrl-single,function-mask = <0x1>;
287 #pinctrl-cells = <2>;
290 pinmux_disable_sys_led: disable_sys_led {
291 pinctrl-single,bits = <0x0 0x0 0x4000>;
295 ethernet0: ethernet@1b00a300 {
296 compatible = "realtek,rtl838x-eth";
297 reg = <0x1b00a300 0x100>;
299 interrupt-parent = <&intc>;
302 phy-mode = "internal";
310 sram0: sram@9f000000 {
311 compatible = "mmio-sram";
312 reg = <0x9f000000 0x18000>;
313 #address-cells = <1>;
315 ranges = <0 0x9f000000 0x18000>;
318 switch0: switch@1b000000 {
320 compatible = "realtek,rtl83xx-switch";
322 interrupt-parent = <&intc>;