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 device_type = "memory";
21 reg = <0x0 0x8000000>;
25 bootargs = "console=ttyS0,57600";
29 compatible = "gpio-leds";
32 label = "wr1201:green:power";
33 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
37 label = "wr1201:green:usb";
38 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
39 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
40 linux,default-trigger = "usbport";
44 label = "wr1201:green:eth_link";
45 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
49 label = "wr1201:green:wps";
50 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
55 compatible = "gpio-keys-polled";
60 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
70 compatible = "jedec,spi-nor";
72 spi-max-frequency = <10000000>;
73 m25p,chunked-io = <32>;
76 compatible = "fixed-partitions";
88 reg = <0x30000 0x10000>;
92 factory: partition@40000 {
94 reg = <0x40000 0x10000>;
99 compatible = "denx,uimage";
101 reg = <0x50000 0xfa0000>;
105 label = "Second_Config";
106 reg = <0xff0000 0x10000>;
114 mtd-mac-address = <&factory 0x4>;
127 reg = <0x0000 0 0 0 0>;
128 mediatek,mtd-eeprom = <&factory 0x8000>;
129 ieee80211-freq-limit = <5000000 6000000>;
140 reg = <0x0000 0 0 0 0>;
141 mediatek,mtd-eeprom = <&factory 0x0000>;
142 ieee80211-freq-limit = <2400000 2500000>;
153 state_default: pinctrl0 {
155 ralink,group = "rgmii2";
156 ralink,function = "gpio";