ath79: drop and consolidate redundant chosen/bootargs
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9533_tplink_tl-wa850re-v2.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 "qca953x.dtsi"
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                         label = "tp-link:blue:lan";
29                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
30                 };
31
32                 led_re: re {
33                         label = "tp-link:blue:re";
34                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
35                 };
36
37                 signal1 {
38                         label = "tp-link:blue:signal1";
39                         gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
40                 };
41
42                 signal2 {
43                         label = "tp-link:blue:signal2";
44                         gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
45                 };
46
47                 signal3 {
48                         label = "tp-link:blue:signal3";
49                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
50                 };
51
52                 signal4 {
53                         label = "tp-link:blue:signal4";
54                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
55                 };
56
57                 led_signal5: signal5 {
58                         label = "tp-link:blue:signal5";
59                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
60                 };
61
62                 wlan {
63                         label = "tp-link:blue:wlan";
64                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
65                         linux,default-trigger = "phy0tpt";
66                 };
67         };
68
69         keys {
70                 compatible = "gpio-keys";
71
72                 reset {
73                         label = "Reset button";
74                         linux,code = <KEY_RESTART>;
75                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
76                 };
77
78                 wps {
79                         label = "WPS button";
80                         linux,code = <KEY_RFKILL>;
81                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
82                 };
83         };
84 };
85
86 &gpio {
87         led_enable {
88                 gpio-hog;
89                 gpios = <15 GPIO_ACTIVE_HIGH>;
90                 line-name = "tp-link:power:led";
91                 output-high;
92         };
93 };
94
95 &uart {
96         status = "okay";
97 };
98
99 &spi {
100         status = "okay";
101
102         num-cs = <1>;
103
104         flash@0 {
105                 #address-cells = <1>;
106                 #size-cells = <1>;
107                 compatible = "jedec,spi-nor";
108                 reg = <0>;
109                 spi-max-frequency = <25000000>;
110
111                 partitions {
112                         compatible = "fixed-partitions";
113                         #address-cells = <1>;
114                         #size-cells = <1>;
115
116                         partition@0 {
117                                 label = "u-boot";
118                                 reg = <0x000000 0x020000>;
119                                 read-only;
120                         };
121
122                         partition@20000 {
123                                 label = "firmware";
124                                 reg = <0x020000 0x390000>;
125                                 compatible = "tplink,firmware";
126                         };
127
128                         config: partition@3b0000 {
129                                 label = "config";
130                                 reg = <0x3b0000 0x040000>;
131                                 read-only;
132                         };
133
134                         art: partition@3f0000 {
135                                 label = "art";
136                                 reg = <0x3f0000 0x010000>;
137                                 read-only;
138                         };
139                 };
140         };
141 };
142
143 &wmac {
144         status = "okay";
145
146         mtd-cal-data = <&art 0x1000>;
147         mtd-mac-address = <&config 0x10008>;
148 };
149
150 &eth0 {
151         status = "okay";
152
153         phy-handle = <&swphy4>;
154
155         mtd-mac-address = <&config 0x10008>;
156 };
157
158 &eth1 {
159         compatible = "syscon", "simple-mfd";
160 };