ath79: add support for Ubiquiti airCube AC
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_engenius_ews511ap.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "engenius,ews511ap", "qca,qca9531";
10 model = "EnGenius EWS511AP";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 pinctrl-names = "default";
23 pinctrl-0 = <&jtag_disable_pins>;
24
25 reset {
26 label = "reset";
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_power: power {
36 label = "amber:power";
37 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
38 default-state = "on";
39 };
40
41 lan1 {
42 label = "blue:lan1";
43 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
44 };
45
46 lan2 {
47 label = "blue:lan2";
48 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
49 };
50
51 wlan2g {
52 label = "green:wlan2g";
53 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy0tpt";
55 };
56
57 wlan5g {
58 label = "green:wlan5g";
59 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy1tpt";
61 };
62 };
63
64 watchdog {
65 compatible = "linux,wdt-gpio";
66
67 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
68 hw_algo = "toggle";
69 /* hw_margin_ms is actually 300s but driver limits it to 60s */
70 hw_margin_ms = <60000>;
71 always-running;
72 };
73 };
74
75 &wdt {
76 status = "okay";
77 };
78
79 &rst {
80 status = "okay";
81 };
82
83 &pcie0 {
84 status = "okay";
85 };
86
87 &uart {
88 status = "okay";
89 };
90
91 &spi {
92 status = "okay";
93
94 flash@0 {
95 compatible = "jedec,spi-nor";
96 reg = <0>;
97 spi-max-frequency = <25000000>;
98
99 partitions {
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 partition@0 {
105 label = "u-boot";
106 reg = <0x000000 0x040000>;
107 read-only;
108 };
109
110 ubootenv: partition@40000 {
111 label = "u-boot-env";
112 reg = <0x040000 0x010000>;
113 };
114
115 art: partition@50000 {
116 label = "art";
117 reg = <0x050000 0x010000>;
118 read-only;
119 };
120
121 partition@60000 {
122 compatible = "denx,uimage";
123 label = "firmware";
124 reg = <0x060000 0xfa0000>;
125 };
126 };
127 };
128 };
129
130 &eth0 {
131 status = "okay";
132
133 phy-handle = <&swphy4>;
134 };
135
136 &wmac {
137 status = "okay";
138
139 mtd-cal-data = <&art 0x1000>;
140 };