1 // SPDX-License-Identifier: GPL-2.0-or-later
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca953x.dtsi"
10 compatible = "tplink,tl-mr6400-v1", "qca,qca9531";
11 model = "TP-Link TL-MR6400 v1";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &wmac;
22 compatible = "gpio-leds";
26 label = "tp-link:white:wan";
27 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
32 label = "tp-link:white:4g";
33 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
38 label = "tp-link:white:wps";
39 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
44 label = "tp-link:white:wlan";
45 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
46 linux,default-trigger = "phy0tpt";
51 label = "tp-link:white:power";
52 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
57 label = "tp-link:white:lan";
58 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
63 compatible = "gpio-keys";
67 label = "Reset button";
68 linux,code = <KEY_RESTART>;
69 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
70 debounce-interval = <60>;
75 label = "RF kill button";
76 linux,code = <KEY_RFKILL>;
77 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
78 debounce-interval = <60>;
83 compatible = "gpio-export";
86 gpio-export,name = "tp-link:power:lte";
87 gpio-export,output = <0>;
88 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
103 compatible = "jedec,spi-nor";
105 spi-max-frequency = <25000000>;
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
114 reg = <0x000000 0x020000>;
119 compatible = "tplink,firmware";
121 reg = <0x020000 0x7d0000>;
124 art: partition@7f0000 {
126 reg = <0x7f0000 0x010000>;
136 phy-handle = <&swphy0>;
138 mtd-mac-address = <&uboot 0x1fc00>;
139 mtd-mac-address-increment = <1>;
143 mtd-mac-address = <&uboot 0x1fc00>;
144 mtd-mac-address-increment = <(-1)>;
150 mtd-cal-data = <&art 0x1000>;
151 mtd-mac-address = <&uboot 0x1fc00>;
155 #address-cells = <1>;
161 #trigger-source-cells = <0>;