1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,tl-wr741n-v4", "qca,ar9331";
10 model = "TP-Link TL-WR741N/ND v4";
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 label-mac-device = &wmac;
21 compatible = "gpio-keys";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
27 debounce-interval = <60>;
32 linux,code = <KEY_WPS_BUTTON>;
33 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
34 debounce-interval = <60>;
39 compatible = "gpio-leds";
41 pinctrl-names = "default";
42 pinctrl-0 = <&switch_led_disable_pins>;
46 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
51 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
56 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
61 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
66 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
70 label = "green:system";
71 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
76 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
81 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
82 linux,default-trigger = "phy0tpt";
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <25000000>;
96 compatible = "fixed-partitions";
106 firmware: partition@20000 {
107 compatible = "tplink,firmware";
108 reg = <0x20000 0x3d0000>;
112 art: partition@3f0000 {
113 reg = <0x3f0000 0x10000>;
124 mtd-mac-address = <&uboot 0x1fc00>;
125 mtd-mac-address-increment = <1>;
130 switch-phy-addr-swap = <1>;
131 switch-phy-swap = <1>;
138 mtd-mac-address = <&uboot 0x1fc00>;
139 mtd-mac-address-increment = <(-1)>;
145 mtd-cal-data = <&art 0x1000>;
146 mtd-mac-address = <&uboot 0x1fc00>;