ath79: set &eth1 status for TP-Link CPE devices in parent DTSI
[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         mtd-mac-address = <&info 0x8>;
65
66         gmac-config {
67                 device = <&gmac>;
68                 switch-phy-swap = <0>;
69                 switch-only-mode = <1>;
70         };
71 };