1 #include "mt7628an.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "tplink,tl-wr840n-v5", "mediatek,mt7628an-soc";
8 model = "TP-Link TL-WR840N v5";
11 led-boot = &led_power_green;
12 led-failsafe = &led_power_green;
13 led-running = &led_power_green;
14 led-upgrade = &led_power_green;
18 bootargs = "console=ttyS0,115200";
22 compatible = "gpio-keys";
26 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
31 /* LED used is dual-color,dual lead LED */
33 compatible = "gpio-leds";
35 led_power_green: power {
36 label = "green:power";
37 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
41 label = "orange:power";
42 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
51 compatible = "jedec,spi-nor";
53 spi-max-frequency = <10000000>;
56 compatible = "fixed-partitions";
67 compatible = "tplink,firmware";
69 reg = <0x20000 0x3d0000>;
72 factory: partition@3f0000 {
74 reg = <0x3f0000 0x10000>;
91 mtd-mac-address = <&factory 0xf100>;
95 mtd-mac-address = <&factory 0xf100>;
99 mediatek,portmap = <0x3e>;
104 groups = "p0led_an", "p2led_an", "perst";