ath79: drop and consolidate redundant chosen/bootargs
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9531_tplink_archer-d50-v1.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,archer-d50-v1", "qca,qca9531";
11         model = "TP-Link Archer D50 v1";
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 = &wmac;
19         };
20
21         leds {
22                 compatible = "gpio-leds";
23
24                 wlan2g {
25                         label = "tp-link:white:wlan2g";
26                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
27                         linux,default-trigger = "phy0tpt";
28                 };
29
30                 wlan5g {
31                         label = "tp-link:white:wlan5g";
32                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
33                         linux,default-trigger = "phy1tpt";
34                 };
35
36                 qss {
37                         label = "tp-link:white:qss";
38                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
39                 };
40
41                 wan {
42                         label = "tp-link:white:wan";
43                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
44                 };
45
46                 lan {
47                         label = "tp-link:white:lan";
48                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
49                 };
50
51                 usb {
52                         label = "tp-link:white:usb";
53                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
54                         trigger-sources = <&hub_port0>;
55                         linux,default-trigger = "usbport";
56                 };
57
58                 internet {
59                         label = "tp-link:white:internet";
60                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
61                 };
62
63                 led_system: system {
64                         label = "tp-link:white:system";
65                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
66                         default-state = "on";
67                 };
68         };
69
70         keys {
71                 compatible = "gpio-keys";
72
73                 reset {
74                         label = "Reset button";
75                         linux,code = <KEY_RESTART>;
76                         gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
77                 };
78
79                 rfkill {
80                         label = "RFKILL button";
81                         linux,code = <KEY_RFKILL>;
82                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
83                 };
84
85                 wps {
86                         label = "WPS button";
87                         linux,code = <KEY_WPS_BUTTON>;
88                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
89                 };
90         };
91 };
92
93 &uart {
94         status = "okay";
95 };
96
97 &spi {
98         status = "okay";
99
100         flash@0 {
101                 compatible = "jedec,spi-nor";
102                 reg = <0>;
103                 spi-max-frequency = <10000000>;
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                                 compatible = "tplink,firmware";
118                                 label = "firmware";
119                                 reg = <0x020000 0x7a0000>;
120                         };
121
122                         partition@7c0000 {
123                                 label = "config";
124                                 reg = <0x7c0000 0x010000>;
125                                 read-only;
126                         };
127
128                         romfile: partition@7d0000 {
129                                 label = "romfile";
130                                 reg = <0x7d0000 0x010000>;
131                                 read-only;
132                         };
133
134                         partition@7e0000 {
135                                 label = "rom";
136                                 reg = <0x7e0000 0x010000>;
137                                 read-only;
138                         };
139
140                         art: partition@7f0000 {
141                                 label = "art";
142                                 reg = <0x7f0000 0x010000>;
143                                 read-only;
144                         };
145                 };
146         };
147 };
148
149 &eth1 {
150         mtd-mac-address = <&romfile 0xf100>;
151 };
152
153 &eth0 {
154         status = "okay";
155
156         phy-handle = <&swphy4>;
157
158         mtd-mac-address = <&romfile 0xf100>;
159         mtd-mac-address-increment = <1>;
160 };
161
162 &wmac {
163         status = "okay";
164
165         mtd-cal-data = <&art 0x1000>;
166         mtd-mac-address = <&romfile 0xf100>;
167 };
168
169 &pcie0 {
170         status = "okay";
171
172         wifi@0,0 {
173                 compatible = "pci168c,003c";
174                 reg = <0x0000 0 0 0 0>;
175         };
176 };
177
178 &usb_phy {
179         status = "okay";
180 };
181
182 &usb0 {
183         #address-cells = <1>;
184         #size-cells = <0>;
185         status = "okay";
186
187         hub_port0: port@1 {
188                 reg = <1>;
189                 #trigger-source-cells = <0>;
190         };
191 };