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>;
92 mediatek,mtd-eeprom = <&factory 0x0>;
94 nvmem-cells = <&macaddr_factory_f100>;
95 nvmem-cell-names = "mac-address";
99 nvmem-cells = <&macaddr_factory_f100>;
100 nvmem-cell-names = "mac-address";
104 mediatek,portmap = <0x3e>;
109 groups = "p0led_an", "p2led_an", "perst";
115 compatible = "nvmem-cells";
116 #address-cells = <1>;
119 macaddr_factory_f100: macaddr@f100 {