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";
18 led-boot = &led_power;
19 led-failsafe = &led_power;
20 led-running = &led_power;
21 led-upgrade = &led_power;
26 compatible = "gpio-leds";
29 label = "tp-link:blue:power";
30 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
34 label = "tp-link:blue:wlan2g";
35 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy1tpt";
40 label = "tp-link:blue:wlan5g";
41 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
46 label = "tp-link:green:lan_link";
47 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
51 label = "tp-link:green:lan_data";
52 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
56 label = "tp-link:blue:wps";
57 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
61 label = "tp-link:red:wps";
62 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
67 compatible = "gpio-keys";
70 label = "Reset button";
71 linux,code = <KEY_RESTART>;
72 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
73 debounce-interval = <60>;
77 label = "Power button";
78 linux,code = <KEY_POWER>;
79 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
80 debounce-interval = <60>;
84 label = "LED control button";
86 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
87 debounce-interval = <60>;
92 linux,code = <KEY_WPS_BUTTON>;
93 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
94 debounce-interval = <60>;
99 compatible = "virtual,mdio-gpio";
101 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>, /* MDC */
102 <&gpio 4 GPIO_ACTIVE_HIGH>; /* MDIO */
103 #address-cells = <1>;
106 phy4: ethernet-phy@4 {
108 device_type = "ethernet-phy";
109 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
132 compatible = "jedec,spi-nor";
134 spi-max-frequency = <25000000>;
137 compatible = "fixed-partitions";
138 #address-cells = <1>;
143 reg = <0x000000 0x020000>;
148 compatible = "tplink,firmware";
150 reg = <0x020000 0x5e0000>;
154 label = "partition-table";
155 reg = <0x600000 0x010000>;
159 info: partition@610000 {
161 reg = <0x610000 0x020000>;
167 reg = <0x630000 0x020000>;
171 art: partition@7f0000 {
173 reg = <0x7f0000 0x010000>;
184 phy-handle = <&phy4>;
186 mtd-mac-address = <&info 0x8>;
192 mtd-cal-data = <&art 0x1000>;
193 mtd-mac-address = <&info 0x8>;