generic: ar8216: fix unknown packet flooding for ar8229/ar8236
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9344_zbtlink_zbt-wd323.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 "ar9344.dtsi"
8
9 / {
10         model = "ZBT WD323";
11         compatible = "zbtlink,zbt-wd323", "qca,ar9344";
12
13         keys {
14                 compatible = "gpio-keys";
15
16                 reset {
17                         label = "reset";
18                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
19                         linux,code = <KEY_RESTART>;
20                 };
21         };
22
23         i2c {
24                 compatible = "i2c-gpio";
25                 #address-cells = <1>;
26                 #size-cells = <0>;
27
28                 pinctrl-names = "default";
29                 pinctrl-0 = <&enable_gpio15 &enable_gpio19>;
30
31                 sda-gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
32                 scl-gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
33
34                 /* can be removed on 4.19 */
35                 gpios = <&gpio 19 GPIO_ACTIVE_LOW>,
36                         <&gpio 15 GPIO_ACTIVE_LOW>;
37
38                 pcf8563: pcf8563@51 {
39                         compatible = "nxp,pcf8563";
40                         reg = <0x51>;
41                         #clock-cells = <0>;
42                 };
43         };
44
45         leds {
46                 compatible = "gpio-leds";
47
48                 pinctrl-names = "default";
49                 pinctrl-0 = <&enable_gpio20_gpio22>;
50
51                 wifi {
52                         label = "zbt-wd323:green:wifi";
53                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
54                         linux,default-trigger = "phy0tpt";
55                 };
56
57                 lan1 {
58                         label = "zbt-wd323:orange:lan1";
59                         gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
60                 };
61
62                 lan2 {
63                         label = "zbt-wd323:orange:lan2";
64                         gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
65                 };
66         };
67 };
68
69 &wdt {
70         status = "okay";
71
72         pinctrl-names = "default";
73         pinctrl-0 = <&enable_gpio21>;
74 };
75
76 &uart {
77         status = "okay";
78 };
79
80 &gpio {
81         status = "okay";
82
83         pinctrl-names = "default";
84         pinctrl-0 = <&jtag_disable_pins>;
85 };
86
87 &usb {
88         status = "okay";
89 };
90
91 &usb_phy {
92         status = "okay";
93 };
94
95 &eth0 {
96         status = "okay";
97         phy-handle = <&swphy4>;
98         mtd-mac-address = <&art 0x0>;
99 };
100
101 &eth1 {
102         status = "okay";
103         mtd-mac-address = <&art 0x6>;
104 };
105
106 &spi {
107         num-chipselects = <1>;
108         status = "okay";
109
110         flash@0 {
111                 compatible = "jedec,spi-nor";
112                 spi-max-frequency = <22000000>;
113                 reg = <0>;
114
115                 partitions {
116                         compatible = "fixed-partitions";
117                         #address-cells = <1>;
118                         #size-cells = <1>;
119
120                         uboot@0 {
121                                 reg = <0x0 0x40000>;
122                                 read-only;
123                         };
124
125                         uboot-env@40000 {
126                                 reg = <0x40000 0x10000>;
127                                 read-only;
128                         };
129
130                         firmware@50000 {
131                                 compatible = "denx,uimage";
132                                 reg = <0x50000 0xfa0000>;
133                         };
134
135                         art: art@ff0000 {
136                                 reg = <0xff0000 0x10000>;
137                                 read-only;
138                         };
139                 };
140         };
141 };
142
143 &wmac {
144         status = "okay";
145         mtd-cal-data = <&art 0x1000>;
146 };
147
148 &pinmux {
149         enable_gpio15: pinmux_enable_gpio15 {
150                 pinctrl-single,bits = <0xc 0x0 0xff000000>;
151         };
152
153         enable_gpio19: pinmux_enable_gpio19 {
154                 pinctrl-single,bits = <0x10 0x0 0xff000000>;
155         };
156
157         enable_gpio20_gpio22: pinmux_enable_gpio20_gpio22 {
158                 pinctrl-single,bits = <0x14 0x0 0xff00ff>;
159         };
160
161         enable_gpio21: pinmux_enable_gpio21 {
162                 pinctrl-single,bits = <0x14 0x0 0xff00>;
163         };
164 };