generic: ar8216: fix unknown packet flooding for ar8229/ar8236
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9533_comfast_cf-e110n-v2.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-e110n-v2", "qca,qca9533";
11         model = "COMFAST CF-E110N v2";
12
13         aliases {
14                 serial0 = &uart;
15                 led-boot = &led_rssihigh;
16                 led-failsafe = &led_rssihigh;
17                 led-upgrade = &led_rssihigh;
18         };
19
20         leds {
21                 compatible = "gpio-leds";
22
23                 pinctrl-names = "default";
24                 pinctrl-0 = <&jtag_disable_pins &led_rssilow_pin &led_rssimediumhigh_pin &led_rssihigh_pin>;
25
26                 wan {
27                         label = "cf-e110n-v2:green:wan";
28                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
29                 };
30
31                 lan {
32                         label = "cf-e110n-v2:green:lan";
33                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
34                 };
35
36                 rssilow {
37                         label = "cf-e110n-v2:red:rssilow";
38                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
39                 };
40
41                 rssimediumlow {
42                         label = "cf-e110n-v2:red:rssimediumlow";
43                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
44                 };
45
46                 rssimediumhigh {
47                         label = "cf-e110n-v2:green:rssimediumhigh";
48                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
49                 };
50
51                 led_rssihigh: rssihigh {
52                         label = "cf-e110n-v2:green:rssihigh";
53                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
54                 };
55         };
56
57         ath9k-leds {
58                 compatible = "gpio-leds";
59
60                 wlan {
61                         label = "cf-e110n-v2:green:wlan";
62                         gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
63                         linux,default-trigger = "phy0tpt";
64                 };
65         };
66
67         keys {
68                 compatible = "gpio-keys";
69
70                 reset {
71                         label = "reset";
72                         linux,code = <KEY_RESTART>;
73                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
74                         debounce-interval = <60>;
75                 };
76         };
77 };
78
79 &pinmux {
80         led_rssilow_pin: pinmux_rssilow_pin {
81                 pinctrl-single,bits = <0x8 0x0 0xff000000>;
82         };
83
84         led_rssimediumhigh_pin: pinmux_rssimediumhigh_pin {
85                 pinctrl-single,bits = <0xc 0x0 0x00ff0000>;
86         };
87
88         led_rssihigh_pin: pinmux_rssihigh_pin {
89                 pinctrl-single,bits = <0x10 0x0 0x000000ff>;
90         };
91 };
92
93 &spi {
94         status = "okay";
95
96         num-cs = <1>;
97
98         flash@0 {
99                 compatible = "winbond,w25q128", "jedec,spi-nor";
100                 reg = <0>;
101                 spi-max-frequency = <25000000>;
102
103                 partitions {
104                         compatible = "fixed-partitions";
105                         #address-cells = <1>;
106                         #size-cells = <1>;
107
108                         partition@0 {
109                                 label = "u-boot";
110                                 reg = <0x000000 0x010000>;
111                                 read-only;
112                         };
113
114                         art: partition@10000 {
115                                 label = "art";
116                                 reg = <0x010000 0x010000>;
117                                 read-only;
118                         };
119
120                         partition@20000 {
121                                 compatible = "denx,uimage";
122                                 label = "firmware";
123                                 reg = <0x020000 0xfd0000>;
124                         };
125
126                         partition@ff0000 {
127                                 label = "nvram";
128                                 reg = <0xff0000 0x010000>;
129                                 read-only;
130                         };
131                 };
132         };
133 };
134
135 &uart {
136         status = "okay";
137 };
138
139 &eth0 {
140         status = "okay";
141
142         mtd-mac-address = <&art 0x0>;
143         phy-handle = <&swphy4>;
144 };
145
146 &eth1 {
147         status = "okay";
148
149         mtd-mac-address = <&art 0x1002>;
150
151         gmac-config {
152                 device = <&gmac>;
153         };
154 };
155
156 &wmac {
157         status = "okay";
158
159         mtd-cal-data = <&art 0x1000>;
160         mtd-mac-address = <&art 0x6>;
161 };