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