1 #include "mt7628an.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "tplink,tl-mr3020-v3", "mediatek,mt7628an-soc";
8 model = "TP-Link TL-MR3020 v3";
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 label-mac-device = ðernet;
19 bootargs = "console=ttyS0,115200";
23 compatible = "gpio-keys";
27 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_WPS_BUTTON>;
33 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
35 linux,input-type = <EV_SW>;
40 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
42 linux,input-type = <EV_SW>;
47 compatible = "gpio-leds";
50 label = "green:power";
51 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
58 trigger-sources = <&ehci_port1>, <&ohci_port1>;
59 linux,default-trigger = "usbport";
64 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
65 linux,default-trigger = "phy0tpt";
70 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
75 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
80 compatible = "gpio-export";
84 gpio-export,name = "usbpower";
85 gpio-export,output = <1>;
86 gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
95 compatible = "jedec,spi-nor";
97 spi-max-frequency = <50000000>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
112 compatible = "tplink,firmware";
114 reg = <0x20000 0x7a0000>;
119 reg = <0x7c0000 0x10000>;
123 factory: partition@7d0000 {
125 reg = <0x7d0000 0x30000>;
134 groups = "i2s", "refclk", "wdt", "p4led_an", "p2led_an", "p1led_an", "p0led_an", "wled_an";
142 mediatek,mtd-eeprom = <&factory 0x20000>;
144 nvmem-cells = <&macaddr_factory_f100>;
145 nvmem-cell-names = "mac-address";
149 nvmem-cells = <&macaddr_factory_f100>;
150 nvmem-cell-names = "mac-address";
154 compatible = "nvmem-cells";
155 #address-cells = <1>;
158 macaddr_factory_f100: macaddr@f100 {