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-status = &led_system;
19 compatible = "gpio-keys-polled";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
26 debounce-interval = <60>;
31 linux,code = <KEY_WPS_BUTTON>;
32 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
33 debounce-interval = <60>;
38 compatible = "gpio-leds";
39 pinctrl-names = "default";
40 pinctrl-0 = <&switch_led_pins>;
43 label = "tp-link:green:lan1";
44 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
48 label = "tp-link:green:lan2";
49 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
53 label = "tp-link:green:lan3";
54 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
58 label = "tp-link:green:lan4";
59 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
63 label = "tp-link:green:qss";
64 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
68 label = "tp-link:green:system";
69 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
73 label = "tp-link:green:wan";
74 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
78 label = "tp-link:green:wlan";
79 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
80 default-state = "off";
81 linux,default-trigger = "phy0tpt";
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <25000000>;
96 compatible = "fixed-partitions";
106 firmware: partition@20000 {
107 reg = <0x20000 0x3d0000>;
111 art: partition@3f0000 {
112 reg = <0x3f0000 0x10000>;
123 mtd-mac-address = <&uboot 0x1fc00>;
124 mtd-mac-address-increment = <1>;
129 switch-phy-addr-swap = <1>;
130 switch-phy-swap = <1>;
137 mtd-mac-address = <&uboot 0x1fc00>;
138 mtd-mac-address-increment = <(-1)>;
151 mtd-cal-data = <&art 0x1000>;
152 mtd-mac-address = <&uboot 0x1fc00>;