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 = <800000000>;
62 compatible = "mips,mips34Kc";
68 device_type = "memory";
69 reg = <0x0 0x8000000>;
73 bootargs = "console=ttyS0,38400";
78 #interrupt-cells = <1>;
80 compatible = "mti,cpu-interrupt-controller";
85 #interrupt-cells = <1>;
87 compatible = "realtek,rt9300-intc";
88 reg = <0xb8003000 0x20>;
92 compatible = "fixed-clock";
94 clock-frequency = <175000000>;
95 clock-output-names = "osc";
98 timer: timer@b8003200 {
99 compatible = "realtek,rtl9300-timer";
100 reg = <0xb8003200 0x60>;
101 interrupt-parent = <&intc>;
103 interrupt-names = "ostimer";
110 compatible = "realtek,rtl838x-nor";
111 reg = <0xb8001200 0x100>;
113 #address-cells = <1>;
117 uart0: uart@b8002000 {
118 compatible = "ns16550a";
119 reg = <0xb8002000 0x100>;
121 clock-frequency = <175000000>;
123 interrupt-parent = <&intc>;
134 uart1: uart@b8002100 {
135 compatible = "ns16550a";
136 reg = <0xb8002100 0x100>;
138 clock-frequency = <175000000>;
140 interrupt-parent = <&intc>;
151 gpio0: gpio-controller@b8003500 {
152 compatible = "realtek,rtl838x-gpio";
153 reg = <0xb8003500 0x20>;
156 interrupt-parent = <&intc>;
160 ethernet0: ethernet@bb00a300 {
162 compatible = "realtek,rtl838x-eth";
163 reg = <0xbb00a300 0x100>;
164 interrupt-parent = <&intc>;
166 #interrupt-cells = <1>;
167 phy-mode = "internal";
174 switch0: switch@bb000000 {
177 interrupt-parent = <&intc>;
180 compatible = "realtek,rtl83xx-switch";