1 // SPDX-License-Identifier: GPL-2.0
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
10 compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
11 model = "TP-Link TL-WR1043ND Version 1";
18 device_type = "memory";
19 reg = <0x0 0x2000000>;
23 compatible = "fixed-clock";
25 clock-frequency = <40000000>;
29 compatible = "gpio-keys";
35 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
42 linux,code = <KEY_WPS_BUTTON>;
43 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
49 compatible = "gpio-leds";
51 label = "tp-link:green:usb";
52 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
53 default-state = "off";
54 trigger-sources = <&hub_port>;
55 linux,default-trigger = "usbport";
59 label = "tp-link:green:system";
60 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
61 linux,default-trigger = "heartbeat";
65 label = "tp-link:green:qss";
66 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
70 label = "tp-link:green:wlan";
71 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
72 default-state = "off";
73 linux,default-trigger = "phy0tpt";
78 compatible = "realtek,rtl8366rb";
79 gpio-sda = <&gpio 18 GPIO_ACTIVE_HIGH>;
80 gpio-sck = <&gpio 19 GPIO_ACTIVE_HIGH>;
83 reset-names = "switch";
88 phy0: ethernet-phy@0 {
109 #trigger-source-cells = <0>;
113 #trigger-source-cells = <0>;
127 #address-cells = <1>;
129 compatible = "jedec,spi-nor";
131 spi-max-frequency = <25000000>;
134 compatible = "fixed-partitions";
135 #address-cells = <1>;
140 reg = <0x000000 0x020000>;
146 reg = <0x020000 0x7D0000>;
149 art: partition@7F0000 {
151 reg = <0x7F0000 0x010000>;
162 mtd-mac-address = <&uboot 0x1fc00>;
167 phy-handle = <&phy0>;
176 mtd-cal-data = <&art 0x1000>;
177 mtd-mac-address = <&uboot 0x1fc00>;