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;
22 compatible = "gpio-keys-polled";
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
29 debounce-interval = <60>;
34 linux,code = <KEY_WPS_BUTTON>;
35 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
36 debounce-interval = <60>;
41 compatible = "gpio-leds";
42 pinctrl-names = "default";
43 pinctrl-0 = <&switch_led_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_HIGH>;
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 default-state = "off";
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 reg = <0x20000 0x3d0000>;
114 art: partition@3f0000 {
115 reg = <0x3f0000 0x10000>;
126 mtd-mac-address = <&uboot 0x1fc00>;
127 mtd-mac-address-increment = <1>;
132 switch-phy-addr-swap = <1>;
133 switch-phy-swap = <1>;
140 mtd-mac-address = <&uboot 0x1fc00>;
141 mtd-mac-address-increment = <(-1)>;
154 mtd-cal-data = <&art 0x1000>;
155 mtd-mac-address = <&uboot 0x1fc00>;