3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "mtc,wr1201", "mediatek,mt7621-soc";
9 model = "MTC Wireless Router WR1201";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 label-mac-device = &gmac0;
20 compatible = "gpio-leds";
23 function = LED_FUNCTION_POWER;
24 color = <LED_COLOR_ID_GREEN>;
25 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
29 function = LED_FUNCTION_USB;
30 color = <LED_COLOR_ID_GREEN>;
31 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
32 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
33 linux,default-trigger = "usbport";
37 label = "green:eth_link";
38 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
42 function = LED_FUNCTION_WPS;
43 color = <LED_COLOR_ID_GREEN>;
44 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
49 compatible = "gpio-keys";
53 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
63 compatible = "jedec,spi-nor";
65 spi-max-frequency = <10000000>;
68 compatible = "fixed-partitions";
80 reg = <0x30000 0x10000>;
86 reg = <0x40000 0x10000>;
90 compatible = "fixed-layout";
94 eeprom_factory_0: eeprom@0 {
98 eeprom_factory_8000: eeprom@8000 {
102 macaddr_factory_4: macaddr@4 {
103 compatible = "mac-base";
105 #nvmem-cell-cells = <1>;
111 compatible = "denx,uimage";
113 reg = <0x50000 0xfa0000>;
117 label = "Second_Config";
118 reg = <0xff0000 0x10000>;
126 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
130 nvmem-cells = <&macaddr_factory_4 0>;
131 nvmem-cell-names = "mac-address";
159 nvmem-cells = <&macaddr_factory_4 1>;
160 nvmem-cell-names = "mac-address";
175 reg = <0x0000 0 0 0 0>;
176 ieee80211-freq-limit = <5000000 6000000>;
177 nvmem-cells = <&eeprom_factory_8000>;
178 nvmem-cell-names = "eeprom";
189 reg = <0x0000 0 0 0 0>;
190 ieee80211-freq-limit = <2400000 2500000>;
191 nvmem-cells = <&eeprom_factory_0>;
192 nvmem-cell-names = "eeprom";