1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7628an.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "tplink,tl-wr841n-v14", "mediatek,mt7628an-soc";
11 model = "TP-Link TL-WR841N v14";
15 led-failsafe = &led_wlan;
16 led-upgrade = &led_wlan;
22 bootargs = "console=ttyS0,115200";
26 device_type = "memory";
27 reg = <0x0 0x2000000>;
31 compatible = "gpio-keys-polled";
36 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
42 compatible = "gpio-leds";
45 label = "tl-wr841n-v14:green:lan";
46 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
50 label = "tl-wr841n-v14:green:wan";
51 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
55 label = "tl-wr841n-v14:green:wlan";
56 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "phy0tpt";
61 label = "tl-wr841n-v14:orange:wan";
62 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
71 compatible = "jedec,spi-nor";
73 spi-max-frequency = <10000000>;
74 m25p,chunked-io = <32>;
77 compatible = "fixed-partitions";
88 compatible = "tplink,firmware";
90 reg = <0x10000 0x3e0000>;
93 factory: partition@3f0000 {
95 reg = <0x3f0000 0x10000>;
112 mtd-mac-address = <&factory 0xf100>;
113 mediatek,mtd-eeprom = <&factory 0x10000>;
117 mtd-mac-address = <&factory 0xf100>;
118 mediatek,portmap = "wllll";
122 state_default: pinctrl0 {
124 ralink,group = "p4led_an", "p3led_an", "p2led_an", "p1led_an", "p0led_an", "wdt";
125 ralink,function = "gpio";
133 gpios = <11 GPIO_ACTIVE_HIGH>;