ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9533_tplink_tl-wa850re-v2.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 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "tplink,tl-wa850re-v2", "qca,qca9533";
11 model = "TP-Link TL-WA850RE v2";
12
13 aliases {
14 led-boot = &led_re;
15 led-failsafe = &led_re;
16 led-running = &led_re;
17 led-upgrade = &led_re;
18 label-mac-device = &wmac;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 pinctrl-names = "default";
25 pinctrl-0 = <&jtag_disable_pins>;
26
27 lan {
28 function = LED_FUNCTION_LAN;
29 color = <LED_COLOR_ID_BLUE>;
30 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
31 };
32
33 led_re: re {
34 label = "blue:re";
35 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
36 };
37
38 signal1 {
39 label = "blue:signal1";
40 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
41 };
42
43 signal2 {
44 label = "blue:signal2";
45 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
46 };
47
48 signal3 {
49 label = "blue:signal3";
50 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
51 };
52
53 signal4 {
54 label = "blue:signal4";
55 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
56 };
57
58 led_signal5: signal5 {
59 label = "blue:signal5";
60 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
61 };
62
63 wlan {
64 function = LED_FUNCTION_WLAN;
65 color = <LED_COLOR_ID_BLUE>;
66 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
67 linux,default-trigger = "phy0tpt";
68 };
69 };
70
71 keys {
72 compatible = "gpio-keys";
73
74 reset {
75 label = "Reset button";
76 linux,code = <KEY_RESTART>;
77 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
78 };
79
80 wps {
81 label = "WPS button";
82 linux,code = <KEY_RFKILL>;
83 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
84 };
85 };
86 };
87
88 &gpio {
89 led_enable {
90 gpio-hog;
91 gpios = <15 GPIO_ACTIVE_HIGH>;
92 line-name = "tp-link:power:led";
93 output-high;
94 };
95 };
96
97 &spi {
98 status = "okay";
99
100 flash@0 {
101 compatible = "jedec,spi-nor";
102 reg = <0>;
103 spi-max-frequency = <25000000>;
104
105 partitions {
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
108 #size-cells = <1>;
109
110 partition@0 {
111 label = "u-boot";
112 reg = <0x000000 0x020000>;
113 read-only;
114 };
115
116 partition@20000 {
117 label = "firmware";
118 reg = <0x020000 0x390000>;
119 compatible = "tplink,firmware";
120 };
121
122 partition@3b0000 {
123 label = "partition-table";
124 reg = <0x3b0000 0x010000>;
125 read-only;
126 };
127
128 info: partition@3c0000 {
129 label = "info";
130 reg = <0x3c0000 0x010000>;
131 read-only;
132
133 nvmem-layout {
134 compatible = "fixed-layout";
135 #address-cells = <1>;
136 #size-cells = <1>;
137
138 macaddr_info_8: macaddr@8 {
139 reg = <0x8 0x6>;
140 };
141 };
142 };
143
144 partition@3d0000 {
145 label = "config";
146 reg = <0x3d0000 0x020000>;
147 read-only;
148 };
149
150 art: partition@3f0000 {
151 label = "art";
152 reg = <0x3f0000 0x010000>;
153 read-only;
154 };
155 };
156 };
157 };
158
159 &eth0 {
160 status = "okay";
161
162 phy-handle = <&swphy4>;
163
164 nvmem-cells = <&macaddr_info_8>;
165 nvmem-cell-names = "mac-address";
166 };
167
168 &eth1 {
169 compatible = "syscon", "simple-mfd";
170 };
171
172 &wmac {
173 status = "okay";
174
175 mtd-cal-data = <&art 0x1000>;
176 nvmem-cells = <&macaddr_info_8>;
177 nvmem-cell-names = "mac-address";
178 };