1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #define STRINGIZE(s) #s
6 #define LAN_LABEL(p, s) STRINGIZE(p ## s)
7 #define SWITCH_PORT_LABEL(n) LAN_LABEL(lan, n)
9 #define INTERNAL_PHY(n) \
10 phy##n: ethernet-phy@##n { \
12 compatible = "ethernet-phy-ieee802.3-c22"; \
16 #define EXTERNAL_PHY(n) \
17 phy##n: ethernet-phy@##n { \
19 compatible = "ethernet-phy-ieee802.3-c22"; \
22 #define EXTERNAL_SFP_PHY(n) \
23 phy##n: ethernet-phy@##n { \
24 compatible = "ethernet-phy-ieee802.3-c22"; \
30 #define SWITCH_PORT(n, s, m) \
33 label = SWITCH_PORT_LABEL(s) ; \
34 phy-handle = <&phy##n>; \
38 #define SWITCH_SFP_PORT(n, s, m) \
41 label = SWITCH_PORT_LABEL(s) ; \
42 phy-handle = <&phy##n>; \
54 compatible = "realtek,rtl839x-soc";
59 frequency = <700000000>;
62 compatible = "mips,mips34Kc";
68 bootargs = "console=ttyS0,115200";
72 compatible = "fixed-clock";
74 clock-frequency = <200000000>;
78 compatible = "mti,cpu-interrupt-controller";
80 #interrupt-cells = <1>;
85 compatible = "simple-bus";
88 ranges = <0x0 0x18000000 0x10000>;
90 intc: interrupt-controller@3000 {
91 compatible = "realtek,rtl8390-intc", "realtek,rtl-intc";
92 reg = <0x3000 0x18>, <0x3018 0x18>;
94 #interrupt-cells = <2>;
96 interrupt-parent = <&cpuintc>;
97 interrupts = <2>, <3>, <4>, <5>, <6>;
101 compatible = "realtek,rtl8380-spi";
102 reg = <0x1200 0x100>;
104 #address-cells = <1>;
109 compatible = "ns16550a";
110 reg = <0x2000 0x100>;
114 interrupt-parent = <&intc>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&enable_uart1>;
127 compatible = "ns16550a";
128 reg = <0x2100 0x100>;
132 interrupt-parent = <&intc>;
143 gpio0: gpio-controller@b3500 {
144 compatible = "realtek,rtl8390-gpio", "realtek,otto-gpio";
151 interrupt-controller;
152 #interrupt-cells = <2>;
153 interrupt-parent = <&intc>;
157 watchdog0: watchdog@3150 {
158 compatible = "realtek,rtl8390-wdt";
161 realtek,reset-mode = "soc";
166 interrupt-parent = <&intc>;
167 interrupt-names = "phase1", "phase2";
168 interrupts = <19 4>, <18 4>;
173 pinmux: pinmux@1b001000 {
174 compatible = "pinctrl-single";
175 reg = <0x1b000004 0x4>;
177 pinctrl-single,bit-per-mux;
178 pinctrl-single,register-width = <32>;
179 pinctrl-single,function-mask = <0x1>;
180 #pinctrl-cells = <2>;
182 enable_uart1: pinmux_enable_uart1 {
183 pinctrl-single,bits = <0x0 0x1 0x3>;
188 pinmux_led: pinmux@1b00a000 {
189 compatible = "pinctrl-single";
190 reg = <0x1b0000e4 0x4>;
192 pinctrl-single,bit-per-mux;
193 pinctrl-single,register-width = <32>;
194 pinctrl-single,function-mask = <0x1>;
195 #pinctrl-cells = <2>;
198 pinmux_disable_sys_led: disable_sys_led {
199 pinctrl-single,bits = <0x0 0x0 0x4000>;
203 ethernet0: ethernet@1b00a300 {
204 compatible = "realtek,rtl838x-eth";
205 reg = <0x1b00a300 0x100>;
207 interrupt-parent = <&intc>;
210 phy-mode = "internal";
218 switch0: switch@1b000000 {
220 compatible = "realtek,rtl83xx-switch";
222 interrupt-parent = <&intc>;