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-wr2543-v1", "qca,ar7242";
10 model = "TP-Link TL-WR2543N/ND";
14 led-failsafe = &led_wps;
15 led-running = &led_wps;
16 led-upgrade = &led_wps;
17 label-mac-device = ð0;
21 bootargs = "console=ttyS0,115200n8";
25 compatible = "fixed-clock";
27 clock-frequency = <40000000>;
31 compatible = "gpio-keys";
35 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
42 linux,code = <KEY_WPS_BUTTON>;
43 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
49 compatible = "gpio-leds";
53 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
58 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
59 trigger-sources = <&hub_port>;
60 linux,default-trigger = "usbport";
65 compatible = "gpio-leds";
68 label = "green:wlan2g";
69 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
70 linux,default-trigger = "phy0tpt";
74 label = "green:wlan5g";
75 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
76 linux,default-trigger = "phy0tpt";
81 compatible = "realtek,rtl8367";
82 gpio-sda = <&gpio 1 GPIO_ACTIVE_HIGH>;
83 gpio-sck = <&gpio 6 GPIO_ACTIVE_HIGH>;
84 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
91 phy0: ethernet-phy@0 {
106 compatible = "jedec,spi-nor";
108 spi-max-frequency = <25000000>;
112 compatible = "fixed-partitions";
113 #address-cells = <1>;
118 reg = <0x000000 0x020000>;
123 compatible = "tplink,firmware";
125 reg = <0x020000 0x7d0000>;
130 reg = <0x7f0000 0x010000>;
138 #address-cells = <1>;
144 #trigger-source-cells = <0>;
156 reg = <0x0000 0 0 0 0>;
160 nvmem-cells = <&macaddr_uboot_1fc00>;
161 nvmem-cell-names = "mac-address";
169 nvmem-cells = <&macaddr_uboot_1fc00>;
170 nvmem-cell-names = "mac-address";
172 phy-handle = <&phy0>;
180 compatible = "nvmem-cells";
181 #address-cells = <1>;
184 macaddr_uboot_1fc00: macaddr@1fc00 {