5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "mtc,wr1201", "mediatek,mt7621-soc";
10 model = "MTC Wireless Router WR1201";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 bootargs = "console=ttyS0,57600";
24 compatible = "gpio-leds";
27 label = "wr1201:green:power";
28 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
32 label = "wr1201:green:usb";
33 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
34 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
35 linux,default-trigger = "usbport";
39 label = "wr1201:green:eth_link";
40 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
44 label = "wr1201:green:wps";
45 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
50 compatible = "gpio-keys-polled";
55 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
65 compatible = "jedec,spi-nor";
67 spi-max-frequency = <10000000>;
70 compatible = "fixed-partitions";
82 reg = <0x30000 0x10000>;
86 factory: partition@40000 {
88 reg = <0x40000 0x10000>;
93 compatible = "denx,uimage";
95 reg = <0x50000 0xfa0000>;
99 label = "Second_Config";
100 reg = <0xff0000 0x10000>;
108 mtd-mac-address = <&factory 0x4>;
121 reg = <0x0000 0 0 0 0>;
122 mediatek,mtd-eeprom = <&factory 0x8000>;
123 ieee80211-freq-limit = <5000000 6000000>;
134 reg = <0x0000 0 0 0 0>;
135 mediatek,mtd-eeprom = <&factory 0x0000>;
136 ieee80211-freq-limit = <2400000 2500000>;
147 state_default: pinctrl0 {
149 ralink,group = "rgmii2";
150 ralink,function = "gpio";