1 #include "mt7628an.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "tplink,tl-wr840n-v5", "mediatek,mt7628an-soc";
9 model = "TP-Link TL-WR840N v5";
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
19 bootargs = "console=ttyS0,115200";
23 compatible = "gpio-keys";
27 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
32 /* LED used is dual-color,dual lead LED */
34 compatible = "gpio-leds";
36 led_power_green: power {
37 function = LED_FUNCTION_POWER;
38 color = <LED_COLOR_ID_GREEN>;
39 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
43 function = LED_FUNCTION_POWER;
44 color = <LED_COLOR_ID_ORANGE>;
45 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
54 compatible = "jedec,spi-nor";
56 spi-max-frequency = <10000000>;
59 compatible = "fixed-partitions";
70 compatible = "tplink,firmware";
72 reg = <0x20000 0x3d0000>;
77 reg = <0x3f0000 0x10000>;
81 compatible = "fixed-layout";
85 eeprom_factory_0: eeprom@0 {
89 macaddr_factory_f100: macaddr@f100 {
109 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_f100>;
110 nvmem-cell-names = "eeprom", "mac-address";
114 nvmem-cells = <&macaddr_factory_f100>;
115 nvmem-cell-names = "mac-address";
119 mediatek,portmap = <0x3e>;
124 groups = "p0led_an", "p2led_an", "perst";