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>; \
42 compatible = "realtek,rtl838x-soc";
47 frequency = <500000000>;
50 compatible = "mips,mips4KEc";
56 device_type = "memory";
57 reg = <0x0 0x8000000>;
61 bootargs = "console=ttyS0,38400";
66 #interrupt-cells = <1>;
68 compatible = "mti,cpu-interrupt-controller";
73 #interrupt-cells = <1>;
75 compatible = "realtek,rt8380-intc";
76 reg = <0xb8003000 0x20>;
82 compatible = "realtek,rtl838x-nor";
83 reg = <0xb8001200 0x100>;
89 uart0: uart@b8002000 {
92 compatible = "ns16550a";
93 reg = <0xb8002000 0x100>;
95 clock-frequency = <200000000>;
97 interrupt-parent = <&cpuintc>;
106 uart1: uart@b8002100 {
107 pinctrl-names = "default";
108 pinctrl-0 = <&enable_uart1>;
112 compatible = "ns16550a";
113 reg = <0xb8002100 0x100>;
115 clock-frequency = <200000000>;
117 interrupt-parent = <&intc>;
126 gpio0: gpio-controller@b8003500 {
127 compatible = "realtek,rtl838x-gpio";
128 reg = <0xb8003500 0x20>;
131 interrupt-parent = <&intc>;
135 gpio1: rtl8231-gpio {
137 compatible = "realtek,rtl8231-gpio";
139 indirect-access-bus-id = <0>;
143 pinmux: pinmux@bb001000 {
144 compatible = "pinctrl-single";
145 reg = <0xbb001000 0x4>;
147 pinctrl-single,bit-per-mux;
148 pinctrl-single,register-width = <32>;
149 pinctrl-single,function-mask = <0x1>;
150 #pinctrl-cells = <2>;
152 enable_uart1: pinmux_enable_uart1 {
153 pinctrl-single,bits = <0x0 0x10 0x10>;
157 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 {
176 interrupt-parent = <&cpuintc>;
180 compatible = "realtek,rtl83xx-switch";