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>
9 compatible = "engenius,ews2910p", "realtek,rtl838x-soc";
10 model = "EnGenius EWS2910P";
13 led-boot = &led_power;
14 led-failsafe = &led_fault;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 device_type = "memory";
21 reg = <0x0 0x10000000>;
25 compatible = "gpio-keys";
29 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
41 compatible = "realtek,rtl8231-gpio";
44 indirect-access-bus-id = <0>;
48 compatible = "gpio-restart";
49 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
53 compatible = "gpio-leds";
56 label = "green:power";
57 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
61 label = "green:lan-mode";
62 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
66 label = "amber:fault";
67 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
71 label = "amber:poe-max";
72 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
81 compatible = "jedec,spi-nor";
83 spi-max-frequency = <10000000>;
86 compatible = "fixed-partitions";
97 reg = <0x80000 0x10000>;
101 label = "u-boot-env2";
102 reg = <0x90000 0x10000>;
106 reg = <0xa0000 0xd60000>;
110 reg = <0xe00000 0x200000>;
113 compatible = "openwrt,uimage";
115 reg = <0x1000000 0x800000>;
116 openwrt,ih-magic = <0x03802910>;
120 reg = <0x1800000 0x800000>;
128 compatible = "realtek,rtl838x-mdio";
129 regmap = <ðernet0>;
130 #address-cells = <1>;
146 #address-cells = <1>;
149 SWITCH_PORT(8, 1, internal)
150 SWITCH_PORT(9, 2, internal)
151 SWITCH_PORT(10, 3, internal)
152 SWITCH_PORT(11, 4, internal)
153 SWITCH_PORT(12, 5, internal)
154 SWITCH_PORT(13, 6, internal)
155 SWITCH_PORT(14, 7, internal)
156 SWITCH_PORT(15, 8, internal)
159 ethernet = <ðernet0>;
161 phy-mode = "internal";