1 #include "mt7628an.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "tplink,tl-mr3020-v3", "mediatek,mt7628an-soc";
9 model = "TP-Link TL-MR3020 v3";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 label-mac-device = ðernet;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-keys";
28 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
34 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
36 linux,input-type = <EV_SW>;
41 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
43 linux,input-type = <EV_SW>;
48 compatible = "gpio-leds";
51 function = LED_FUNCTION_POWER;
52 color = <LED_COLOR_ID_GREEN>;
53 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
59 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
60 trigger-sources = <&ehci_port1>, <&ohci_port1>;
61 linux,default-trigger = "usbport";
65 function = LED_FUNCTION_WLAN;
66 color = <LED_COLOR_ID_GREEN>;
67 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
68 linux,default-trigger = "phy0tpt";
72 function = LED_FUNCTION_WPS;
73 color = <LED_COLOR_ID_GREEN>;
74 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
78 function = LED_FUNCTION_LAN;
79 color = <LED_COLOR_ID_GREEN>;
80 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
85 compatible = "gpio-export";
89 gpio-export,name = "usbpower";
90 gpio-export,output = <1>;
91 gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
100 compatible = "jedec,spi-nor";
102 spi-max-frequency = <50000000>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
117 compatible = "tplink,firmware";
119 reg = <0x20000 0x7a0000>;
124 reg = <0x7c0000 0x10000>;
130 reg = <0x7d0000 0x30000>;
134 compatible = "fixed-layout";
135 #address-cells = <1>;
138 eeprom_factory_20000: eeprom@20000 {
139 reg = <0x20000 0x400>;
142 macaddr_factory_f100: macaddr@f100 {
153 groups = "i2s", "refclk", "wdt", "p4led_an", "p2led_an", "p1led_an", "p0led_an", "wled_an";
161 nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100>;
162 nvmem-cell-names = "eeprom", "mac-address";
166 nvmem-cells = <&macaddr_factory_f100>;
167 nvmem-cell-names = "mac-address";