ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9341_engenius_ens202ext-v1.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 ENS202EXT v1";
12 compatible = "engenius,ens202ext-v1", "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 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_power: power {
36 function = LED_FUNCTION_POWER;
37 color = <LED_COLOR_ID_AMBER>;
38 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
39 default-state = "on";
40 };
41
42 wlan {
43 function = LED_FUNCTION_WLAN;
44 color = <LED_COLOR_ID_AMBER>;
45 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
47 };
48
49 rssilow {
50 label = "red:rssilow";
51 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
52 };
53
54 rssimedium {
55 label = "amber:rssimedium";
56 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
57 };
58
59 rssihigh {
60 label = "green:rssihigh";
61 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
62 };
63 };
64 };
65
66 &eth0 {
67 status = "okay";
68
69 phy-handle = <&swphy0>;
70
71 nvmem-cells = <&macaddr_art_0>;
72 nvmem-cell-names = "mac-address";
73 };
74
75 &eth1 {
76 status = "okay";
77
78 nvmem-cells = <&macaddr_art_0>;
79 nvmem-cell-names = "mac-address";
80
81 gmac-config {
82 device = <&gmac>;
83 switch-phy-swap = <1>;
84 };
85 };
86
87 &wmac {
88 status = "okay";
89
90 mtd-cal-data = <&art 0x1000>;
91 };
92
93 &art {
94 nvmem-layout {
95 compatible = "fixed-layout";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 macaddr_art_0: macaddr@0 {
100 reg = <0x0 0x6>;
101 };
102 };
103 };