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>
7 #include <dt-bindings/leds/common.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 = "green:system";
44 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
49 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
54 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
55 trigger-sources = <&hub_port>;
56 linux,default-trigger = "usbport";
61 compatible = "gpio-leds";
64 function = LED_FUNCTION_WLAN;
65 color = <LED_COLOR_ID_GREEN>;
66 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
67 linux,default-trigger = "phy0tpt";
72 compatible = "gpio-export";
75 gpio-export,name = "tp-link:power:usb";
76 gpio-export,output = <1>;
77 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
94 compatible = "jedec,spi-nor";
96 spi-max-frequency = <25000000>;
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
109 compatible = "fixed-layout";
110 #address-cells = <1>;
113 macaddr_uboot_1fc00: macaddr@1fc00 {
114 compatible = "mac-base";
116 #nvmem-cell-cells = <1>;
122 compatible = "tplink,firmware";
123 reg = <0x20000 0x7d0000>;
128 reg = <0x7f0000 0x10000>;
140 compatible = "pci168c,002e";
141 reg = <0x0000 0 0 0 0>;
145 nvmem-cells = <&macaddr_uboot_1fc00 0>;
146 nvmem-cell-names = "mac-address";
153 nvmem-cells = <&macaddr_uboot_1fc00 (-1)>;
154 nvmem-cell-names = "mac-address";
158 nvmem-cells = <&macaddr_uboot_1fc00 1>;
159 nvmem-cell-names = "mac-address";