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>
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
17 compatible = "gpio-keys-polled";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
29 linux,code = <KEY_WPS_BUTTON>;
30 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
31 debounce-interval = <60>;
36 compatible = "gpio-leds";
37 pinctrl-names = "default";
38 pinctrl-0 = <&switch_led_pins>;
41 label = "tp-link:green:system";
42 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
46 label = "tp-link:green:qss";
47 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
51 label = "tp-link:green:lan1";
52 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
56 label = "tp-link:green:lan2";
57 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
61 label = "tp-link:green:lan3";
62 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
66 label = "tp-link:green:lan4";
67 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
71 label = "tp-link:green:wan";
72 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
77 compatible = "gpio-leds";
80 label = "tp-link:green:wlan";
81 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
82 linux,default-trigger = "phy0tpt";
92 compatible = "jedec,spi-nor";
94 spi-max-frequency = <25000000>;
97 compatible = "fixed-partitions";
107 firmware: partition@20000 {
108 compatible = "tplink,firmware";
109 reg = <0x20000 0x3d0000>;
113 art: partition@3f0000 {
114 reg = <0x3f0000 0x10000>;
125 mtd-mac-address = <&uboot 0x1fc00>;
126 mtd-mac-address-increment = <(-1)>;
132 mtd-mac-address = <&uboot 0x1fc00>;
133 mtd-mac-address-increment = <1>;
140 compatible = "pci168c,002b";
141 reg = <0x0000 0 0 0 0>;
143 mtd-mac-address = <&uboot 0x1fc00>;
150 switch_led_pins: pinmux_switch_led_pins {
151 pinctrl-single,bits = <0x0 0x0 0xf8>;