5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "youhua,wr1200js", "mediatek,mt7621-soc";
10 model = "YouHua WR1200JS";
14 led-failsafe = &led_wps;
15 led-running = &led_wps;
16 led-upgrade = &led_wps;
20 device_type = "memory";
21 reg = <0x0 0x8000000>;
25 bootargs = "console=ttyS0,115200";
29 compatible = "gpio-leds";
32 label = "wr1200js:blue:internet";
33 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
37 label = "wr1200js:blue:wps";
38 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
42 label = "wr1200js:blue:usb";
43 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
44 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
45 linux,default-trigger = "usbport";
50 compatible = "gpio-keys-polled";
55 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
61 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_WPS_BUTTON>;
67 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RFKILL>;
77 compatible = "jedec,spi-nor";
79 spi-max-frequency = <10000000>;
80 m25p,chunked-io = <32>;
83 compatible = "fixed-partitions";
95 reg = <0x30000 0x10000>;
99 factory: partition@40000 {
101 reg = <0x40000 0x10000>;
107 reg = <0x50000 0xfb0000>;
119 reg = <0x0000 0 0 0 0>;
120 mediatek,mtd-eeprom = <&factory 0x0000>;
126 reg = <0x0000 0 0 0 0>;
127 mediatek,mtd-eeprom = <&factory 0x8000>;
128 ieee80211-freq-limit = <5000000 6000000>;
138 mtd-mac-address = <&factory 0xe000>;
142 state_default: pinctrl0 {
144 ralink,group = "i2c", "uart2", "uart3", "wdt";
145 ralink,function = "gpio";