1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 label-mac-device = &wmac;
19 compatible = "gpio-leds";
22 label = "tp-link:green:power";
23 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
28 label = "tp-link:green:wlan";
29 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
30 linux,default-trigger = "phy0tpt";
34 label = "tp-link:green:qss";
35 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
39 label = "tp-link:green:wan";
40 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
44 label = "tp-link:green:lan1";
45 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
49 label = "tp-link:green:lan2";
50 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
54 label = "tp-link:green:lan3";
55 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
59 label = "tp-link:green:lan4";
60 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
66 clock-frequency = <25000000>;
74 pinctrl-names = "default";
75 pinctrl-0 = <&jtag_disable_pins &pmx_usb_power>;
79 pmx_usb_power: usb_power {
80 pinctrl-single,bits = <0x4 0x0 0xff>;
87 phy-handle = <&swphy0>;
89 mtd-mac-address = <&uboot 0x1fc00>;
90 mtd-mac-address-increment = <(-1)>;
94 mtd-mac-address = <&uboot 0x1fc00>;
98 switch-phy-swap = <1>;
105 mtd-cal-data = <&art 0x1000>;
106 mtd-mac-address = <&uboot 0x1fc00>;