1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/clock/rtl83xx-clk.h>
7 #define STRINGIZE(s) #s
8 #define LAN_LABEL(p, s) STRINGIZE(p ## s)
9 #define SWITCH_PORT_LABEL(n) LAN_LABEL(lan, n)
11 #define INTERNAL_PHY(n) \
12 phy##n: ethernet-phy@##n { \
14 compatible = "ethernet-phy-ieee802.3-c22"; \
18 #define EXTERNAL_PHY(n) \
19 phy##n: ethernet-phy@##n { \
21 compatible = "ethernet-phy-ieee802.3-c22"; \
24 #define EXTERNAL_SFP_PHY(n) \
25 phy##n: ethernet-phy@##n { \
26 compatible = "ethernet-phy-ieee802.3-c22"; \
32 #define SWITCH_PORT(n, s, m) \
35 label = SWITCH_PORT_LABEL(s) ; \
36 phy-handle = <&phy##n>; \
40 #define SWITCH_SFP_PORT(n, s, m) \
43 label = SWITCH_PORT_LABEL(s) ; \
44 phy-handle = <&phy##n>; \
56 compatible = "realtek,rtl839x-soc";
59 compatible = "fixed-clock";
61 clock-frequency = <25000000>;
64 ccu: clock-controller {
65 compatible = "realtek,rtl8390-clock";
68 clock-names = "ref_clk";
76 compatible = "mips,mips34Kc";
78 clocks = <&ccu CLK_CPU>;
79 operating-points-v2 = <&cpu_opp_table>;
83 compatible = "mips,mips34Kc";
85 clocks = <&ccu CLK_CPU>;
86 operating-points-v2 = <&cpu_opp_table>;
90 cpu_opp_table: opp-table-0 {
91 compatible = "operating-points-v2";
95 opp-hz = /bits/ 64 <425000000>;
98 opp-hz = /bits/ 64 <450000000>;
101 opp-hz = /bits/ 64 <475000000>;
104 opp-hz = /bits/ 64 <500000000>;
107 opp-hz = /bits/ 64 <525000000>;
110 opp-hz = /bits/ 64 <550000000>;
113 opp-hz = /bits/ 64 <575000000>;
116 opp-hz = /bits/ 64 <600000000>;
119 opp-hz = /bits/ 64 <625000000>;
122 opp-hz = /bits/ 64 <650000000>;
125 opp-hz = /bits/ 64 <675000000>;
128 opp-hz = /bits/ 64 <700000000>;
131 opp-hz = /bits/ 64 <725000000>;
134 opp-hz = /bits/ 64 <750000000>;
139 bootargs = "console=ttyS0,115200";
143 compatible = "mti,cpu-interrupt-controller";
144 #address-cells = <0>;
145 #interrupt-cells = <1>;
146 interrupt-controller;
150 compatible = "simple-bus";
151 #address-cells = <1>;
153 ranges = <0x0 0x18000000 0x10000>;
155 intc: interrupt-controller@3000 {
156 compatible = "realtek,rtl8390-intc", "realtek,rtl-intc";
157 reg = <0x3000 0x18>, <0x3018 0x18>;
158 interrupt-controller;
159 #interrupt-cells = <2>;
161 interrupt-parent = <&cpuintc>;
162 interrupts = <2>, <3>, <4>, <5>, <6>;
166 compatible = "realtek,rtl8380-spi";
167 reg = <0x1200 0x100>;
169 #address-cells = <1>;
174 compatible = "ns16550a";
175 reg = <0x2000 0x100>;
177 clocks = <&ccu CLK_LXB>;
179 interrupt-parent = <&intc>;
189 pinctrl-names = "default";
190 pinctrl-0 = <&enable_uart1>;
192 compatible = "ns16550a";
193 reg = <0x2100 0x100>;
195 clocks = <&ccu CLK_LXB>;
197 interrupt-parent = <&intc>;
208 gpio0: gpio-controller@3500 {
209 compatible = "realtek,rtl8390-gpio", "realtek,otto-gpio";
216 interrupt-controller;
217 #interrupt-cells = <2>;
218 interrupt-parent = <&intc>;
222 watchdog0: watchdog@3150 {
223 compatible = "realtek,rtl8390-wdt";
226 realtek,reset-mode = "soc";
228 clocks = <&ccu CLK_LXB>;
231 interrupt-parent = <&intc>;
232 interrupt-names = "phase1", "phase2";
233 interrupts = <19 4>, <18 4>;
239 compatible = "pinctrl-single";
240 reg = <0x1b000004 0x4>;
242 pinctrl-single,bit-per-mux;
243 pinctrl-single,register-width = <32>;
244 pinctrl-single,function-mask = <0x1>;
245 #pinctrl-cells = <2>;
247 enable_uart1: pinmux_enable_uart1 {
248 pinctrl-single,bits = <0x0 0x1 0x3>;
251 disable_jtag: pinmux_disable_jtag {
252 pinctrl-single,bits = <0x0 0x2 0x3>;
258 compatible = "pinctrl-single";
259 reg = <0x1b0000e4 0x4>;
261 pinctrl-single,bit-per-mux;
262 pinctrl-single,register-width = <32>;
263 pinctrl-single,function-mask = <0x1>;
264 #pinctrl-cells = <2>;
267 pinmux_disable_sys_led: disable_sys_led {
268 pinctrl-single,bits = <0x0 0x0 0x4000>;
272 ethernet0: ethernet@1b00a300 {
273 compatible = "realtek,rtl838x-eth";
274 reg = <0x1b00a300 0x100>;
276 interrupt-parent = <&intc>;
279 phy-mode = "internal";
287 sram0: sram@9f000000 {
288 compatible = "mmio-sram";
289 reg = <0x9f000000 0x18000>;
290 #address-cells = <1>;
292 ranges = <0 0x9f000000 0x18000>;
295 switch0: switch@1b000000 {
297 compatible = "realtek,rtl83xx-switch";
299 interrupt-parent = <&intc>;