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 */
113 <6 &cpuintc 5>, /* WDT_IP2 */
114 <5 &cpuintc 4>; /* WDT_IP1 */
118 compatible = "realtek,rtl9300-timer";
120 interrupt-parent = <&intc>;
122 interrupt-names = "ostimer";
127 compatible = "realtek,rtl8380-spi";
128 reg = <0x1200 0x100>;
130 #address-cells = <1>;
135 compatible = "ns16550a";
136 reg = <0x2000 0x100>;
140 interrupt-parent = <&intc>;
150 compatible = "ns16550a";
151 reg = <0x2100 0x100>;
155 interrupt-parent = <&intc>;
166 watchdog0: watchdog@3260 {
167 compatible = "realtek,rtl9300-wdt";
170 realtek,reset-mode = "soc";
175 interrupt-parent = <&intc>;
176 interrupt-names = "phase1", "phase2";
177 interrupts = <5>, <6>;
180 gpio0: gpio-controller@3500 {
181 compatible = "realtek,rtl8380-gpio", "realtek,otto-gpio";
186 interrupt-parent = <&intc>;
190 * currently, RTL930x GPIO is not supported in
191 * upstreamed driver (gpio-realtek-otto)
197 ethernet0: ethernet@1b00a300 {
198 compatible = "realtek,rtl838x-eth";
199 reg = <0x1b00a300 0x100>;
200 interrupt-parent = <&intc>;
202 #interrupt-cells = <1>;
203 phy-mode = "internal";
211 switch0: switch@1b000000 {
212 compatible = "realtek,rtl83xx-switch";
214 interrupt-parent = <&intc>;