1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
10 compatible = "tplink,tl-wr741n-v4", "qca,ar9331";
11 model = "TP-Link TL-WR741N/ND v4";
15 led-boot = &led_system;
16 led-failsafe = &led_system;
17 led-running = &led_system;
18 led-upgrade = &led_system;
19 label-mac-device = &wmac;
23 compatible = "gpio-keys";
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
29 debounce-interval = <60>;
34 linux,code = <KEY_WPS_BUTTON>;
35 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
36 debounce-interval = <60>;
41 compatible = "gpio-leds";
43 pinctrl-names = "default";
44 pinctrl-0 = <&switch_led_disable_pins>;
47 label = "tp-link:green:lan1";
48 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
52 label = "tp-link:green:lan2";
53 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
57 label = "tp-link:green:lan3";
58 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
62 label = "tp-link:green:lan4";
63 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
67 label = "tp-link:green:qss";
68 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
72 label = "tp-link:green:system";
73 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
77 label = "tp-link:green:wan";
78 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
82 label = "tp-link:green:wlan";
83 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
84 linux,default-trigger = "phy0tpt";
95 compatible = "jedec,spi-nor";
97 spi-max-frequency = <25000000>;
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
110 firmware: partition@20000 {
111 compatible = "tplink,firmware";
112 reg = <0x20000 0x3d0000>;
116 art: partition@3f0000 {
117 reg = <0x3f0000 0x10000>;
128 mtd-mac-address = <&uboot 0x1fc00>;
129 mtd-mac-address-increment = <1>;
134 switch-phy-addr-swap = <1>;
135 switch-phy-swap = <1>;
142 mtd-mac-address = <&uboot 0x1fc00>;
143 mtd-mac-address-increment = <(-1)>;
157 mtd-cal-data = <&art 0x1000>;
158 mtd-mac-address = <&uboot 0x1fc00>;