1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
10 compatible = "tplink,tl-wr842n-v1", "qca,ar7241";
11 model = "TP-Link TL-WR842N/ND v1";
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 label-mac-device = &ath9k;
22 compatible = "gpio-keys";
26 linux,code = <KEY_RFKILL>;
27 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
33 linux,code = <KEY_RESTART>;
34 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
35 debounce-interval = <60>;
40 compatible = "gpio-leds";
43 label = "tp-link:green:system";
44 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
48 label = "tp-link:green:qss";
49 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
53 label = "tp-link:green:3g";
54 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
55 trigger-sources = <&hub_port>;
56 linux,default-trigger = "usbport";
61 compatible = "gpio-leds";
64 label = "tp-link:green:wlan";
65 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
66 linux,default-trigger = "phy0tpt";
71 compatible = "gpio-export";
74 gpio-export,name = "tp-link:power:usb";
75 gpio-export,output = <1>;
76 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
88 #trigger-source-cells = <0>;
101 compatible = "jedec,spi-nor";
103 spi-max-frequency = <25000000>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
117 compatible = "tplink,firmware";
118 reg = <0x20000 0x7d0000>;
123 reg = <0x7f0000 0x10000>;
135 compatible = "pci168c,002e";
136 reg = <0x0000 0 0 0 0>;
140 mtd-mac-address = <&uboot 0x1fc00>;
147 mtd-mac-address = <&uboot 0x1fc00>;
148 mtd-mac-address-increment = <(-1)>;
154 mtd-mac-address = <&uboot 0x1fc00>;
155 mtd-mac-address-increment = <1>;