ath79: Consistently label info partition
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_archer-c7-v4.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca956x.dtsi"
8
9 / {
10 compatible = "tplink,archer-c7-v4", "qca,qca9563";
11 model = "TP-Link Archer C7 v4";
12
13 chosen {
14 bootargs = "console=ttyS0,115200n8";
15 };
16
17 aliases {
18 led-boot = &system;
19 led-failsafe = &system;
20 led-running = &system;
21 led-upgrade = &system;
22 };
23
24 led_spi {
25 compatible = "spi-gpio";
26 #address-cells = <1>;
27 #size-cells = <0>;
28
29 gpio-sck = <&gpio 15 GPIO_ACTIVE_HIGH>; // 74HC595 SRCLK (Serial Clock)
30 gpio-mosi = <&gpio 14 GPIO_ACTIVE_HIGH>; // 74HC595 SER (Serial)
31 cs-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; // 74HC595 RCLK (Register Clock)
32 num-chipselects = <1>;
33
34 led_gpio: led_gpio@0 {
35 compatible = "fairchild,74hc595";
36 reg = <0>;
37 gpio-controller;
38 #gpio-cells = <2>;
39 registers-number = <1>;
40 spi-max-frequency = <10000000>;
41 };
42 };
43
44 gpio-export {
45 compatible = "gpio-export";
46
47 gpio_shift_register_oe {
48 gpio-export,name = "tp-link:oe:sr";
49 gpio-export,output = <0>;
50 gpios = <&gpio 1 GPIO_ACTIVE_LOW>; // 74HC595 /OE (Output Enable)
51 };
52
53 gpio_shift_register_reset {
54 gpio-export,name = "tp-link:reset:sr";
55 gpio-export,output = <1>;
56 gpios = <&gpio 21 GPIO_ACTIVE_LOW>; // 74HC595 /SRCLR (Serial Clear)
57 };
58 };
59
60 leds {
61 compatible = "gpio-leds";
62
63 system: system {
64 label = "tp-link:green:system";
65 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
66 default-state = "on";
67 };
68
69 usb1 {
70 label = "tp-link:green:usb1";
71 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
72 trigger-sources = <&hub_port1>;
73 linux,default-trigger = "usbport";
74 };
75
76 usb2 {
77 label = "tp-link:green:usb2";
78 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
79 trigger-sources = <&hub_port0>;
80 linux,default-trigger = "usbport";
81 };
82
83 wlan5g {
84 label = "tp-link:green:wlan5g";
85 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
86 linux,default-trigger = "phy0tpt";
87 };
88
89 wlan2g {
90 label = "tp-link:green:wlan2g";
91 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
92 linux,default-trigger = "phy1tpt";
93 };
94
95 wan {
96 label = "tp-link:green:wan";
97 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
98 };
99
100 wan_fail {
101 label = "tp-link:orange:wan";
102 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
103 };
104
105 lan1 {
106 label = "tp-link:green:lan1";
107 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
108 };
109
110 lan2 {
111 label = "tp-link:green:lan2";
112 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
113 };
114
115 lan3 {
116 label = "tp-link:green:lan3";
117 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
118 };
119
120 lan4 {
121 label = "tp-link:green:lan4";
122 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
123 };
124
125 wps {
126 label = "tp-link:green:wps";
127 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
128 };
129 };
130
131 keys {
132 compatible = "gpio-keys";
133
134 reset {
135 label = "Reset button";
136 linux,code = <KEY_RESTART>;
137 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
138 debounce-interval = <60>;
139 };
140
141 wps {
142 label = "WPS button";
143 linux,code = <KEY_WPS_BUTTON>;
144 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
145 debounce-interval = <60>;
146 };
147 };
148
149 };
150
151 &pcie {
152 status = "okay";
153 };
154
155 &uart {
156 status = "okay";
157 };
158
159 &gpio {
160 status = "okay";
161 };
162
163 &usb_phy0 {
164 status = "okay";
165 };
166
167 &usb0 {
168 #address-cells = <1>;
169 #size-cells = <0>;
170 status = "okay";
171
172 hub_port0: port@1 {
173 reg = <1>;
174 #trigger-source-cells = <0>;
175 };
176 };
177
178 &usb_phy1 {
179 status = "okay";
180 };
181
182 &usb1 {
183 #address-cells = <1>;
184 #size-cells = <0>;
185 status = "okay";
186
187 hub_port1: port@1 {
188 reg = <1>;
189 #trigger-source-cells = <0>;
190 };
191 };
192
193 &spi {
194 status = "okay";
195 num-cs = <1>;
196
197 flash@0 {
198 compatible = "jedec,spi-nor";
199 reg = <0>;
200 spi-max-frequency = <25000000>;
201
202 partitions {
203 compatible = "fixed-partitions";
204 #address-cells = <1>;
205 #size-cells = <1>;
206
207 partition@0 {
208 label = "factory-uboot";
209 reg = <0x000000 0x020000>;
210 read-only;
211 };
212
213 partition@20000 {
214 label = "u-boot";
215 reg = <0x020000 0x020000>;
216 read-only;
217 };
218
219 partition@40000 {
220 label = "firmware";
221 reg = <0x040000 0xec0000>;
222 compatible = "denx,uimage";
223 };
224
225 info: partition@f00000 {
226 label = "info";
227 reg = <0xf00000 0x0f0000>;
228 read-only;
229 };
230
231 art: partition@ff0000 {
232 label = "art";
233 reg = <0xff0000 0x010000>;
234 read-only;
235 };
236 };
237 };
238 };
239
240 &mdio0 {
241 status = "okay";
242
243 phy-mask = <0>;
244
245 phy0: ethernet-phy@0 {
246 reg = <0>;
247 phy-mode = "sgmii";
248 qca,mib-poll-interval = <500>;
249
250 qca,ar8327-initvals = <
251 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
252 0x7c 0x0000007e /* PORT0_STATUS */
253 0x94 0x00000200 /* PORT6_STATUS */
254 >;
255 };
256 };
257
258 &eth0 {
259 status = "okay";
260
261 pll-data = <0x03000101 0x00000101 0x00001919>;
262
263 phy-mode = "sgmii";
264 mtd-mac-address = <&info 0x8>;
265 phy-handle = <&phy0>;
266 };
267
268 &wmac {
269 status = "okay";
270 mtd-cal-data = <&art 0x1000>;
271 mtd-mac-address = <&info 0x8>;
272 };