1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include "qca953x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,tl-mr6400-v1", "qca,qca9531";
10 model = "TP-Link TL-MR6400 v1";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = &wmac;
21 compatible = "gpio-leds";
26 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
32 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
38 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
44 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
45 linux,default-trigger = "phy0tpt";
50 label = "white:power";
51 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
57 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
62 compatible = "gpio-keys";
66 label = "Reset button";
67 linux,code = <KEY_RESTART>;
68 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
69 debounce-interval = <60>;
74 label = "RF kill button";
75 linux,code = <KEY_RFKILL>;
76 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
77 debounce-interval = <60>;
82 compatible = "gpio-export";
85 gpio-export,name = "tp-link:power:lte";
86 gpio-export,output = <0>;
87 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
96 compatible = "jedec,spi-nor";
98 spi-max-frequency = <25000000>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
107 reg = <0x000000 0x020000>;
111 compatible = "fixed-layout";
112 #address-cells = <1>;
115 macaddr_uboot_1fc00: macaddr@1fc00 {
122 compatible = "tplink,firmware";
124 reg = <0x020000 0x7d0000>;
127 art: partition@7f0000 {
129 reg = <0x7f0000 0x010000>;
139 phy-handle = <&swphy0>;
141 nvmem-cells = <&macaddr_uboot_1fc00>;
142 nvmem-cell-names = "mac-address";
143 mac-address-increment = <1>;
147 nvmem-cells = <&macaddr_uboot_1fc00>;
148 nvmem-cell-names = "mac-address";
149 mac-address-increment = <(-1)>;
155 mtd-cal-data = <&art 0x1000>;
156 nvmem-cells = <&macaddr_uboot_1fc00>;
157 nvmem-cell-names = "mac-address";