1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
10 model = "Engenius ENS202EXT v1";
11 compatible = "engenius,ens202ext-v1", "qca,ar9341";
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
22 compatible = "gpio-keys";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
33 compatible = "gpio-leds";
36 label = "ens202ext-v1:amber:power";
37 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
42 label = "ens202ext-v1:amber:wlan";
43 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "phy0tpt";
48 label = "ens202ext-v1:red:rssilow";
49 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
53 label = "ens202ext-v1:amber:rssimedium";
54 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
58 label = "ens202ext-v1:green:rssihigh";
59 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
64 compatible = "mtd-concat";
66 devices = <&firmware1 &firmware2>;
69 compatible = "fixed-partitions";
74 compatible = "openwrt,okli";
83 clock-frequency = <40000000>;
96 compatible = "jedec,spi-nor";
98 spi-max-frequency = <40000000>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
107 reg = <0x000000 0x040000>;
112 label = "u-boot-env";
113 reg = <0x040000 0x010000>;
118 reg = <0x050000 0x050000>;
124 reg = <0x0a0000 0x010000>;
128 firmware2: partition@b0000 {
130 reg = <0x0b0000 0x170000>;
135 reg = <0x220000 0x010000>;
138 firmware1: partition@230000 {
140 reg = <0x230000 0xbc0000>;
145 reg = <0xdf0000 0x200000>;
149 art: partition@ff0000 {
151 reg = <0xff0000 0x010000>;
161 phy-handle = <&swphy0>;
163 mtd-mac-address = <&art 0x0>;
169 mtd-mac-address = <&art 0x0>;
173 switch-phy-swap = <1>;
180 mtd-cal-data = <&art 0x1000>;