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>;
90 compatible = "simple-bus";
93 ranges = <0x0 0x18000000 0x10000>;
96 compatible = "realtek,rtl-intc";
99 #interrupt-cells = <1>;
100 interrupt-controller;
102 <31 &cpuintc 1>, /* UART1 */
103 <30 &cpuintc 2>, /* UART0 */
104 <28 &cpuintc 1>, /* USB_H2 */
105 <24 &cpuintc 4>, /* NIC */
106 <23 &cpuintc 3>, /* SWCORE */
107 <13 &cpuintc 4>, /* GPIO_ABCD */
108 <11 &cpuintc 1>, /* TC4 */
109 <10 &cpuintc 1>, /* TC3 */
110 <9 &cpuintc 1>, /* TC2 */
111 <8 &cpuintc 1>, /* TC1 */
112 <7 &cpuintc 5>; /* TC0 */
116 compatible = "realtek,rtl9300-timer";
118 interrupt-parent = <&intc>;
120 interrupt-names = "ostimer";
125 compatible = "realtek,rtl8380-spi";
126 reg = <0x1200 0x100>;
128 #address-cells = <1>;
133 compatible = "ns16550a";
134 reg = <0x2000 0x100>;
138 interrupt-parent = <&intc>;
148 compatible = "ns16550a";
149 reg = <0x2100 0x100>;
153 interrupt-parent = <&intc>;
164 gpio0: gpio-controller@3500 {
165 compatible = "realtek,rtl8380-gpio", "realtek,otto-gpio";
170 interrupt-parent = <&intc>;
174 * currently, RTL930x GPIO is not supported in
175 * upstreamed driver (gpio-realtek-otto)
181 ethernet0: ethernet@1b00a300 {
182 compatible = "realtek,rtl838x-eth";
183 reg = <0x1b00a300 0x100>;
184 interrupt-parent = <&intc>;
186 #interrupt-cells = <1>;
187 phy-mode = "internal";
195 switch0: switch@1b000000 {
196 compatible = "realtek,rtl83xx-switch";
198 interrupt-parent = <&intc>;