3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,tl-mr3020-v3", "mediatek,mt7628an-soc";
10 model = "TP-Link TL-MR3020 v3";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
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_WPS_BUTTON>;
40 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
46 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
52 compatible = "gpio-leds";
55 label = "tl-mr3020-v3:green:power";
56 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
61 label = "tl-mr3020-v3:green:3g";
62 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
63 trigger-sources = <&ehci_port1>, <&ohci_port1>;
64 linux,default-trigger = "usbport";
68 label = "tl-mr3020-v3:green:wlan";
69 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
73 label = "tl-mr3020-v3:green:wps";
74 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
78 label = "tl-mr3020-v3:green:lan";
79 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
88 compatible = "jedec,spi-nor";
90 spi-max-frequency = <10000000>;
91 m25p,chunked-io = <32>;
94 compatible = "fixed-partitions";
105 compatible = "tplink,firmware";
107 reg = <0x20000 0x7a0000>;
112 reg = <0x7c0000 0x10000>;
116 factory: partition@7d0000 {
118 reg = <0x7d0000 0x30000>;
134 state_default: pinctrl0 {
136 ralink,group = "i2s", "refclk", "wdt", "p2led_an", "p1led_an", "p0led_an", "wled_an";
137 ralink,function = "gpio";
144 mtd-mac-address = <&factory 0xf100>;
145 mediatek,mtd-eeprom = <&factory 0x20000>;
149 mtd-mac-address = <&factory 0xf100>;