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>;
86 reg = <0x60000 0x100000>;
90 reg = <0x160000 0x100000>;
94 reg = <0x260000 0x6d0000>;
95 compatible = "openwrt,uimage", "denx,uimage";
96 openwrt,ih-magic = <0x83800000>;
100 reg = <0x930000 0x6d0000>;
108 compatible = "realtek,rtl838x-mdio";
109 regmap = <ðernet0>;
110 #address-cells = <1>;
126 #address-cells = <1>;
129 SWITCH_PORT(8, 1, internal)
130 SWITCH_PORT(9, 2, internal)
131 SWITCH_PORT(10, 3, internal)
132 SWITCH_PORT(11, 4, internal)
133 SWITCH_PORT(12, 5, internal)
134 SWITCH_PORT(13, 6, internal)
135 SWITCH_PORT(14, 7, internal)
136 SWITCH_PORT(15, 8, internal)
139 ethernet = <ðernet0>;
141 phy-mode = "internal";