generic: ar8216: fix unknown packet flooding for ar8229/ar8236
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9531_tplink_tl-wr902ac-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,tl-wr902ac-v1", "qca,qca9531";
11         model = "TP-Link TL-WR902AC v1";
12
13         aliases {
14                 led-boot = &led_power;
15                 led-failsafe = &led_power;
16                 led-running = &led_power;
17                 led-upgrade = &led_power;
18                 label-mac-device = &wmac;
19         };
20
21         chosen {
22                 bootargs = "console=ttyS0,115200n8";
23         };
24
25         leds {
26                 compatible = "gpio-leds";
27
28                 led_power: power {
29                         label = "tp-link:green:power";
30                         gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
31                         default-state = "on";
32                 };
33
34                 internet {
35                         label = "tp-link:green:internet";
36                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
37                 };
38
39                 wlan2g {
40                         label = "tp-link:green:wlan2g";
41                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
42                         linux,default-trigger = "phy0tpt";
43                 };
44
45                 usb {
46                         label = "tp-link:green:usb";
47                         gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
48                         trigger-sources = <&hub_port0>;
49                         linux,default-trigger = "usbport";
50                 };
51
52                 wps {
53                         label = "tp-link:green:wps";
54                         gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
55                 };
56
57                 lan {
58                         label = "tp-link:green:lan";
59                         gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
60                 };
61         };
62
63         keys {
64                 compatible = "gpio-keys";
65
66                 reset {
67                         label = "Reset button";
68                         linux,code = <KEY_RESTART>;
69                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
70                 };
71
72                 wps {
73                         label = "WPS button";
74                         linux,code = <KEY_WPS_BUTTON>;
75                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
76                 };
77
78                 sw1 {
79                         label = "Mode switch 1";
80                         linux,code = <BTN_0>;
81                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
82                 };
83
84                 sw2 {
85                         label = "Mode switch 2";
86                         linux,code = <BTN_1>;
87                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
88                 };
89         };
90
91         gpio-export {
92                 compatible = "gpio-export";
93
94                 gpio_usb_power {
95                         gpio-export,name = "tp-link:power:usb";
96                         gpio-export,output = <1>;
97                         gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
98                 };
99         };
100 };
101
102 &uart {
103         status = "okay";
104 };
105
106 &spi {
107         status = "okay";
108
109         flash@0 {
110                 compatible = "jedec,spi-nor";
111                 reg = <0>;
112                 spi-max-frequency = <25000000>;
113
114                 partitions {
115                         compatible = "fixed-partitions";
116                         #address-cells = <1>;
117                         #size-cells = <1>;
118
119                         partition@0 {
120                                 label = "u-boot";
121                                 reg = <0x000000 0x020000>;
122                                 read-only;
123                         };
124
125                         partition@20000 {
126                                 compatible = "tplink,firmware";
127                                 label = "firmware";
128                                 reg = <0x020000 0x730000>;
129                         };
130
131                         tplink: partition@750000 {
132                                 label = "tplink";
133                                 reg = <0x750000 0x0a0000>;
134                                 read-only;
135                         };
136
137                         art: partition@7f0000 {
138                                 label = "art";
139                                 reg = <0x7f0000 0x010000>;
140                                 read-only;
141                         };
142                 };
143         };
144 };
145
146 &eth0 {
147         status = "okay";
148
149         phy-handle = <&swphy4>;
150
151         mtd-mac-address = <&tplink 0x8>;
152         mtd-mac-address-increment = <1>;
153 };
154
155 &eth1 {
156         compatible = "syscon", "simple-mfd";
157 };
158
159 &wmac {
160         status = "okay";
161
162         mtd-cal-data = <&art 0x1000>;
163         mtd-mac-address = <&tplink 0x8>;
164 };
165
166 &pcie0 {
167         status = "okay";
168
169         wifi@0,0 {
170                 compatible = "pci168c,0050";
171                 reg = <0x0000 0 0 0 0>;
172         };
173 };
174
175 &usb_phy {
176         status = "okay";
177 };
178
179 &usb0 {
180         #address-cells = <1>;
181         #size-cells = <0>;
182         status = "okay";
183
184         hub_port0: port@1 {
185                 reg = <1>;
186                 #trigger-source-cells = <0>;
187         };
188 };