9ba89324223ba946fc1eee0319d1ffe94c7df206
[openwrt/staging/hauke.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
9 / {
10 model = "Engenius EAP300 v2";
11 compatible = "engenius,eap300-v2", "qca,ar9341";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
27 linux,code = <KEY_RESTART>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 led_power: power {
35 label = "blue:power";
36 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
37 default-state = "on";
38 };
39
40 wlan {
41 label = "blue:wlan";
42 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy0tpt";
44 };
45 };
46 };
47
48 &eth1 {
49 nvmem-cells = <&macaddr_art_0>;
50 nvmem-cell-names = "mac-address";
51 };
52
53 &wmac {
54 status = "okay";
55
56 mtd-cal-data = <&art 0x1000>;
57 };
58
59 &art {
60 nvmem-layout {
61 compatible = "fixed-layout";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 macaddr_art_0: macaddr@0 {
66 reg = <0x0 0x6>;
67 };
68 };
69 };