1 // SPDX-License-Identifier: GPL-2.0-only
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-wa901nd-v2", "qca,ar9132";
11 model = "TP-Link TL-WA901ND v2";
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 label-mac-device = ð0;
22 compatible = "gpio-keys";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
33 linux,code = <KEY_WPS_BUTTON>;
34 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
35 debounce-interval = <60>;
40 compatible = "gpio-leds";
43 label = "green:system";
44 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
49 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
53 function = LED_FUNCTION_WLAN;
54 color = <LED_COLOR_ID_GREEN>;
55 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
56 linux,default-trigger = "phy0tpt";
65 compatible = "jedec,spi-nor";
67 spi-max-frequency = <25000000>;
70 compatible = "fixed-partitions";
76 reg = <0x000000 0x020000>;
80 compatible = "fixed-layout";
84 macaddr_uboot_1fc00: macaddr@1fc00 {
91 compatible = "tplink,firmware";
93 reg = <0x020000 0x3D0000>;
98 reg = <0x3F0000 0x010000>;
108 phy12: ethernet-phy@c {
115 reset-assert-us = <10000>;
116 reset-deassert-us = <10000>;
123 nvmem-cells = <&macaddr_uboot_1fc00>;
124 nvmem-cell-names = "mac-address";
126 phy-handle = <&phy12>;
132 mtd-cal-data = <&art 0x1000>;
133 nvmem-cells = <&macaddr_uboot_1fc00>;
134 nvmem-cell-names = "mac-address";