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>
6 #include "qca956x.dtsi"
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 label-mac-device = &wmac;
18 compatible = "gpio-leds";
21 label = "tp-link:green:system";
22 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
23 linux,default-trigger = "heartbeat";
27 label = "tp-link:green:wlan";
28 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
29 linux,default-trigger = "phy0tpt";
33 label = "tp-link:green:wps";
34 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
38 label = "tp-link:green:wan";
39 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
43 label = "tp-link:orange:wan";
44 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
48 label = "tp-link:green:lan1";
49 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
53 label = "tp-link:green:lan2";
54 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
58 label = "tp-link:green:lan3";
59 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
63 label = "tp-link:green:lan4";
64 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
69 compatible = "gpio-keys";
72 label = "Reset button";
73 linux,code = <KEY_RESTART>;
74 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
75 debounce-interval = <60>;
79 label = "RFKILL button";
80 linux,code = <KEY_RFKILL>;
81 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
82 debounce-interval = <60>;
99 phy0: ethernet-phy@0 {
102 qca,mib-poll-interval = <500>;
104 qca,ar8327-initvals = <
105 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
106 0x7c 0x0000007e /* PORT0_STATUS */
114 mtd-mac-address = <&info 0x8>;
116 phy-handle = <&phy0>;
122 mtd-cal-data = <&art 0x1000>;
123 mtd-mac-address = <&info 0x8>;