3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "youhua,wr1200js", "mediatek,mt7621-soc";
9 model = "YouHua WR1200JS";
13 led-failsafe = &led_wps;
17 bootargs = "console=ttyS0,115200";
21 compatible = "gpio-leds";
24 label = "blue:internet";
25 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
29 function = LED_FUNCTION_WPS;
30 color = <LED_COLOR_ID_BLUE>;
31 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
35 function = LED_FUNCTION_USB;
36 color = <LED_COLOR_ID_BLUE>;
37 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
38 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
39 linux,default-trigger = "usbport";
44 compatible = "gpio-keys";
48 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
54 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_WPS_BUTTON>;
60 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RFKILL>;
70 compatible = "jedec,spi-nor";
72 spi-max-frequency = <10000000>;
75 compatible = "fixed-partitions";
87 reg = <0x30000 0x10000>;
93 reg = <0x40000 0x10000>;
97 compatible = "fixed-layout";
101 eeprom_factory_0: eeprom@0 {
105 eeprom_factory_8000: eeprom@8000 {
106 reg = <0x8000 0x200>;
109 macaddr_factory_e000: macaddr@e000 {
113 macaddr_factory_e006: macaddr@e006 {
120 compatible = "denx,uimage";
122 reg = <0x50000 0xfb0000>;
134 reg = <0x0000 0 0 0 0>;
135 nvmem-cells = <&eeprom_factory_0>;
136 nvmem-cell-names = "eeprom";
142 reg = <0x0000 0 0 0 0>;
143 nvmem-cells = <&eeprom_factory_8000>;
144 nvmem-cell-names = "eeprom";
145 ieee80211-freq-limit = <5000000 6000000>;
155 nvmem-cells = <&macaddr_factory_e000>;
156 nvmem-cell-names = "mac-address";
162 phy-handle = <ðphy0>;
164 nvmem-cells = <&macaddr_factory_e006>;
165 nvmem-cell-names = "mac-address";
169 ethphy0: ethernet-phy@0 {
200 groups = "i2c", "uart2", "uart3", "wdt";