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;
17 label-mac-device = ðernet;
21 bootargs = "console=ttyS0,57600";
25 compatible = "gpio-leds";
28 label = "wr1201:green:power";
29 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
33 label = "wr1201:green:usb";
34 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
35 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
36 linux,default-trigger = "usbport";
40 label = "wr1201:green:eth_link";
41 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
45 label = "wr1201:green:wps";
46 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
51 compatible = "gpio-keys-polled";
56 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RESTART>;
66 compatible = "jedec,spi-nor";
68 spi-max-frequency = <10000000>;
71 compatible = "fixed-partitions";
83 reg = <0x30000 0x10000>;
87 factory: partition@40000 {
89 reg = <0x40000 0x10000>;
94 compatible = "denx,uimage";
96 reg = <0x50000 0xfa0000>;
100 label = "Second_Config";
101 reg = <0xff0000 0x10000>;
109 mtd-mac-address = <&factory 0x4>;
122 reg = <0x0000 0 0 0 0>;
123 mediatek,mtd-eeprom = <&factory 0x8000>;
124 ieee80211-freq-limit = <5000000 6000000>;
135 reg = <0x0000 0 0 0 0>;
136 mediatek,mtd-eeprom = <&factory 0x0000>;
137 ieee80211-freq-limit = <2400000 2500000>;
148 state_default: pinctrl0 {
150 ralink,group = "rgmii2";
151 ralink,function = "gpio";