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