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 = "realtek,rt8380-intc";
80 reg = <0xb8003000 0x20>;
82 #interrupt-cells = <1>;
87 compatible = "realtek,rtl838x-nor";
88 reg = <0xb8001200 0x100>;
94 uart0: uart@b8002000 {
95 compatible = "ns16550a";
96 reg = <0xb8002000 0x100>;
98 clock-frequency = <200000000>;
100 interrupt-parent = <&intc>;
109 uart1: uart@b8002100 {
110 pinctrl-names = "default";
111 pinctrl-0 = <&enable_uart1>;
113 compatible = "ns16550a";
114 reg = <0xb8002100 0x100>;
116 clock-frequency = <200000000>;
118 interrupt-parent = <&intc>;
127 gpio0: gpio-controller@b8003500 {
128 compatible = "realtek,rtl838x-gpio";
129 reg = <0xb8003500 0x20>;
132 interrupt-parent = <&intc>;
136 gpio1: rtl8231-gpio {
137 compatible = "realtek,rtl8231-gpio";
139 indirect-access-bus-id = <0>;
145 pinmux: pinmux@bb001000 {
146 compatible = "pinctrl-single";
147 reg = <0xbb001000 0x4>;
149 pinctrl-single,bit-per-mux;
150 pinctrl-single,register-width = <32>;
151 pinctrl-single,function-mask = <0x1>;
152 #pinctrl-cells = <2>;
154 enable_uart1: pinmux_enable_uart1 {
155 pinctrl-single,bits = <0x0 0x10 0x10>;
159 ethernet0: ethernet@bb00a300 {
160 compatible = "realtek,rtl838x-eth";
161 reg = <0xbb00a300 0x100>;
162 interrupt-parent = <&intc>;
164 #interrupt-cells = <1>;
165 phy-mode = "internal";
173 switch0: switch@bb000000 {
174 compatible = "realtek,rtl83xx-switch";
176 interrupt-parent = <&intc>;