3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,tl-wr840n-v5", "mediatek,mt7628an-soc";
10 model = "TP-Link TL-WR840N v5";
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_green;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_green;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-keys";
28 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
33 /* LED used is dual-color,dual lead LED */
35 compatible = "gpio-leds";
37 led_power_green: power {
38 label = "tl-wr840n-v5:green:power";
39 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
43 label = "tl-wr840n-v5:orange:power";
44 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
53 compatible = "jedec,spi-nor";
55 spi-max-frequency = <10000000>;
58 compatible = "fixed-partitions";
69 compatible = "tplink,firmware";
71 reg = <0x20000 0x3d0000>;
74 factory: partition@3f0000 {
76 reg = <0x3f0000 0x10000>;
93 mtd-mac-address = <&factory 0xf100>;
97 mtd-mac-address = <&factory 0xf100>;
101 mediatek,portmap = <0x3e>;
106 ralink,group = "p0led_an", "p2led_an", "perst";
107 ralink,function = "gpio";