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>
7 #include <dt-bindings/leds/common.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;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-keys";
28 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
34 compatible = "gpio-leds";
37 function = LED_FUNCTION_LAN;
38 color = <LED_COLOR_ID_GREEN>;
39 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
43 function = LED_FUNCTION_WAN;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
49 function = LED_FUNCTION_WLAN;
50 color = <LED_COLOR_ID_GREEN>;
51 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy0tpt";
56 function = LED_FUNCTION_WAN;
57 color = <LED_COLOR_ID_ORANGE>;
58 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
67 compatible = "jedec,spi-nor";
69 spi-max-frequency = <10000000>;
72 compatible = "fixed-partitions";
83 compatible = "tplink,firmware";
85 reg = <0x10000 0x3e0000>;
88 factory: partition@3f0000 {
90 reg = <0x3f0000 0x10000>;
94 compatible = "fixed-layout";
98 eeprom_factory_0: eeprom@0 {
102 macaddr_factory_f100: macaddr@f100 {
122 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_f100>;
123 nvmem-cell-names = "eeprom", "mac-address";
127 nvmem-cells = <&macaddr_factory_f100>;
128 nvmem-cell-names = "mac-address";
132 mediatek,portmap = <0x3e>;
137 groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an", "p0led_an", "wdt";
145 gpios = <43 GPIO_ACTIVE_HIGH>;