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-wr2543-v1", "qca,ar7242";
11 model = "TP-Link TL-WR2543N/ND";
15 led-failsafe = &system;
16 led-running = &system;
17 led-upgrade = &system;
18 label-mac-device = ð0;
22 bootargs = "console=ttyS0,115200n8";
26 compatible = "fixed-clock";
28 clock-frequency = <40000000>;
32 compatible = "gpio-keys-polled";
37 linux,code = <KEY_RESTART>;
38 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
39 debounce-interval = <60>;
44 linux,code = <KEY_WPS_BUTTON>;
45 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
46 debounce-interval = <60>;
51 compatible = "gpio-leds";
54 label = "tplink:green:wps";
55 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
59 label = "tplink:green:usb";
60 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
61 trigger-sources = <&hub_port>;
62 linux,default-trigger = "usbport";
67 compatible = "gpio-leds";
70 label = "tplink:green:wlan2g";
71 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
72 linux,default-trigger = "phy0tpt";
76 label = "tplink:green:wlan5g";
77 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
78 linux,default-trigger = "phy0tpt";
83 compatible = "realtek,rtl8367";
84 gpio-sda = <&gpio 1 GPIO_ACTIVE_HIGH>;
85 gpio-sck = <&gpio 6 GPIO_ACTIVE_HIGH>;
86 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
93 phy0: ethernet-phy@0 {
109 compatible = "jedec,spi-nor";
111 spi-max-frequency = <25000000>;
114 compatible = "fixed-partitions";
115 #address-cells = <1>;
120 reg = <0x000000 0x020000>;
125 compatible = "tplink,firmware";
127 reg = <0x020000 0x7d0000>;
132 reg = <0x7f0000 0x010000>;
144 #address-cells = <1>;
150 #trigger-source-cells = <0>;
162 reg = <0x0000 0 0 0 0>;
166 mtd-mac-address = <&uboot 0x1fc00>;
174 mtd-mac-address = <&uboot 0x1fc00>;
176 phy-handle = <&phy0>;