generic: ar8216: fix unknown packet flooding for ar8229/ar8236
[oweals/openwrt.git] / target / linux / ath79 / dts / ar7240_netgear_wnr612-v2.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "ar7240.dtsi"
7
8 / {
9         aliases {
10                 led-boot = &led_power;
11                 led-failsafe = &led_power;
12                 led-running = &led_power;
13                 led-upgrade = &led_power;
14                 label-mac-device = &eth1;
15         };
16
17         ath9k-keys {
18                 compatible = "gpio-keys-polled";
19                 poll-interval = <20>;
20
21                 reset {
22                         label = "reset";
23                         linux,code = <KEY_RESTART>;
24                         gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
25                         debounce-interval = <60>;
26                 };
27         };
28
29         leds {
30                 compatible = "gpio-leds";
31
32                 pinctrl-names = "default";
33                 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
34
35                 led_power: power {
36                         label = "netgear:green:power";
37                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
38                 };
39
40                 lan1 {
41                         label = "netgear:green:lan1";
42                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43                 };
44
45                 lan2 {
46                         label = "netgear:green:lan2";
47                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
48                 };
49
50                 wan {
51                         label = "netgear:green:wan";
52                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
53                 };
54         };
55
56         ath9k-leds {
57                 compatible = "gpio-leds";
58
59                 wlan {
60                         label = "netgear:green:wlan";
61                         gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
62                         linux,default-trigger = "phy0tpt";
63                 };
64         };
65 };
66
67 &spi {
68         status = "okay";
69
70         num-cs = <1>;
71
72         flash@0 {
73                 compatible = "jedec,spi-nor";
74                 reg = <0>;
75                 spi-max-frequency = <25000000>;
76
77                 partitions {
78                         compatible = "fixed-partitions";
79                         #address-cells = <1>;
80                         #size-cells = <1>;
81
82                         partition@0 {
83                                 reg = <0x0 0x40000>;
84                                 label = "u-boot";
85                                 read-only;
86                         };
87
88                         partition@40000 {
89                                 reg = <0x40000 0x10000>;
90                                 label = "u-boot-env";
91                         };
92
93                         partition@50000 {
94                                 compatible = "netgear,uimage";
95                                 reg = <0x50000 0x3a0000>;
96                                 label = "firmware";
97                         };
98
99                         art: partition@3f0000 {
100                                 reg = <0x3f0000 0x10000>;
101                                 label = "art";
102                                 read-only;
103                         };
104                 };
105         };
106 };
107
108 &eth0 {
109         status = "okay";
110
111         mtd-mac-address = <&art 0x0>;
112 };
113
114 &eth1 {
115         status = "okay";
116
117         mtd-mac-address = <&art 0x6>;
118 };
119
120 &pcie {
121         status = "okay";
122
123         ath9k: wifi@0,0 {
124                 compatible = "pci168c,002b";
125                 reg = <0x0000 0 0 0 0>;
126                 mtd-mac-address = <&art 0x0>;
127                 mtd-mac-address-increment = <1>;
128                 qca,no-eeprom;
129                 #gpio-cells = <2>;
130                 gpio-controller;
131         };
132 };
133
134 &uart {
135         status = "okay";
136 };