generic: ar8216: fix unknown packet flooding for ar8229/ar8236
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9531_comfast_cf-ew72.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 = "comfast,cf-ew72", "qca,qca9531";
11         model = "COMFAST CF-EW72";
12
13         aliases {
14                 serial0 = &uart;
15                 led-boot = &led_wan;
16                 led-failsafe = &led_wan;
17                 led-upgrade = &led_wan;
18         };
19
20         leds {
21                 compatible = "gpio-leds";
22
23                 pinctrl-names = "default";
24                 pinctrl-0 = <&jtag_disable_pins>;
25
26                 lan {
27                         label = "cf-ew72:blue:lan";
28                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
29                 };
30
31                 led_wan: wan {
32                         label = "cf-ew72:blue:wan";
33                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
34                 };
35
36                 wlan {
37                         label = "cf-ew72:blue:wlan";
38                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
39                         linux,default-trigger = "phy0tpt";
40                 };
41         };
42
43         keys {
44                 compatible = "gpio-keys";
45
46                 reset {
47                         label = "reset";
48                         linux,code = <KEY_RESTART>;
49                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
50                         debounce-interval = <60>;
51                 };
52         };
53
54         watchdog {
55                 compatible = "linux,wdt-gpio";
56
57                 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
58                 hw_algo = "toggle";
59                 hw_margin_ms = <1200>;
60                 always-running;
61         };
62 };
63
64 &pcie0 {
65         status = "okay";
66 };
67
68 &spi {
69         status = "okay";
70
71         num-cs = <1>;
72
73         flash@0 {
74                 compatible = "winbond,w25q128", "jedec,spi-nor";
75                 reg = <0>;
76                 spi-max-frequency = <25000000>;
77
78                 partitions {
79                         compatible = "fixed-partitions";
80                         #address-cells = <1>;
81                         #size-cells = <1>;
82
83                         partition@0 {
84                                 label = "u-boot";
85                                 reg = <0x000000 0x010000>;
86                                 read-only;
87                         };
88
89                         art: partition@10000 {
90                                 label = "art";
91                                 reg = <0x010000 0x010000>;
92                                 read-only;
93                         };
94
95                         partition@20000 {
96                                 compatible = "denx,uimage";
97                                 label = "firmware";
98                                 reg = <0x020000 0xfd0000>;
99                         };
100
101                         partition@ff0000 {
102                                 label = "nvram";
103                                 reg = <0xff0000 0x010000>;
104                                 read-only;
105                         };
106                 };
107         };
108 };
109
110 &uart {
111         status = "okay";
112 };
113
114 &eth0 {
115         status = "okay";
116
117         phy-handle = <&swphy4>;
118         mtd-mac-address = <&art 0x0>;
119         mtd-mac-address-increment = <1>;
120 };
121
122 &eth1 {
123         mtd-mac-address = <&art 0x0>;
124 };
125
126 &wmac {
127         status = "okay";
128
129         mtd-cal-data = <&art 0x1000>;
130         mtd-mac-address = <&art 0x0>;
131         mtd-mac-address-increment = <3>;
132 };