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>
7 #include <dt-bindings/leds/common.h>
10 compatible = "tplink,tl-wr741n-v4", "qca,ar9331";
11 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>;
76 function = LED_FUNCTION_WAN;
77 color = <LED_COLOR_ID_GREEN>;
78 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
82 function = LED_FUNCTION_WLAN;
83 color = <LED_COLOR_ID_GREEN>;
84 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
85 linux,default-trigger = "phy0tpt";
94 compatible = "jedec,spi-nor";
96 spi-max-frequency = <25000000>;
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
109 compatible = "fixed-layout";
110 #address-cells = <1>;
113 macaddr_uboot_1fc00: macaddr@1fc00 {
114 compatible = "mac-base";
116 #nvmem-cell-cells = <1>;
121 firmware: partition@20000 {
122 compatible = "tplink,firmware";
123 reg = <0x20000 0x3d0000>;
127 art: partition@3f0000 {
128 reg = <0x3f0000 0x10000>;
136 ð0 { /* WAN interface, initialized last as eth1 */
139 nvmem-cells = <&macaddr_uboot_1fc00 1>;
140 nvmem-cell-names = "mac-address";
145 switch-phy-addr-swap = <1>;
146 switch-phy-swap = <1>;
150 ð1 { /* LAN interface, initialized first as eth0 */
153 nvmem-cells = <&macaddr_uboot_1fc00 0>;
154 nvmem-cell-names = "mac-address";
160 mtd-cal-data = <&art 0x1000>;
161 nvmem-cells = <&macaddr_uboot_1fc00 0>;
162 nvmem-cell-names = "mac-address";