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;
19 bootargs = "console=ttyS0,115200";
23 compatible = "gpio-keys";
27 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
33 compatible = "gpio-leds";
37 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
42 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
53 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
62 compatible = "jedec,spi-nor";
64 spi-max-frequency = <10000000>;
67 compatible = "fixed-partitions";
78 compatible = "tplink,firmware";
80 reg = <0x10000 0x3e0000>;
83 factory: partition@3f0000 {
85 reg = <0x3f0000 0x10000>;
89 compatible = "fixed-layout";
93 eeprom_factory_0: eeprom@0 {
97 macaddr_factory_f100: macaddr@f100 {
117 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_f100>;
118 nvmem-cell-names = "eeprom", "mac-address";
122 nvmem-cells = <&macaddr_factory_f100>;
123 nvmem-cell-names = "mac-address";
127 mediatek,portmap = <0x3e>;
132 groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an", "p0led_an", "wdt";
140 gpios = <43 GPIO_ACTIVE_HIGH>;