ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7240_engenius_enh202-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7240.dtsi"
4 #include "ar724x_senao_loader-64k.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 compatible = "engenius,enh202-v1", "qca,ar7240";
12 model = "EnGenius ENH202 v1";
13
14 aliases {
15 led-boot = &led_rssihigh;
16 led-failsafe = &led_rssihigh;
17 led-running = &led_rssihigh;
18 led-upgrade = &led_rssihigh;
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 pinctrl-names = "default";
36 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
37
38 rssilow {
39 label = "red:rssilow";
40 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
41 };
42
43 rssimedium {
44 label = "amber:rssimedium";
45 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
46 };
47
48 led_rssihigh: rssihigh {
49 label = "green:rssihigh";
50 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
51 };
52
53 lan {
54 function = LED_FUNCTION_LAN;
55 color = <LED_COLOR_ID_AMBER>;
56 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
57 };
58
59 wan {
60 function = LED_FUNCTION_WAN;
61 color = <LED_COLOR_ID_GREEN>;
62 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
63 };
64 };
65
66 ath9k-leds {
67 compatible = "gpio-leds";
68
69 wlan {
70 function = LED_FUNCTION_WLAN;
71 color = <LED_COLOR_ID_GREEN>;
72 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
73 linux,default-trigger = "phy0tpt";
74 };
75 };
76 };
77
78 &eth0 {
79 nvmem-cells = <&macaddr_art_0>;
80 nvmem-cell-names = "mac-address";
81 };
82
83 &eth1 {
84 status = "okay";
85
86 nvmem-cells = <&macaddr_art_0>;
87 nvmem-cell-names = "mac-address";
88 };
89
90 &pcie {
91 status = "okay";
92
93 ath9k: wifi@0,0 {
94 compatible = "pci168c,002a";
95 reg = <0x0000 0 0 0 0>;
96 qca,no-eeprom;
97 #gpio-cells = <2>;
98 gpio-controller;
99 };
100 };
101
102 &art {
103 nvmem-layout {
104 compatible = "fixed-layout";
105 #address-cells = <1>;
106 #size-cells = <1>;
107
108 macaddr_art_0: macaddr@0 {
109 reg = <0x0 0x6>;
110 };
111 };
112 };