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,rtl838x-soc";
59 frequency = <500000000>;
62 compatible = "mips,mips4KEc";
68 bootargs = "console=ttyS0,38400";
72 compatible = "mti,cpu-interrupt-controller";
74 #interrupt-cells = <1>;
79 compatible = "simple-bus";
82 ranges = <0x0 0xb8000000 0x10000>;
85 compatible = "realtek,rtl-intc";
88 #interrupt-cells = <1>;
91 <31 &cpuintc 2>, /* UART0 */
92 <30 &cpuintc 1>, /* UART1 */
93 <29 &cpuintc 5>, /* TC0 */
94 <28 &cpuintc 1>, /* TC1 */
95 <27 &cpuintc 1>, /* OCPTO */
96 <26 &cpuintc 1>, /* HLXTO */
97 <25 &cpuintc 1>, /* SLXTO */
98 <24 &cpuintc 4>, /* NIC */
99 <23 &cpuintc 4>, /* GPIO_ABCD */
100 <22 &cpuintc 4>, /* GPIO_EFGH */
101 <21 &cpuintc 4>, /* RTC */
102 <20 &cpuintc 3>, /* SWCORE */
103 <19 &cpuintc 4>, /* WDT_IP1 */
104 <18 &cpuintc 5>; /* WDT_IP2 */
108 compatible = "realtek,rtl8380-spi";
109 reg = <0x1200 0x100>;
111 #address-cells = <1>;
116 compatible = "ns16550a";
117 reg = <0x2000 0x100>;
119 clock-frequency = <200000000>;
121 interrupt-parent = <&intc>;
131 pinctrl-names = "default";
132 pinctrl-0 = <&enable_uart1>;
134 compatible = "ns16550a";
135 reg = <0x2100 0x100>;
137 clock-frequency = <200000000>;
139 interrupt-parent = <&intc>;
150 gpio0: gpio-controller@3500 {
151 compatible = "realtek,rtl8380-gpio", "realtek,otto-gpio";
156 interrupt-parent = <&intc>;
161 gpio1: rtl8231-gpio {
162 compatible = "realtek,rtl8231-gpio";
164 indirect-access-bus-id = <0>;
170 pinmux: pinmux@bb001000 {
171 compatible = "pinctrl-single";
172 reg = <0xbb001000 0x4>;
174 pinctrl-single,bit-per-mux;
175 pinctrl-single,register-width = <32>;
176 pinctrl-single,function-mask = <0x1>;
177 #pinctrl-cells = <2>;
179 enable_uart1: pinmux_enable_uart1 {
180 pinctrl-single,bits = <0x0 0x10 0x10>;
185 pinmux_led: pinmux@bb00a000 {
186 compatible = "pinctrl-single";
187 reg = <0xbb00a000 0x4>;
189 pinctrl-single,bit-per-mux;
190 pinctrl-single,register-width = <32>;
191 pinctrl-single,function-mask = <0x1>;
192 #pinctrl-cells = <2>;
195 pinmux_disable_sys_led: disable_sys_led {
196 pinctrl-single,bits = <0x0 0x0 0x8000>;
200 ethernet0: ethernet@bb00a300 {
201 compatible = "realtek,rtl838x-eth";
202 reg = <0xbb00a300 0x100>;
203 interrupt-parent = <&intc>;
205 #interrupt-cells = <1>;
206 phy-mode = "internal";
214 switch0: switch@bb000000 {
215 compatible = "realtek,rtl83xx-switch";
217 interrupt-parent = <&intc>;