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>
7 #include "qca956x.dtsi"
10 compatible = "tplink,re450-v2", "qca,qca9563";
11 model = "TP-Link RE450 v2";
14 bootargs = "console=ttyS0,115200n8";
23 compatible = "gpio-leds";
26 label = "tp-link:blue:power";
27 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
31 label = "tp-link:blue:wlan2g";
32 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
33 default-state = "off";
34 linux,default-trigger = "phy1tpt";
38 label = "tp-link:blue:wlan5g";
39 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
40 default-state = "off";
41 linux,default-trigger = "phy0tpt";
45 label = "tp-link:green:lan_link";
46 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
47 default-state = "off";
51 label = "tp-link:green:lan_data";
52 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
53 default-state = "off";
57 label = "tp-link:blue:wps";
58 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
59 default-state = "off";
63 label = "tp-link:red:wps";
64 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
65 default-state = "off";
70 compatible = "gpio-keys";
73 label = "Reset button";
74 linux,code = <KEY_RESTART>;
75 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
76 debounce-interval = <60>;
80 label = "Power button";
81 linux,code = <KEY_POWER>;
82 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
83 debounce-interval = <60>;
87 label = "LED control button";
89 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
90 debounce-interval = <60>;
95 linux,code = <KEY_WPS_BUTTON>;
96 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
97 debounce-interval = <60>;
102 compatible = "virtual,mdio-gpio";
104 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>, /* MDC */
105 <&gpio 4 GPIO_ACTIVE_HIGH>; /* MDIO */
106 #address-cells = <1>;
109 phy0: ethernet-phy@4 {
111 device_type = "ethernet-phy";
112 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
134 compatible = "jedec,spi-nor";
136 spi-max-frequency = <25000000>;
139 compatible = "fixed-partitions";
140 #address-cells = <1>;
145 reg = <0x000000 0x020000>;
151 reg = <0x020000 0x5e0000>;
155 label = "partition-table";
156 reg = <0x600000 0x010000>;
160 info: partition@610000 {
161 label = "product-info";
162 reg = <0x610000 0x020000>;
168 reg = <0x630000 0x020000>;
172 art: partition@7f0000 {
174 reg = <0x7f0000 0x010000>;
183 mtd-mac-address = <&info 0x8>;
184 phy-handle = <&phy0>;
189 mtd-cal-data = <&art 0x1000>;
190 mtd-mac-address = <&info 0x8>;