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-wr1043nd-v1", "qca,ar9132";
11 model = "TP-Link TL-WR1043ND 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 = ð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 function = LED_FUNCTION_USB;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
46 trigger-sources = <&hub_port>;
47 linux,default-trigger = "usbport";
51 label = "green:system";
52 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "heartbeat";
58 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
62 function = LED_FUNCTION_WLAN;
63 color = <LED_COLOR_ID_GREEN>;
64 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
65 linux,default-trigger = "phy0tpt";
70 compatible = "realtek,rtl8366rb";
71 gpio-sda = <&gpio 18 GPIO_ACTIVE_HIGH>;
72 gpio-sck = <&gpio 19 GPIO_ACTIVE_HIGH>;
75 reset-names = "switch";
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <25000000>;
97 compatible = "fixed-partitions";
103 reg = <0x000000 0x020000>;
107 compatible = "fixed-layout";
108 #address-cells = <1>;
111 macaddr_uboot_1fc00: macaddr@1fc00 {
118 compatible = "tplink,firmware";
120 reg = <0x020000 0x7D0000>;
123 art: partition@7F0000 {
125 reg = <0x7F0000 0x010000>;
136 nvmem-cells = <&macaddr_uboot_1fc00>;
137 nvmem-cell-names = "mac-address";
148 mtd-cal-data = <&art 0x1000>;
149 nvmem-cells = <&macaddr_uboot_1fc00>;
150 nvmem-cell-names = "mac-address";