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-status = &led_power;
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_WPS_BUTTON>;
37 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
43 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
49 compatible = "gpio-leds";
52 label = "tl-mr3020-v3:green:power";
53 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
58 label = "tl-mr3020-v3:green:3g";
59 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
63 label = "tl-mr3020-v3:green:wlan";
64 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
68 label = "tl-mr3020-v3:green:wps";
69 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
73 label = "tl-mr3020-v3:green:lan";
74 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
83 compatible = "jedec,spi-nor";
85 spi-max-frequency = <10000000>;
86 m25p,chunked-io = <32>;
89 compatible = "fixed-partitions";
101 reg = <0x20000 0x7a0000>;
106 reg = <0x7c0000 0x10000>;
110 factory: partition@7d0000 {
112 reg = <0x7d0000 0x30000>;
128 state_default: pinctrl0 {
130 ralink,group = "i2s", "refclk", "wdt", "p2led_an", "p1led_an", "p0led_an", "wled_an";
131 ralink,function = "gpio";
138 mtd-mac-address = <&factory 0xf100>;
139 mediatek,mtd-eeprom = <&factory 0x20000>;
143 mtd-mac-address = <&factory 0xf100>;