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 device_type = "memory";
25 reg = <0x0 0x4000000>;
29 compatible = "gpio-keys-polled";
34 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
38 /* LED used is dual-color,dual lead LED */
40 compatible = "gpio-leds";
42 led_power_green: power {
43 label = "tl-wr840n-v5:green:power";
44 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
48 label = "tl-wr840n-v5:orange:power";
49 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
58 compatible = "jedec,spi-nor";
60 spi-max-frequency = <10000000>;
61 m25p,chunked-io = <32>;
64 compatible = "fixed-partitions";
76 reg = <0x20000 0x3d0000>;
79 factory: partition@3f0000 {
81 reg = <0x3f0000 0x10000>;
98 mtd-mac-address = <&factory 0xf100>;
99 mediatek,mtd-eeprom = <&factory 0x10000>;
103 mtd-mac-address = <&factory 0xf100>;
104 mediatek,portmap = "wllll";
108 state_default: pinctrl0 {
110 ralink,group = "p0led_an", "p2led_an", "perst";
111 ralink,function = "gpio";