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