ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9561_tplink_tl-wdr6500-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.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 = "tplink,tl-wdr6500-v2", "qca,qca9561";
11 model = "TP-Link TL-WDR6500 v2";
12
13 aliases {
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 label-mac-device = &eth1;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "Reset button";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 lan4 {
35 label = "green:lan4";
36 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
37 };
38
39 lan3 {
40 label = "green:lan3";
41 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
42 };
43
44 lan2 {
45 label = "green:lan2";
46 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
47 };
48
49 lan1 {
50 label = "green:lan1";
51 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
52 };
53
54 wan {
55 function = LED_FUNCTION_WAN;
56 color = <LED_COLOR_ID_GREEN>;
57 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
58 };
59
60 led_system: system {
61 label = "white:system";
62 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
63 default-state = "on";
64 };
65 };
66 };
67
68 &spi {
69 status = "okay";
70
71 flash@0 {
72 compatible = "jedec,spi-nor";
73 reg = <0>;
74 spi-max-frequency = <25000000>;
75
76 partitions {
77 compatible = "fixed-partitions";
78 #address-cells = <1>;
79 #size-cells = <1>;
80
81 partition@0 {
82 label = "u-boot";
83 reg = <0x000000 0x010000>;
84 read-only;
85
86 nvmem-layout {
87 compatible = "fixed-layout";
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 macaddr_uboot_fc00: macaddr@fc00 {
92 compatible = "mac-base";
93 reg = <0xfc00 0x6>;
94 #nvmem-cell-cells = <1>;
95 };
96 };
97 };
98
99 partition@10000 {
100 compatible = "tplink,firmware";
101 label = "firmware";
102 reg = <0x010000 0x7e0000>;
103 };
104
105 partition@7f0000 {
106 label = "art";
107 reg = <0x7f0000 0x010000>;
108 read-only;
109
110 nvmem-layout {
111 compatible = "fixed-layout";
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 calibration_ath9k: calibration@1000 {
116 reg = <0x1000 0x440>;
117 };
118
119 calibration_ath10k: calibration@5000 {
120 reg = <0x5000 0x844>;
121 };
122 };
123 };
124 };
125 };
126 };
127
128 &uart {
129 status = "okay";
130 };
131
132 &pcie {
133 status = "okay";
134
135 wifi@0,0 {
136 compatible = "qcom,ath10k";
137 reg = <0 0 0 0 0>;
138
139 nvmem-cells = <&macaddr_uboot_fc00 (-2)>, <&calibration_ath10k>;
140 nvmem-cell-names = "mac-address", "calibration";
141 };
142 };
143
144 &mdio0 {
145 status = "okay";
146 };
147
148 &eth0 {
149 status = "okay";
150
151 phy-handle = <&swphy4>;
152
153 nvmem-cells = <&macaddr_uboot_fc00 1>;
154 nvmem-cell-names = "mac-address";
155 };
156
157 &eth1 {
158 status = "okay";
159
160 nvmem-cells = <&macaddr_uboot_fc00 0>;
161 nvmem-cell-names = "mac-address";
162 };
163
164 &wmac {
165 status = "okay";
166
167 nvmem-cells = <&macaddr_uboot_fc00 (-1)>, <&calibration_ath9k>;
168 nvmem-cell-names = "mac-address", "calibration";
169 };
170
171 &usb0 {
172 status = "okay";
173 };
174
175 &usb_phy0 {
176 status = "okay";
177 };