ath79: etactica-eg200: fix restore button
[openwrt/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 = &system;
9 led-failsafe = &system;
10 led-running = &system;
11 led-upgrade = &system;
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 system: link4 {
43 label = "tp-link:green:link4";
44 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
45 };
46 };
47 };
48
49 &gpio {
50 gpio_ext_lna0 {
51 gpio-hog;
52 gpios = <18 0>;
53 output-high;
54 line-name = "tp-link:ext:lna0";
55 };
56
57 gpio_ext_lna1 {
58 gpio-hog;
59 gpios = <19 0>;
60 output-high;
61 line-name = "tp-link:ext:lna1";
62 };
63 };
64
65 &eth1 {
66 status = "okay";
67
68 mtd-mac-address = <&info 0x8>;
69
70 gmac-config {
71 device = <&gmac>;
72 switch-phy-swap = <0>;
73 switch-only-mode = <1>;
74 };
75 };
76
77 &eth0 {
78 status = "okay";
79
80 phy-handle = <&swphy4>;
81
82 mtd-mac-address = <&info 0x8>;
83 };