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;
18 bootargs = "console=ttyS0,115200";
22 compatible = "gpio-keys";
26 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_WPS_BUTTON>;
32 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
34 linux,input-type = <EV_SW>;
39 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
41 linux,input-type = <EV_SW>;
46 compatible = "gpio-leds";
49 label = "green:power";
50 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
56 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
57 trigger-sources = <&ehci_port1>, <&ohci_port1>;
58 linux,default-trigger = "usbport";
63 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
64 linux,default-trigger = "phy0tpt";
69 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
74 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
83 compatible = "jedec,spi-nor";
85 spi-max-frequency = <50000000>;
89 compatible = "fixed-partitions";
100 compatible = "tplink,firmware";
102 reg = <0x20000 0x7a0000>;
107 reg = <0x7c0000 0x10000>;
111 factory: partition@7d0000 {
113 reg = <0x7d0000 0x30000>;
122 groups = "i2s", "refclk", "wdt", "p2led_an", "p1led_an", "p0led_an", "wled_an";
130 mediatek,mtd-eeprom = <&factory 0x20000>;
132 nvmem-cells = <&macaddr_factory_f100>;
133 nvmem-cell-names = "mac-address";
137 nvmem-cells = <&macaddr_factory_f100>;
138 nvmem-cell-names = "mac-address";
142 compatible = "nvmem-cells";
143 #address-cells = <1>;
146 macaddr_factory_f100: macaddr@f100 {