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 compatible = "gpio-keys";
30 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 compatible = "gpio-leds";
39 label = "tl-wr841n-v14:green:lan";
40 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
44 label = "tl-wr841n-v14:green:wan";
45 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
49 label = "tl-wr841n-v14:green:wlan";
50 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy0tpt";
55 label = "tl-wr841n-v14:orange:wan";
56 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
65 compatible = "jedec,spi-nor";
67 spi-max-frequency = <10000000>;
68 m25p,chunked-io = <32>;
71 compatible = "fixed-partitions";
82 compatible = "tplink,firmware";
84 reg = <0x10000 0x3e0000>;
87 factory: partition@3f0000 {
89 reg = <0x3f0000 0x10000>;
106 mtd-mac-address = <&factory 0xf100>;
107 mediatek,mtd-eeprom = <&factory 0x10000>;
111 mtd-mac-address = <&factory 0xf100>;
115 mediatek,portmap = <0x3e>;
120 ralink,group = "p4led_an", "p3led_an", "p2led_an", "p1led_an", "p0led_an", "wdt";
121 ralink,function = "gpio";
128 gpios = <11 GPIO_ACTIVE_HIGH>;