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-status = &led_power_green;
17 bootargs = "console=ttyS0,115200";
21 device_type = "memory";
22 reg = <0x0 0x4000000>;
26 compatible = "gpio-keys-polled";
31 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
35 /* LED used is dual-color,dual lead LED */
37 compatible = "gpio-leds";
39 led_power_green: power {
40 label = "tl-wr840n-v5:green:power";
41 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
45 label = "tl-wr840n-v5:orange:power";
46 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
55 compatible = "jedec,spi-nor";
57 spi-max-frequency = <10000000>;
58 m25p,chunked-io = <32>;
61 compatible = "fixed-partitions";
73 reg = <0x20000 0x3d0000>;
76 factory: partition@3f0000 {
78 reg = <0x3f0000 0x10000>;
95 mtd-mac-address = <&factory 0xf100>;
96 mediatek,mtd-eeprom = <&factory 0x10000>;
100 mtd-mac-address = <&factory 0xf100>;
101 mediatek,portmap = "wllll";
105 state_default: pinctrl0 {
107 ralink,group = "p0led_an", "p2led_an", "perst";
108 ralink,function = "gpio";