ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9557_iodata_wn-ac-dgr.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.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 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 leds: leds {
18 compatible = "gpio-leds";
19
20 led_power: power {
21 function = LED_FUNCTION_POWER;
22 color = <LED_COLOR_ID_GREEN>;
23 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
24 default-state = "on";
25 };
26
27 eco {
28 label = "green:eco";
29 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
30 };
31
32 wlan5g {
33 label = "green:wlan5g";
34 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "phy0tpt";
36 };
37
38 wlan2g {
39 label = "green:wlan2g";
40 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
41 linux,default-trigger = "phy1tpt";
42 };
43
44 notification {
45 label = "amber:notification";
46 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
47 };
48 };
49
50 keys: keys {
51 compatible = "gpio-keys";
52
53 eco {
54 label = "eco";
55 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
56 linux,code = <BTN_1>;
57 debounce-interval = <60>;
58 };
59
60 auto {
61 label = "auto";
62 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
63 linux,code = <BTN_0>;
64 linux,input-type = <EV_SW>;
65 debounce-interval = <60>;
66 };
67
68 wps {
69 label = "wps";
70 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_WPS_BUTTON>;
72 debounce-interval = <60>;
73 };
74
75 reset {
76 label = "reset";
77 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_RESTART>;
79 debounce-interval = <60>;
80 };
81
82 router {
83 label = "router";
84 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
85 linux,code = <BTN_0>;
86 linux,input-type = <EV_SW>;
87 debounce-interval = <60>;
88 };
89 };
90 };
91
92 &spi {
93 status = "okay";
94
95 flash@0 {
96 compatible = "jedec,spi-nor";
97 reg = <0>;
98 spi-max-frequency = <25000000>;
99
100 partitions {
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 partition@0 {
106 label = "u-boot";
107 reg = <0x000000 0x030000>;
108 read-only;
109 };
110
111 partition@30000 {
112 label = "u-boot-env";
113 reg = <0x030000 0x010000>;
114 read-only;
115 };
116
117 partition@40000 {
118 compatible = "denx,uimage";
119 label = "firmware";
120 reg = <0x040000 0xe50000>;
121 };
122
123 partition@e90000 {
124 label = "manufacture";
125 reg = <0xe90000 0x100000>;
126 read-only;
127 };
128
129 partition@f90000 {
130 label = "backup";
131 reg = <0xf90000 0x010000>;
132 read-only;
133 };
134
135 partition@fa0000 {
136 label = "storage";
137 reg = <0xfa0000 0x050000>;
138 read-only;
139 };
140
141 art: partition@ff0000 {
142 label = "art";
143 reg = <0xff0000 0x010000>;
144 read-only;
145
146 nvmem-layout {
147 compatible = "fixed-layout";
148 #address-cells = <1>;
149 #size-cells = <1>;
150
151 cal_art_5000: calibration@5000 {
152 reg = <0x5000 0x844>;
153 };
154 };
155 };
156 };
157 };
158 };
159
160 &mdio0 {
161 status = "okay";
162
163 phy0: ethernet-phy@0 {
164 reg = <0>;
165
166 qca,ar8327-initvals = <
167 0x04 0x87600000 /* PORT0 PAD MODE CTRL */
168 0x7c 0x0000007e /* PORT0_STATUS */
169 >;
170 };
171 };
172
173 &eth0 {
174 status = "okay";
175
176 pll-data = <0xa6000000 0x00000101 0x00001616>;
177 phy-handle = <&phy0>;
178 };
179
180 &pcie1 {
181 status = "okay";
182
183 wifi@0,0 {
184 compatible = "pci168c,003c";
185 reg = <0x0000 0 0 0 0>;
186 nvmem-cells = <&cal_art_5000>;
187 nvmem-cell-names = "calibration";
188 };
189 };
190
191 &usb_phy0 {
192 status = "okay";
193 };
194
195 &usb0 {
196 status = "okay";
197 };
198
199 &wmac {
200 status = "okay";
201
202 qca,no-eeprom;
203 };