1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "engenius,enh202-v1", "qca,ar7240";
10 model = "EnGenius ENH202 v1";
13 led-boot = &led_rssihigh;
14 led-failsafe = &led_rssihigh;
15 led-running = &led_rssihigh;
16 led-upgrade = &led_rssihigh;
20 compatible = "gpio-keys";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
31 compatible = "gpio-leds";
33 pinctrl-names = "default";
34 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
37 label = "enh202-v1:red:rssilow";
38 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
42 label = "enh202-v1:amber:rssimedium";
43 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
46 led_rssihigh: rssihigh {
47 label = "enh202-v1:green:rssihigh";
48 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
52 label = "enh202-v1:amber:lan";
53 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
57 label = "enh202-v1:green:wan";
58 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
63 compatible = "gpio-leds";
66 label = "enh202-v1:green:wlan";
67 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
68 linux,default-trigger = "phy0tpt";
73 compatible = "mtd-concat";
75 devices = <&firmware1 &firmware2>;
78 compatible = "fixed-partitions";
83 compatible = "openwrt,okli";
101 compatible = "jedec,spi-nor";
103 spi-max-frequency = <20000000>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
117 label = "u-boot-env";
118 reg = <0x40000 0x10000>;
123 reg = <0x50000 0x50000>;
129 reg = <0xa0000 0x10000>;
133 firmware2: partition@b0000 {
135 reg = <0xb0000 0xf0000>;
140 reg = <0x1a0000 0x10000>;
143 firmware1: partition@1b0000 {
145 reg = <0x1b0000 0x4c0000>;
150 reg = <0x670000 0x180000>;
154 art: partition@7f0000 {
156 reg = <0x7f0000 0x10000>;
164 mtd-mac-address = <&art 0x0>;
170 mtd-mac-address = <&art 0x0>;
177 compatible = "pci168c,002a";
178 reg = <0x0000 0 0 0 0>;