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";
18 bootargs = "console=ttyS0,115200n8";
22 device_type = "memory";
23 reg = <0x0 0x4000000>;
27 compatible = "fixed-clock";
29 clock-frequency = <40000000>;
33 compatible = "gpio-keys-polled";
40 linux,code = <KEY_RESTART>;
41 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
42 debounce-interval = <60>;
47 linux,code = <KEY_WPS_BUTTON>;
48 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
49 debounce-interval = <60>;
54 compatible = "gpio-leds";
57 label = "tplink:green:wps";
58 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
59 default-state = "off";
63 label = "tplink:green:usb";
64 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
65 default-state = "off";
66 trigger-sources = <&hub_port>;
67 linux,default-trigger = "usbport";
72 compatible = "gpio-leds";
75 label = "tplink:green:wlan2g";
76 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
77 default-state = "off";
78 linux,default-trigger = "phy0tpt";
82 label = "tplink:green:wlan5g";
83 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
84 default-state = "off";
85 linux,default-trigger = "phy0tpt";
91 compatible = "realtek,rtl8367";
92 gpio-sda = <&gpio 1 GPIO_ACTIVE_HIGH>;
93 gpio-sck = <&gpio 6 GPIO_ACTIVE_HIGH>;
94 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
99 phy0: ethernet-phy@0 {
115 #address-cells = <1>;
117 compatible = "jedec,spi-nor";
119 spi-max-frequency = <25000000>;
122 compatible = "fixed-partitions";
123 #address-cells = <1>;
128 reg = <0x000000 0x020000>;
134 reg = <0x020000 0x7d0000>;
139 reg = <0x7f0000 0x010000>;
155 #trigger-source-cells = <0>;
167 reg = <0x0000 0 0 0 0>;
171 mtd-mac-address = <&uboot 0x1fc00>;
179 mtd-mac-address = <&uboot 0x1fc00>;
181 phy-handle = <&phy0>;