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 bootargs = "console=ttyS0,115200";
17 device_type = "memory";
18 reg = <0x0 0x4000000>;
22 compatible = "gpio-keys-polled";
29 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
33 /* LED used is dual-color,dual lead LED */
35 compatible = "gpio-leds";
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>;
55 compatible = "jedec,spi-nor";
57 spi-max-frequency = <10000000>;
58 m25p,chunked-io = <32>;
68 reg = <0x20000 0x3d0000>;
71 factory: partition@3f0000 {
73 reg = <0x3f0000 0x10000>;
89 mtd-mac-address = <&factory 0xf100>;
90 mediatek,mtd-eeprom = <&factory 0x10000>;
94 mtd-mac-address = <&factory 0xf100>;
95 mediatek,portmap = "wllll";
99 state_default: pinctrl0 {
101 ralink,group = "p0led_an", "p2led_an", "perst";
102 ralink,function = "gpio";