1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/gpio/gpio.h>
4 #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>;
46 label = "tp-link:green:lan1";
47 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
51 label = "tp-link:green:lan2";
52 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
56 label = "tp-link:green:lan3";
57 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
61 label = "tp-link:green:lan4";
62 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
66 label = "tp-link:green:qss";
67 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
71 label = "tp-link:green:system";
72 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
76 label = "tp-link:green:wan";
77 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
81 label = "tp-link:green:wlan";
82 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
83 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)>;
156 mtd-cal-data = <&art 0x1000>;
157 mtd-mac-address = <&uboot 0x1fc00>;