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;
21 bootargs = "console=ttyS0,115200n8";
25 compatible = "fixed-clock";
27 clock-frequency = <40000000>;
31 compatible = "gpio-keys-polled";
36 linux,code = <KEY_RESTART>;
37 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
38 debounce-interval = <60>;
43 linux,code = <KEY_WPS_BUTTON>;
44 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
45 debounce-interval = <60>;
50 compatible = "gpio-leds";
53 label = "tplink:green:wps";
54 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
58 label = "tplink:green:usb";
59 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
60 trigger-sources = <&hub_port>;
61 linux,default-trigger = "usbport";
66 compatible = "gpio-leds";
69 label = "tplink:green:wlan2g";
70 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
71 linux,default-trigger = "phy0tpt";
75 label = "tplink:green:wlan5g";
76 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
77 linux,default-trigger = "phy0tpt";
82 compatible = "realtek,rtl8367";
83 gpio-sda = <&gpio 1 GPIO_ACTIVE_HIGH>;
84 gpio-sck = <&gpio 6 GPIO_ACTIVE_HIGH>;
85 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
92 phy0: ethernet-phy@0 {
108 compatible = "jedec,spi-nor";
110 spi-max-frequency = <25000000>;
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
119 reg = <0x000000 0x020000>;
124 compatible = "tplink,firmware";
126 reg = <0x020000 0x7d0000>;
131 reg = <0x7f0000 0x010000>;
143 #address-cells = <1>;
149 #trigger-source-cells = <0>;
161 reg = <0x0000 0 0 0 0>;
165 mtd-mac-address = <&uboot 0x1fc00>;
173 mtd-mac-address = <&uboot 0x1fc00>;
175 phy-handle = <&phy0>;