generic: ar8216: fix unknown packet flooding for ar8229/ar8236
[oweals/openwrt.git] / target / linux / ath79 / dts / ar7242_ubnt_edgeswitch-5xp.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "ar7242_ubnt_sw.dtsi"
5
6 / {
7         compatible = "ubnt,edgeswitch-5xp", "qca,ar7242";
8         model = "Ubiquiti EdgeSwitch 5XP";
9
10         gpio-export {
11                 compatible = "gpio-export";
12
13                 poe_24v_port1 {
14                         gpio-export,name = "ubnt:24v-poe:port1";
15                         gpio-export,output = <0>;
16                         gpios = <&gpio_hc595 1 GPIO_ACTIVE_HIGH>;
17                 };
18
19                 poe_24v_port2 {
20                         gpio-export,name = "ubnt:24v-poe:port2";
21                         gpio-export,output = <0>;
22                         gpios = <&gpio_hc595 3 GPIO_ACTIVE_HIGH>;
23                 };
24
25                 poe_24v_port3 {
26                         gpio-export,name = "ubnt:24v-poe:port3";
27                         gpio-export,output = <0>;
28                         gpios = <&gpio_hc595 5 GPIO_ACTIVE_HIGH>;
29                 };
30
31                 poe_24v_port4 {
32                         gpio-export,name = "ubnt:24v-poe:port4";
33                         gpio-export,output = <0>;
34                         gpios = <&gpio_hc595 7 GPIO_ACTIVE_HIGH>;
35                 };
36
37                 poe_24v_port5 {
38                         gpio-export,name = "ubnt:24v-poe:port5";
39                         gpio-export,output = <0>;
40                         gpios = <&gpio_hc595 9 GPIO_ACTIVE_HIGH>;
41                 };
42         };
43 };
44
45 &mdio0 {
46         status = "okay";
47
48         phy0: ethernet-switch@0 {
49                 compatible = "qca,ar8327";
50                 reg = <0x0>;
51
52                 qca,ar8327-initvals = <
53                         0x04 0x05100000 /* PORT0 PAD MODE CTRL */
54                         0x0c 0x05100000 /* PORT6 PAD MODE CTRL */
55                         0x50 0x40004000 /* LED_CTRL0 */
56                         0x54 0x40004000 /* LED_CTRL1 */
57                         0x58 0x40004000 /* LED_CTRL2 */
58                         0x5c 0x03ffff00 /* LED_CTRL3 */
59                         0x7c 0x0000007e /* PORT0_STATUS */
60                         0x94 0x0000007e /* PORT6_STATUS */
61                 >;
62         };
63 };
64
65 &eth0 {
66         status = "okay";
67
68         phy-handle = <&phy0>;
69         phy-mode = "rgmii";
70
71         mtd-mac-address = <&art 0x0>;
72
73         fixed-link {
74                 speed = <1000>;
75                 full-duplex;
76         };
77 };