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>;
92 compatible = "jedec,spi-nor";
94 spi-max-frequency = <25000000>;
97 compatible = "fixed-partitions";
108 compatible = "tplink,firmware";
109 reg = <0x20000 0x7d0000>;
114 reg = <0x7f0000 0x10000>;
126 compatible = "pci168c,002e";
127 reg = <0x0000 0 0 0 0>;
131 nvmem-cells = <&macaddr_uboot_1fc00>;
132 nvmem-cell-names = "mac-address";
139 nvmem-cells = <&macaddr_uboot_1fc00>;
140 nvmem-cell-names = "mac-address";
141 mac-address-increment = <(-1)>;
145 nvmem-cells = <&macaddr_uboot_1fc00>;
146 nvmem-cell-names = "mac-address";
147 mac-address-increment = <1>;
151 compatible = "nvmem-cells";
152 #address-cells = <1>;
155 macaddr_uboot_1fc00: macaddr@1fc00 {