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";
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";
41 pinctrl-names = "default";
42 pinctrl-0 = <&switch_led_pins>;
45 label = "tp-link:green:lan1";
46 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
50 label = "tp-link:green:lan2";
51 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
55 label = "tp-link:green:lan3";
56 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
60 label = "tp-link:green:lan4";
61 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
65 label = "tp-link:green:qss";
66 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
70 label = "tp-link:green:system";
71 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
75 label = "tp-link:green:wan";
76 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
80 label = "tp-link:green:wlan";
81 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
82 default-state = "off";
83 linux,default-trigger = "phy0tpt";
95 compatible = "jedec,spi-nor";
97 spi-max-frequency = <25000000>;
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
110 firmware: partition@20000 {
111 reg = <0x20000 0x3d0000>;
115 art: partition@3f0000 {
116 reg = <0x3f0000 0x10000>;
127 phy4: ethernet-phy@4 {
136 phy-handle = <&phy4>;
138 mtd-mac-address = <&uboot 0x1fc00>;
139 mtd-mac-address-increment = <1>;
144 switch-phy-addr-swap = <1>;
145 switch-phy-swap = <1>;
152 mtd-mac-address = <&uboot 0x1fc00>;
153 mtd-mac-address-increment = <(-1)>;
171 mtd-cal-data = <&art 0x1000>;
172 mtd-mac-address = <&uboot 0x1fc00>;