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,115200";
77 compatible = "mti,cpu-interrupt-controller";
79 #interrupt-cells = <1>;
84 compatible = "fixed-clock";
86 clock-frequency = <175000000>;
87 clock-output-names = "osc";
91 compatible = "simple-bus";
94 ranges = <0x0 0x18000000 0x10000>;
97 compatible = "realtek,rtl-intc";
100 #interrupt-cells = <1>;
101 interrupt-controller;
103 <31 &cpuintc 1>, /* UART1 */
104 <30 &cpuintc 2>, /* UART0 */
105 <28 &cpuintc 1>, /* USB_H2 */
106 <24 &cpuintc 4>, /* NIC */
107 <23 &cpuintc 3>, /* SWCORE */
108 <13 &cpuintc 4>, /* GPIO_ABCD */
109 <11 &cpuintc 1>, /* TC4 */
110 <10 &cpuintc 1>, /* TC3 */
111 <9 &cpuintc 1>, /* TC2 */
112 <8 &cpuintc 1>, /* TC1 */
113 <7 &cpuintc 5>; /* TC0 */
117 compatible = "realtek,rtl9300-timer";
119 interrupt-parent = <&intc>;
121 interrupt-names = "ostimer";
126 compatible = "realtek,rtl8380-spi";
127 reg = <0x1200 0x100>;
129 #address-cells = <1>;
134 compatible = "ns16550a";
135 reg = <0x2000 0x100>;
137 clock-frequency = <175000000>;
139 interrupt-parent = <&intc>;
149 compatible = "ns16550a";
150 reg = <0x2100 0x100>;
152 clock-frequency = <175000000>;
154 interrupt-parent = <&intc>;
165 gpio0: gpio-controller@3500 {
166 compatible = "realtek,rtl8380-gpio", "realtek,otto-gpio";
171 interrupt-parent = <&intc>;
175 * currently, RTL930x GPIO is not supported in
176 * upstreamed driver (gpio-realtek-otto)
182 ethernet0: ethernet@1b00a300 {
183 compatible = "realtek,rtl838x-eth";
184 reg = <0x1b00a300 0x100>;
185 interrupt-parent = <&intc>;
187 #interrupt-cells = <1>;
188 phy-mode = "internal";
196 switch0: switch@1b000000 {
197 compatible = "realtek,rtl83xx-switch";
199 interrupt-parent = <&intc>;