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>;
88 compatible = "fixed-partitions";
99 compatible = "tplink,firmware";
101 reg = <0x20000 0x7a0000>;
106 reg = <0x7c0000 0x10000>;
110 factory: partition@7d0000 {
112 reg = <0x7d0000 0x30000>;
121 groups = "i2s", "refclk", "wdt", "p2led_an", "p1led_an", "p0led_an", "wled_an";
129 mediatek,mtd-eeprom = <&factory 0x20000>;
131 nvmem-cells = <&macaddr_factory_f100>;
132 nvmem-cell-names = "mac-address";
136 nvmem-cells = <&macaddr_factory_f100>;
137 nvmem-cell-names = "mac-address";
141 compatible = "nvmem-cells";
142 #address-cells = <1>;
145 macaddr_factory_f100: macaddr@f100 {