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>;
36 compatible = "gpio-keys-polled";
41 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
47 compatible = "gpio-leds";
51 gpios = <&gpio0 47 GPIO_ACTIVE_HIGH>;
60 compatible = "jedec,spi-nor";
62 spi-max-frequency = <10000000>;
65 compatible = "fixed-partitions";
76 reg = <0x40000 0x10000>;
80 label = "u-boot-env2";
81 reg = <0x50000 0x10000>;
85 reg = <0x60000 0x100000>;
89 reg = <0x160000 0x100000>;
93 reg = <0x260000 0x6d0000>;
94 compatible = "openwrt,uimage", "denx,uimage";
95 openwrt,ih-magic = <0x83800000>;
99 reg = <0x930000 0x6d0000>;
107 compatible = "realtek,rtl838x-mdio";
108 regmap = <ðernet0>;
109 #address-cells = <1>;
125 #address-cells = <1>;
128 SWITCH_PORT(8, 1, internal)
129 SWITCH_PORT(9, 2, internal)
130 SWITCH_PORT(10, 3, internal)
131 SWITCH_PORT(11, 4, internal)
132 SWITCH_PORT(12, 5, internal)
133 SWITCH_PORT(13, 6, internal)
134 SWITCH_PORT(14, 7, internal)
135 SWITCH_PORT(15, 8, internal)
138 ethernet = <ðernet0>;
140 phy-mode = "internal";