generic: ar8216: fix unknown packet flooding for ar8229/ar8236
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9331_tplink_tl-wr710n-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 "ar9331.dtsi"
8
9 / {
10         model = "TP-Link TL-WR710N v1";
11         compatible = "tplink,tl-wr710n-v1", "qca,ar9331";
12
13         aliases {
14                 serial0 = &uart;
15                 led-boot = &led_system;
16                 led-failsafe = &led_system;
17                 led-running = &led_system;
18                 led-upgrade = &led_system;
19                 label-mac-device = &eth0;
20         };
21
22         keys {
23                 compatible = "gpio-keys";
24
25                 reset {
26                         label = "reset";
27                         linux,code = <KEY_RESTART>;
28                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
29                         debounce-interval = <60>;
30                 };
31         };
32
33         leds {
34                 compatible = "gpio-leds";
35
36                 led_system: system {
37                         label = "tl-wr710n:green:system";
38                         gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
39                 };
40         };
41
42         reg_usb_vbus: regulator {
43                 compatible = "regulator-fixed";
44                 regulator-name = "usb_vbus";
45                 regulator-min-microvolt = <5000000>;
46                 regulator-max-microvolt = <5000000>;
47                 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
48                 enable-active-high;
49         };
50 };
51
52 &spi {
53         status = "okay";
54         num-cs = <1>;
55
56         flash@0 {
57                 compatible = "jedec,spi-nor";
58                 reg = <0>;
59                 spi-max-frequency = <25000000>;
60
61                 partitions {
62                         compatible = "fixed-partitions";
63                         #address-cells = <1>;
64                         #size-cells = <1>;
65
66                         uboot: partition@0 {
67                                 reg = <0x0 0x20000>;
68                                 label = "u-boot";
69                                 read-only;
70                         };
71
72                         firmware: partition@20000 {
73                                 compatible = "tplink,firmware";
74                                 reg = <0x20000 0x7d0000>;
75                                 label = "firmware";
76                         };
77
78                         art: partition@7f0000 {
79                                 reg = <0x7f0000 0x10000>;
80                                 label = "art";
81                                 read-only;
82                         };
83                 };
84         };
85 };
86
87 &eth0 {
88         status = "okay";
89
90         mtd-mac-address = <&uboot 0x1fc00>;
91
92         gmac-config {
93                 device = <&gmac>;
94
95                 switch-phy-addr-swap = <0>;
96                 switch-phy-swap = <0>;
97         };
98 };
99
100 &eth1 {
101         status = "okay";
102
103         mtd-mac-address = <&uboot 0x1fc00>;
104         mtd-mac-address-increment = <(-1)>;
105 };
106
107 &gpio {
108         status = "okay";
109 };
110
111 &uart {
112         status = "okay";
113 };
114
115 &usb {
116         dr_mode = "host";
117         vbus-supply = <&reg_usb_vbus>;
118         status = "okay";
119 };
120
121 &usb_phy {
122         status = "okay";
123 };
124
125 &wmac {
126         status = "okay";
127         mtd-cal-data = <&art 0x1000>;
128         mtd-mac-address = <&uboot 0x1fc00>;
129 };