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";
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 label-mac-device = &wmac;
21 compatible = "gpio-keys";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
27 debounce-interval = <60>;
32 linux,code = <KEY_WPS_BUTTON>;
33 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
34 debounce-interval = <60>;
39 compatible = "gpio-leds";
41 pinctrl-names = "default";
42 pinctrl-0 = <&switch_led_disable_pins>;
46 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
51 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
56 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
61 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
66 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
70 label = "green:system";
71 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
76 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
81 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
82 linux,default-trigger = "phy0tpt";
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <25000000>;
96 compatible = "fixed-partitions";
106 compatible = "fixed-layout";
107 #address-cells = <1>;
110 macaddr_uboot_1fc00: macaddr@1fc00 {
116 firmware: partition@20000 {
117 compatible = "tplink,firmware";
118 reg = <0x20000 0x3d0000>;
122 art: partition@3f0000 {
123 reg = <0x3f0000 0x10000>;
131 ð0 { /* WAN interface, initialized last as eth1 */
134 nvmem-cells = <&macaddr_uboot_1fc00>;
135 nvmem-cell-names = "mac-address";
136 mac-address-increment = <1>;
141 switch-phy-addr-swap = <1>;
142 switch-phy-swap = <1>;
146 ð1 { /* LAN interface, initialized first as eth0 */
149 nvmem-cells = <&macaddr_uboot_1fc00>;
150 nvmem-cell-names = "mac-address";
156 mtd-cal-data = <&art 0x1000>;
157 nvmem-cells = <&macaddr_uboot_1fc00>;
158 nvmem-cell-names = "mac-address";