generic: ar8216: fix unknown packet flooding for ar8229/ar8236
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9344_tplink_cpe_2port.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344_tplink_cpe.dtsi"
4
5 / {
6         aliases {
7                 led-boot = &led_link4;
8                 led-failsafe = &led_link4;
9                 led-running = &led_link4;
10                 led-upgrade = &led_link4;
11         };
12
13         leds {
14                 compatible = "gpio-leds";
15
16                 lan0 {
17                         label = "tp-link:green:lan0";
18                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
19                 };
20
21                 lan1 {
22                         label = "tp-link:green:lan1";
23                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
24                 };
25
26                 link1 {
27                         label = "tp-link:green:link1";
28                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
29                 };
30
31                 link2 {
32                         label = "tp-link:green:link2";
33                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
34                 };
35
36                 link3 {
37                         label = "tp-link:green:link3";
38                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
39                 };
40
41                 led_link4: link4 {
42                         label = "tp-link:green:link4";
43                 };
44         };
45 };
46
47 &gpio {
48         gpio_ext_lna0 {
49                 gpio-hog;
50                 gpios = <18 0>;
51                 output-high;
52                 line-name = "tp-link:ext:lna0";
53         };
54
55         gpio_ext_lna1 {
56                 gpio-hog;
57                 gpios = <19 0>;
58                 output-high;
59                 line-name = "tp-link:ext:lna1";
60         };
61 };
62
63 &eth1 {
64         status = "okay";
65
66         mtd-mac-address = <&info 0x8>;
67
68         gmac-config {
69                 device = <&gmac>;
70                 switch-phy-swap = <0>;
71                 switch-only-mode = <1>;
72         };
73 };