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-wr2543-v1", "qca,ar7242";
11 model = "TP-Link TL-WR2543N/ND";
15 led-failsafe = &led_wps;
16 led-running = &led_wps;
17 led-upgrade = &led_wps;
18 label-mac-device = ð0;
22 bootargs = "console=ttyS0,115200n8";
26 compatible = "gpio-keys";
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
37 linux,code = <KEY_WPS_BUTTON>;
38 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
39 debounce-interval = <60>;
44 compatible = "gpio-leds";
47 function = LED_FUNCTION_WPS;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
53 function = LED_FUNCTION_USB;
54 color = <LED_COLOR_ID_GREEN>;
55 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
56 trigger-sources = <&hub_port>;
57 linux,default-trigger = "usbport";
62 compatible = "gpio-leds";
65 label = "green:wlan2g";
66 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
67 linux,default-trigger = "phy0tpt";
71 label = "green:wlan5g";
72 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
73 linux,default-trigger = "phy0tpt";
78 compatible = "realtek,rtl8367";
79 gpio-sda = <&gpio 1 GPIO_ACTIVE_HIGH>;
80 gpio-sck = <&gpio 6 GPIO_ACTIVE_HIGH>;
81 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
88 phy0: ethernet-phy@0 {
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <25000000>;
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
111 reg = <0x000000 0x020000>;
115 compatible = "fixed-layout";
116 #address-cells = <1>;
119 macaddr_uboot_1fc00: macaddr@1fc00 {
126 compatible = "tplink,firmware";
128 reg = <0x020000 0x7d0000>;
131 art: partition@7f0000 {
133 reg = <0x7f0000 0x010000>;
137 compatible = "fixed-layout";
138 #address-cells = <1>;
141 cal_art_1000: cal@1000 {
142 reg = <0x1000 0x440>;
162 reg = <0x0000 0 0 0 0>;
165 nvmem-cells = <&macaddr_uboot_1fc00>, <&cal_art_1000>;
166 nvmem-cell-names = "mac-address", "calibration";
174 nvmem-cells = <&macaddr_uboot_1fc00>;
175 nvmem-cell-names = "mac-address";
177 phy-handle = <&phy0>;