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";
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 label-mac-device = &wmac;
22 compatible = "gpio-keys";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
28 debounce-interval = <60>;
33 linux,code = <KEY_WPS_BUTTON>;
34 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
35 debounce-interval = <60>;
40 compatible = "gpio-leds";
42 pinctrl-names = "default";
43 pinctrl-0 = <&switch_led_disable_pins>;
47 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
52 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
57 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
62 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
67 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
71 label = "green:system";
72 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
77 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
82 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
83 linux,default-trigger = "phy0tpt";
92 compatible = "jedec,spi-nor";
94 spi-max-frequency = <25000000>;
97 compatible = "fixed-partitions";
107 firmware: partition@20000 {
108 compatible = "tplink,firmware";
109 reg = <0x20000 0x3d0000>;
113 art: partition@3f0000 {
114 reg = <0x3f0000 0x10000>;
125 mtd-mac-address = <&uboot 0x1fc00>;
126 mtd-mac-address-increment = <1>;
131 switch-phy-addr-swap = <1>;
132 switch-phy-swap = <1>;
139 mtd-mac-address = <&uboot 0x1fc00>;
140 mtd-mac-address-increment = <(-1)>;
150 mtd-cal-data = <&art 0x1000>;
151 mtd-mac-address = <&uboot 0x1fc00>;