1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,tl-wr841n-v14", "mediatek,mt7628an-soc";
10 model = "TP-Link TL-WR841N v14";
14 led-failsafe = &led_wlan;
15 led-upgrade = &led_wlan;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-keys";
29 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 compatible = "gpio-leds";
38 label = "tl-wr841n-v14:green:lan";
39 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
43 label = "tl-wr841n-v14:green:wan";
44 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
48 label = "tl-wr841n-v14:green:wlan";
49 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
50 linux,default-trigger = "phy0tpt";
54 label = "tl-wr841n-v14:orange:wan";
55 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
64 compatible = "jedec,spi-nor";
66 spi-max-frequency = <10000000>;
69 compatible = "fixed-partitions";
80 compatible = "tplink,firmware";
82 reg = <0x10000 0x3e0000>;
85 factory: partition@3f0000 {
87 reg = <0x3f0000 0x10000>;
105 mtd-mac-address = <&factory 0xf100>;
109 mtd-mac-address = <&factory 0xf100>;
113 mediatek,portmap = <0x3e>;
118 groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an", "p0led_an", "wdt";
126 gpios = <43 GPIO_ACTIVE_HIGH>;