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 = < 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>,
49 < 11 GPIO_ACTIVE_HIGH>, /* los-gpio */
50 < 12 GPIO_ACTIVE_LOW>; /* mod-def0-gpio */
52 line-name = "sff-p9-gpios";
57 compatible = "gpio-export";
60 gpio-export,name = "sff-p9-tx-disable";
61 gpio-export,output = <1>;
62 gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
67 compatible = "gpio-restart";
68 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
72 compatible = "gpio-leds";
75 label = "green:power";
76 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
80 label = "green:lan-mode";
81 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
85 label = "amber:fault";
86 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
90 label = "amber:poe-max";
91 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
96 compatible = "i2c-gpio";
97 sda-gpios = <&gpio1 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
98 scl-gpios = <&gpio1 31 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
99 i2c-gpio,delay-us = <2>;
100 #address-cells = <1>;
104 compatible = "sff,sfp";
106 tx-disable-gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
107 los-gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
108 mod-def0-gpio = <&gpio1 21 GPIO_ACTIVE_LOW>;
116 compatible = "jedec,spi-nor";
118 spi-max-frequency = <10000000>;
121 compatible = "fixed-partitions";
122 #address-cells = <1>;
131 label = "u-boot-env";
132 reg = <0x80000 0x10000>;
136 label = "u-boot-env2";
137 reg = <0x90000 0x10000>;
141 reg = <0xa0000 0xd60000>;
145 reg = <0xe00000 0x200000>;
148 compatible = "openwrt,uimage";
150 reg = <0x1000000 0x800000>;
151 openwrt,ih-magic = <0x03802910>;
155 reg = <0x1800000 0x800000>;
163 compatible = "realtek,rtl838x-mdio";
164 regmap = <ðernet0>;
165 #address-cells = <1>;
184 #address-cells = <1>;
187 SWITCH_PORT(8, 1, internal)
188 SWITCH_PORT(9, 2, internal)
189 SWITCH_PORT(10, 3, internal)
190 SWITCH_PORT(11, 4, internal)
191 SWITCH_PORT(12, 5, internal)
192 SWITCH_PORT(13, 6, internal)
193 SWITCH_PORT(14, 7, internal)
194 SWITCH_PORT(15, 8, internal)
196 SWITCH_SFP_PORT(24, 9, 1000base-x)
201 phy-mode = "1000base-x";
202 phy-handle = <&phy26>;
203 managed = "in-band-status";
208 ethernet = <ðernet0>;
210 phy-mode = "internal";