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>;
38 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
44 compatible = "gpio-leds";
47 label = "green:power";
48 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
54 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
55 trigger-sources = <&ehci_port1>, <&ohci_port1>;
56 linux,default-trigger = "usbport";
61 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
62 linux,default-trigger = "phy0tpt";
67 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
72 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
81 compatible = "jedec,spi-nor";
83 spi-max-frequency = <10000000>;
86 compatible = "fixed-partitions";
97 compatible = "tplink,firmware";
99 reg = <0x20000 0x7a0000>;
104 reg = <0x7c0000 0x10000>;
108 factory: partition@7d0000 {
110 reg = <0x7d0000 0x30000>;
119 groups = "i2s", "refclk", "wdt", "p2led_an", "p1led_an", "p0led_an", "wled_an";
127 mediatek,mtd-eeprom = <&factory 0x20000>;
129 nvmem-cells = <&macaddr_factory_f100>;
130 nvmem-cell-names = "mac-address";
134 nvmem-cells = <&macaddr_factory_f100>;
135 nvmem-cell-names = "mac-address";
139 compatible = "nvmem-cells";
140 #address-cells = <1>;
143 macaddr_factory_f100: macaddr@f100 {