1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,tl-wr842n-v1", "qca,ar7241";
10 model = "TP-Link TL-WR842N/ND v1";
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 label-mac-device = &ath9k;
21 compatible = "gpio-keys";
25 linux,code = <KEY_RFKILL>;
26 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
32 linux,code = <KEY_RESTART>;
33 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
34 debounce-interval = <60>;
39 compatible = "gpio-leds";
42 label = "green:system";
43 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
48 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
53 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
54 trigger-sources = <&hub_port>;
55 linux,default-trigger = "usbport";
60 compatible = "gpio-leds";
64 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
65 linux,default-trigger = "phy0tpt";
70 compatible = "gpio-export";
73 gpio-export,name = "tp-link:power:usb";
74 gpio-export,output = <1>;
75 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
87 #trigger-source-cells = <0>;
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <25000000>;
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
115 compatible = "tplink,firmware";
116 reg = <0x20000 0x7d0000>;
121 reg = <0x7f0000 0x10000>;
133 compatible = "pci168c,002e";
134 reg = <0x0000 0 0 0 0>;
138 mtd-mac-address = <&uboot 0x1fc00>;
145 mtd-mac-address = <&uboot 0x1fc00>;
146 mtd-mac-address-increment = <(-1)>;
150 mtd-mac-address = <&uboot 0x1fc00>;
151 mtd-mac-address-increment = <1>;