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 gpios = <1 GPIO_ACTIVE_HIGH>;
50 line-name = "poe-enable";
55 gpios = < 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>,
56 < 11 GPIO_ACTIVE_HIGH>, /* los-gpio */
57 < 12 GPIO_ACTIVE_LOW>; /* mod-def0-gpio */
59 line-name = "sff-p9-gpios";
64 compatible = "gpio-export";
67 gpio-export,name = "sff-p9-tx-disable";
68 gpio-export,output = <1>;
69 gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
74 compatible = "gpio-restart";
75 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
79 compatible = "gpio-leds";
82 label = "green:power";
83 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
87 label = "green:lan-mode";
88 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
92 label = "amber:fault";
93 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
97 label = "amber:poe-max";
98 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
103 compatible = "i2c-gpio";
104 sda-gpios = <&gpio1 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
105 scl-gpios = <&gpio1 31 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
106 i2c-gpio,delay-us = <2>;
107 #address-cells = <1>;
111 compatible = "sff,sfp";
113 tx-disable-gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
114 los-gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
115 mod-def0-gpio = <&gpio1 21 GPIO_ACTIVE_LOW>;
123 compatible = "jedec,spi-nor";
125 spi-max-frequency = <10000000>;
128 compatible = "fixed-partitions";
129 #address-cells = <1>;
138 label = "u-boot-env";
139 reg = <0x80000 0x10000>;
143 label = "u-boot-env2";
144 reg = <0x90000 0x10000>;
147 label = "rootfs_data";
148 reg = <0xa0000 0xd60000>;
152 reg = <0xe00000 0x200000>;
155 compatible = "openwrt,uimage";
157 reg = <0x1000000 0x800000>;
158 openwrt,ih-magic = <0x03802910>;
162 reg = <0x1800000 0x800000>;
170 compatible = "realtek,rtl838x-mdio";
171 regmap = <ðernet0>;
172 #address-cells = <1>;
191 #address-cells = <1>;
194 SWITCH_PORT(8, 1, internal)
195 SWITCH_PORT(9, 2, internal)
196 SWITCH_PORT(10, 3, internal)
197 SWITCH_PORT(11, 4, internal)
198 SWITCH_PORT(12, 5, internal)
199 SWITCH_PORT(13, 6, internal)
200 SWITCH_PORT(14, 7, internal)
201 SWITCH_PORT(15, 8, internal)
203 SWITCH_SFP_PORT(24, 9, 1000base-x)
208 phy-mode = "1000base-x";
209 phy-handle = <&phy26>;
210 managed = "in-band-status";
215 ethernet = <ðernet0>;
217 phy-mode = "internal";