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;
18 device_type = "memory";
19 reg = <0x0 0x8000000>;
23 bootargs = "console=ttyS0,115200";
27 compatible = "gpio-leds";
30 label = "wr1200js:blue:internet";
31 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
35 label = "wr1200js:blue:wps";
36 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
40 label = "wr1200js:blue:usb";
41 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
42 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
43 linux,default-trigger = "usbport";
48 compatible = "gpio-keys-polled";
53 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
59 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_WPS_BUTTON>;
65 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_RFKILL>;
75 compatible = "jedec,spi-nor";
77 spi-max-frequency = <10000000>;
80 compatible = "fixed-partitions";
92 reg = <0x30000 0x10000>;
96 factory: partition@40000 {
98 reg = <0x40000 0x10000>;
103 compatible = "denx,uimage";
105 reg = <0x50000 0xfb0000>;
117 reg = <0x0000 0 0 0 0>;
118 mediatek,mtd-eeprom = <&factory 0x0000>;
124 reg = <0x0000 0 0 0 0>;
125 mediatek,mtd-eeprom = <&factory 0x8000>;
126 ieee80211-freq-limit = <5000000 6000000>;
136 mtd-mac-address = <&factory 0xe000>;
140 state_default: pinctrl0 {
142 ralink,group = "i2c", "uart2", "uart3", "wdt";
143 ralink,function = "gpio";