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 device_type = "memory";
18 reg = <0x0 0x8000000>;
22 compatible = "gpio-keys-polled";
27 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
33 pinctrl-names = "default";
34 pinctrl-0 = <&pinmux_disable_sys_led>;
35 compatible = "gpio-leds";
39 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
58 compatible = "jedec,spi-nor";
60 spi-max-frequency = <10000000>;
63 compatible = "fixed-partitions";
74 reg = <0x40000 0x10000>;
78 label = "u-boot-env2";
79 reg = <0x50000 0x10000>;
83 reg = <0x60000 0x100000>;
87 reg = <0x160000 0x100000>;
91 reg = <0x260000 0x6d0000>;
92 compatible = "openwrt,uimage", "denx,uimage";
93 openwrt,ih-magic = <0x83800000>;
97 reg = <0x930000 0x6d0000>;
105 compatible = "realtek,rtl838x-mdio";
106 regmap = <ðernet0>;
107 #address-cells = <1>;
123 #address-cells = <1>;
126 SWITCH_PORT(8, 1, internal)
127 SWITCH_PORT(9, 2, internal)
128 SWITCH_PORT(10, 3, internal)
129 SWITCH_PORT(11, 4, internal)
130 SWITCH_PORT(12, 5, internal)
131 SWITCH_PORT(13, 6, internal)
132 SWITCH_PORT(14, 7, internal)
133 SWITCH_PORT(15, 8, internal)
136 ethernet = <ðernet0>;
138 phy-mode = "internal";