5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "netgear,r6220", "mediatek,mt7621-soc";
10 model = "Netgear R6220";
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 = "r6220:green:power";
33 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
37 label = "r6220:green:usb";
38 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
39 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
40 linux,default-trigger = "usbport";
44 label = "r6220:green:wan";
45 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
49 label = "r6220:green:wifi";
50 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
54 label = "r6220:green:wps";
55 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
60 compatible = "gpio-keys-polled";
65 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
66 linux,code = <KEY_WPS_BUTTON>;
71 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
72 linux,code = <KEY_RFKILL>;
77 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
78 linux,code = <KEY_RESTART>;
83 compatible = "gpio-export";
87 gpio-export,name = "usbpower";
88 gpio-export,output = <1>;
89 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
98 compatible = "fixed-partitions";
104 reg = <0x0 0x100000>;
110 reg = <0x100000 0x100000>;
116 reg = <0x200000 0x400000>;
121 reg = <0x600000 0x1c00000>;
124 factory: partition@2e00000 {
126 reg = <0x2e00000 0x100000>;
132 reg = <0x4200000 0x3c00000>;
144 reg = <0x0000 0 0 0 0>;
145 mediatek,mtd-eeprom = <&factory 0x8000>;
146 ieee80211-freq-limit = <5000000 6000000>;
152 reg = <0x0000 0 0 0 0>;
153 mediatek,mtd-eeprom = <&factory 0x0000>;
154 ieee80211-freq-limit = <2400000 2500000>;
159 mtd-mac-address = <&factory 0x00000004>;
163 state_default: pinctrl0 {
165 ralink,group = "uart3", "jtag";
166 ralink,function = "gpio";