ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7161_aruba_ap-175.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7100.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "aruba,ap-175", "qca,ar7161";
11 model = "Aruba AP-175";
12
13 chosen {
14 bootargs = "console=ttyS0,115200";
15 };
16
17 aliases {
18 led-boot = &led_power_amber;
19 led-failsafe = &led_power_amber;
20 led-upgrade = &led_power_amber;
21 label-mac-device = &eth0;
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 /* These internal LEDs cannot be seen when case is closed */
28 internal_2g_green {
29 label = "green:internal_2g";
30 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
31 };
32
33 internal_5g_green {
34 label = "green:internal_5g";
35 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
36 };
37
38 /* These external LEDs are visible from the bottom panel */
39
40 led_power_amber: power_amber {
41 function = LED_FUNCTION_POWER;
42 color = <LED_COLOR_ID_AMBER>;
43 gpios = <&gpio_ext 5 GPIO_ACTIVE_HIGH>;
44 panic-indicator;
45 };
46
47 r1_act_blue {
48 label = "blue:r1_act";
49 gpios = <&gpio_ext 0 GPIO_ACTIVE_HIGH>;
50 linux,default-trigger = "phy1tpt";
51 };
52
53 r1_rssi1_blue {
54 label = "blue:r1_rssi1";
55 gpios = <&gpio_ext 1 GPIO_ACTIVE_HIGH>;
56 };
57
58 r1_rssi2_blue {
59 label = "blue:r1_rssi2";
60 gpios = <&gpio_ext 2 GPIO_ACTIVE_HIGH>;
61 };
62
63 r1_rssi3_blue {
64 label = "blue:r1_rssi3";
65 gpios = <&gpio_ext 3 GPIO_ACTIVE_HIGH>;
66 };
67
68 r1_rssi4_blue {
69 label = "blue:r1_rssi4";
70 gpios = <&gpio_ext 4 GPIO_ACTIVE_HIGH>;
71 };
72
73 r0_act_amber {
74 label = "amber:r0_act";
75 gpios = <&gpio_ext 8 GPIO_ACTIVE_HIGH>;
76 linux,default-trigger = "phy0tpt";
77 };
78
79 r0_rssi1_amber {
80 label = "amber:r0_rssi1";
81 gpios = <&gpio_ext 9 GPIO_ACTIVE_HIGH>;
82 };
83
84 r0_rssi2_amber {
85 label = "amber:r0_rssi2";
86 gpios = <&gpio_ext 10 GPIO_ACTIVE_HIGH>;
87 };
88
89 r0_rssi3_amber {
90 label = "amber:r0_rssi3";
91 gpios = <&gpio_ext 11 GPIO_ACTIVE_HIGH>;
92 };
93
94 r0_rssi4_amber {
95 label = "amber:r0_rssi4";
96 gpios = <&gpio_ext 12 GPIO_ACTIVE_HIGH>;
97 };
98 };
99
100 keys {
101 compatible = "gpio-keys";
102
103 reset {
104 label = "reset";
105 linux,code = <KEY_RESTART>;
106 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
107 };
108 };
109
110 i2c0: i2c {
111 compatible = "i2c-gpio";
112 i2c-gpio,delay-us = <10>;
113 i2c-gpio,timeout-ms = <1>;
114 sda-gpios = <&gpio 1 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
115 scl-gpios = <&gpio 2 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
116
117 #address-cells = <1>;
118 #size-cells = <0>;
119 };
120 };
121
122 &pcie0 {
123 status = "okay";
124
125 ath9k0: wifi@11,0 {
126 compatible = "pci168c,0029";
127 nvmem-cells = <&macaddr_hwinfo_1c 1>;
128 nvmem-cell-names = "mac-address";
129 reg = <0x8800 0 0 0 0>;
130 #gpio-cells = <2>;
131 gpio-controller;
132 };
133
134 ath9k1: wifi@12,0 {
135 compatible = "pci168c,0029";
136 nvmem-cells = <&macaddr_hwinfo_1c 2>;
137 nvmem-cell-names = "mac-address";
138 reg = <0x9000 0 0 0 0>;
139 #gpio-cells = <2>;
140 gpio-controller;
141 };
142 };
143
144 &mdio0 {
145 status = "okay";
146
147 phy1: ethernet-phy@1 {
148 reg = <0x1>;
149 };
150 };
151
152 &eth0 {
153 status = "okay";
154 nvmem-cells = <&macaddr_hwinfo_1c 0>;
155 nvmem-cell-names = "mac-address";
156
157 phy-mode = "rgmii";
158 phy-handle = <&phy1>;
159 };
160
161 &spi {
162 status = "okay";
163
164 flash@0 {
165 compatible = "jedec,spi-nor";
166 reg = <0>;
167 spi-max-frequency = <25000000>;
168
169 partitions {
170 compatible = "fixed-partitions";
171 #address-cells = <1>;
172 #size-cells = <1>;
173
174 partition@0 {
175 label = "u-boot";
176 reg = <0x000000 0x40000>;
177 read-only;
178 };
179
180 partition@40000 {
181 label = "firmware";
182 reg = <0x40000 0xfa0000>;
183 compatible = "denx,uimage";
184 };
185
186 hwinfo: partition@fe0000 {
187 label = "hwinfo";
188 reg = <0xfe0000 0x10000>;
189 read-only;
190
191 nvmem-layout {
192 compatible = "fixed-layout";
193 #address-cells = <1>;
194 #size-cells = <1>;
195
196 macaddr_hwinfo_1c: macaddr@1c {
197 compatible = "mac-base";
198 reg = <0x1c 0x6>;
199 #nvmem-cell-cells = <1>;
200 };
201 };
202 };
203
204 partition@ff0000 {
205 label = "u-boot-env";
206 reg = <0xff0000 0x10000>;
207 read-only;
208 };
209 };
210 };
211 };
212
213 &i2c0 {
214 gpio_ext: gpio@21 {
215 status = "okay";
216
217 compatible = "ti,tca6416";
218 reg = <0x21>;
219
220 #address-cells = <1>;
221 #size-cells = <0>;
222
223 gpio-controller;
224 #gpio-cells = <2>;
225 };
226
227 temp-sensor@4a {
228 compatible = "national,lm75";
229 reg = <0x4a>;
230 };
231
232 eeprom@50 { /* 24lc2561 */
233 compatible = "atmel,24c256","at24";
234 #address-cells = <1>;
235 #size-cells = <0>;
236 reg = <0x50>;
237 size = <256>;
238 };
239
240 ds1374c: rtc@68 {
241 status = "okay";
242
243 compatible = "dallas,ds1374";
244 reg = <0x68>;
245 };
246 };