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>;
44 compatible = "realtek,rtl8231-gpio";
47 indirect-access-bus-id = <0>;
51 gpios = <13 GPIO_ACTIVE_HIGH>;
61 compatible = "jedec,spi-nor";
63 spi-max-frequency = <10000000>;
66 compatible = "fixed-partitions";
77 reg = <0x40000 0x10000>;
81 label = "u-boot-env2";
82 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";