1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include "rtl838x.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
11 led-failsafe = &led_sys;
12 led-running = &led_sys;
13 led-upgrade = &led_sys;
17 bootargs = "console=ttyS0,115200";
21 device_type = "memory";
22 reg = <0x0 0x8000000>;
26 compatible = "gpio-keys-polled";
31 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
37 pinctrl-names = "default";
38 pinctrl-0 = <&pinmux_disable_sys_led>;
39 compatible = "gpio-leds";
43 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
62 compatible = "jedec,spi-nor";
64 spi-max-frequency = <10000000>;
67 compatible = "fixed-partitions";
78 reg = <0x40000 0x10000>;
82 label = "u-boot-env2";
83 reg = <0x50000 0x10000>;
87 reg = <0x60000 0x100000>;
91 reg = <0x160000 0x100000>;
95 reg = <0x260000 0x6d0000>;
96 compatible = "openwrt,uimage", "denx,uimage";
97 openwrt,ih-magic = <0x83800000>;
101 reg = <0x930000 0x6d0000>;
109 compatible = "realtek,rtl838x-mdio";
110 regmap = <ðernet0>;
111 #address-cells = <1>;
127 #address-cells = <1>;
130 SWITCH_PORT(8, 1, internal)
131 SWITCH_PORT(9, 2, internal)
132 SWITCH_PORT(10, 3, internal)
133 SWITCH_PORT(11, 4, internal)
134 SWITCH_PORT(12, 5, internal)
135 SWITCH_PORT(13, 6, internal)
136 SWITCH_PORT(14, 7, internal)
137 SWITCH_PORT(15, 8, internal)
140 ethernet = <ðernet0>;
142 phy-mode = "internal";