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";
16 led-failsafe = &system;
17 led-running = &system;
18 led-upgrade = &system;
19 label-mac-device = &wmac;
23 compatible = "gpio-keys-polled";
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
30 debounce-interval = <60>;
35 linux,code = <KEY_WPS_BUTTON>;
36 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
37 debounce-interval = <60>;
42 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";
94 compatible = "jedec,spi-nor";
96 spi-max-frequency = <25000000>;
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
109 firmware: partition@20000 {
110 compatible = "tplink,firmware";
111 reg = <0x20000 0x3d0000>;
115 art: partition@3f0000 {
116 reg = <0x3f0000 0x10000>;
127 mtd-mac-address = <&uboot 0x1fc00>;
128 mtd-mac-address-increment = <1>;
133 switch-phy-addr-swap = <1>;
134 switch-phy-swap = <1>;
141 mtd-mac-address = <&uboot 0x1fc00>;
142 mtd-mac-address-increment = <(-1)>;
155 mtd-cal-data = <&art 0x1000>;
156 mtd-mac-address = <&uboot 0x1fc00>;