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-status = &led_power;
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
22 bootargs = "console=ttyS0,57600";
26 compatible = "gpio-leds";
29 label = "r6220:green:power";
30 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
34 label = "r6220:green:usb";
35 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
36 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
37 linux,default-trigger = "usbport";
41 label = "r6220:green:wan";
42 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
46 label = "r6220:green:wifi";
47 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
51 label = "r6220:green:wps";
52 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-keys-polled";
62 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
63 linux,code = <KEY_WPS_BUTTON>;
68 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
69 linux,code = <KEY_RFKILL>;
74 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
75 linux,code = <KEY_RESTART>;
80 compatible = "gpio-export";
84 gpio-export,name = "usbpower";
85 gpio-export,output = <1>;
86 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
95 compatible = "fixed-partitions";
101 reg = <0x0 0x100000>;
107 reg = <0x100000 0x100000>;
113 reg = <0x200000 0x400000>;
118 reg = <0x600000 0x1c00000>;
121 factory: partition@2e00000 {
123 reg = <0x2e00000 0x100000>;
129 reg = <0x4200000 0x3c00000>;
141 reg = <0x0000 0 0 0 0>;
142 mediatek,mtd-eeprom = <&factory 0x8000>;
143 ieee80211-freq-limit = <5000000 6000000>;
149 reg = <0x0000 0 0 0 0>;
150 mediatek,mtd-eeprom = <&factory 0x0000>;
151 ieee80211-freq-limit = <2400000 2500000>;
156 mtd-mac-address = <&factory 0x00000004>;
160 state_default: pinctrl0 {
162 ralink,group = "uart3", "jtag";
163 ralink,function = "gpio";