ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9341_engenius_eap300-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9341.dtsi"
4 #include "ar934x_senao_loader.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/leds/common.h>
9
10 / {
11 model = "Engenius EAP300 v2";
12 compatible = "engenius,eap300-v2", "qca,ar9341";
13
14 aliases {
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 linux,code = <KEY_RESTART>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_power: power {
36 function = LED_FUNCTION_POWER;
37 color = <LED_COLOR_ID_BLUE>;
38 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
39 default-state = "on";
40 };
41
42 wlan {
43 function = LED_FUNCTION_WLAN;
44 color = <LED_COLOR_ID_BLUE>;
45 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
47 };
48 };
49 };
50
51 &eth1 {
52 nvmem-cells = <&macaddr_art_0>;
53 nvmem-cell-names = "mac-address";
54 };
55
56 &wmac {
57 status = "okay";
58
59 mtd-cal-data = <&art 0x1000>;
60 };
61
62 &art {
63 nvmem-layout {
64 compatible = "fixed-layout";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 macaddr_art_0: macaddr@0 {
69 reg = <0x0 0x6>;
70 };
71 };
72 };