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 compatible = "engenius,enh202-v1", "qca,ar7240";
11 model = "EnGenius ENH202 v1";
14 led-boot = &led_rssihigh;
15 led-failsafe = &led_rssihigh;
16 led-running = &led_rssihigh;
17 led-upgrade = &led_rssihigh;
21 compatible = "gpio-keys";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
32 compatible = "gpio-leds";
34 pinctrl-names = "default";
35 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
38 label = "enh202-v1:red:rssilow";
39 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
43 label = "enh202-v1:amber:rssimedium";
44 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
47 led_rssihigh: rssihigh {
48 label = "enh202-v1:green:rssihigh";
49 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
53 label = "enh202-v1:amber:lan";
54 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
58 label = "enh202-v1:green:wan";
59 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
64 compatible = "gpio-leds";
67 label = "enh202-v1:green:wlan";
68 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
69 linux,default-trigger = "phy0tpt";
74 compatible = "mtd-concat";
76 devices = <&firmware1 &firmware2>;
79 compatible = "fixed-partitions";
84 compatible = "openwrt,okli";
102 compatible = "jedec,spi-nor";
104 spi-max-frequency = <20000000>;
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
118 label = "u-boot-env";
119 reg = <0x40000 0x10000>;
124 reg = <0x50000 0x50000>;
130 reg = <0xa0000 0x10000>;
134 firmware2: partition@b0000 {
136 reg = <0xb0000 0xf0000>;
141 reg = <0x1a0000 0x10000>;
144 firmware1: partition@1b0000 {
146 reg = <0x1b0000 0x4c0000>;
151 reg = <0x670000 0x180000>;
155 art: partition@7f0000 {
157 reg = <0x7f0000 0x10000>;
165 mtd-mac-address = <&art 0x0>;
171 mtd-mac-address = <&art 0x0>;
178 compatible = "pci168c,002a";
179 reg = <0x0000 0 0 0 0>;