generic: ar8216: fix unknown packet flooding for ar8229/ar8236
[oweals/openwrt.git] / target / linux / ath79 / dts / ar7242_ubnt_edgeswitch-8xp.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-8xp", "qca,ar7242";
8         model = "Ubiquiti EdgeSwitch 8XP";
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_48v_port1 {
20                         gpio-export,name = "ubnt:48v-poe:port1";
21                         gpio-export,output = <0>;
22                         gpios = <&gpio_hc595 0 GPIO_ACTIVE_HIGH>;
23                 };
24
25                 poe_24v_port2 {
26                         gpio-export,name = "ubnt:24v-poe:port2";
27                         gpio-export,output = <0>;
28                         gpios = <&gpio_hc595 3 GPIO_ACTIVE_HIGH>;
29                 };
30
31                 poe_48v_port2 {
32                         gpio-export,name = "ubnt:48v-poe:port2";
33                         gpio-export,output = <0>;
34                         gpios = <&gpio_hc595 2 GPIO_ACTIVE_HIGH>;
35                 };
36
37                 poe_24v_port3 {
38                         gpio-export,name = "ubnt:24v-poe:port3";
39                         gpio-export,output = <0>;
40                         gpios = <&gpio_hc595 5 GPIO_ACTIVE_HIGH>;
41                 };
42
43                 poe_48v_port3 {
44                         gpio-export,name = "ubnt:48v-poe:port3";
45                         gpio-export,output = <0>;
46                         gpios = <&gpio_hc595 4 GPIO_ACTIVE_HIGH>;
47                 };
48
49                 poe_24v_port4 {
50                         gpio-export,name = "ubnt:24v-poe:port4";
51                         gpio-export,output = <0>;
52                         gpios = <&gpio_hc595 7 GPIO_ACTIVE_HIGH>;
53                 };
54
55                 poe_48v_port4 {
56                         gpio-export,name = "ubnt:48v-poe:port4";
57                         gpio-export,output = <0>;
58                         gpios = <&gpio_hc595 6 GPIO_ACTIVE_HIGH>;
59                 };
60
61                 poe_24v_port5 {
62                         gpio-export,name = "ubnt:24v-poe:port5";
63                         gpio-export,output = <0>;
64                         gpios = <&gpio_hc595 9 GPIO_ACTIVE_HIGH>;
65                 };
66
67                 poe_48v_port5 {
68                         gpio-export,name = "ubnt:48v-poe:port5";
69                         gpio-export,output = <0>;
70                         gpios = <&gpio_hc595 8 GPIO_ACTIVE_HIGH>;
71                 };
72
73                 poe_24v_port6 {
74                         gpio-export,name = "ubnt:24v-poe:port6";
75                         gpio-export,output = <0>;
76                         gpios = <&gpio_hc595 11 GPIO_ACTIVE_HIGH>;
77                 };
78
79                 poe_48v_port6 {
80                         gpio-export,name = "ubnt:48v-poe:port6";
81                         gpio-export,output = <0>;
82                         gpios = <&gpio_hc595 10 GPIO_ACTIVE_HIGH>;
83                 };
84
85                 poe_24v_port7 {
86                         gpio-export,name = "ubnt:24v-poe:port7";
87                         gpio-export,output = <0>;
88                         gpios = <&gpio_hc595 13 GPIO_ACTIVE_HIGH>;
89                 };
90
91                 poe_48v_port7 {
92                         gpio-export,name = "ubnt:48v-poe:port7";
93                         gpio-export,output = <0>;
94                         gpios = <&gpio_hc595 12 GPIO_ACTIVE_HIGH>;
95                 };
96
97                 poe_24v_port8 {
98                         gpio-export,name = "ubnt:24v-poe:port8";
99                         gpio-export,output = <0>;
100                         gpios = <&gpio_hc595 15 GPIO_ACTIVE_HIGH>;
101                 };
102
103                 poe_48v_port8 {
104                         gpio-export,name = "ubnt:48v-poe:port8";
105                         gpio-export,output = <0>;
106                         gpios = <&gpio_hc595 14 GPIO_ACTIVE_HIGH>;
107                 };
108         };
109 };
110
111 &mdio0 {
112         status = "okay";
113
114         phy-mask = <0x10>;
115
116         ethernet-switch@1e {
117                 compatible = "brcm,bcm53128";
118                 #address-cells = <1>;
119                 #size-cells = <0>;
120                 reg = <0x1e>;
121
122                 ports {
123                         port0@0 {
124                                 reg = <0>;
125                                 label = "lan1";
126                         };
127
128                         port1@1 {
129                                 reg = <1>;
130                                 label = "lan2";
131                         };
132
133                         port2@2 {
134                                 reg = <2>;
135                                 label = "lan3";
136                         };
137
138                         port3@3 {
139                                 reg = <3>;
140                                 label = "lan4";
141                         };
142
143                         port4@4 {
144                                 reg = <4>;
145                                 label = "lan5";
146                         };
147
148                         port5@5 {
149                                 reg = <5>;
150                                 label = "lan6";
151                         };
152
153                         port6@6 {
154                                 reg = <6>;
155                                 label = "lan7";
156                         };
157
158                         port7@7 {
159                                 reg = <7>;
160                                 label = "lan8";
161                         };
162
163                         phy0: port8@8 {
164                                 reg = <8>;
165                                 label = "cpu";
166                                 ethernet = <&eth0>;
167
168                                 fixed-link {
169                                         speed = <1000>;
170                                         full-duplex;
171                                 };
172                         };
173
174                 };
175         };
176 };
177
178 &eth0 {
179         status = "okay";
180
181         phy-mode = "rgmii-rxid";
182         pll-data = <0x16000000 0x00000101 0x00001313>;
183         mtd-mac-address = <&art 0x0>;
184
185         phy-handle = <&phy0>;
186         fixed-link {
187                 speed = <1000>;
188                 full-duplex;
189         };
190 };