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 device_type = "memory";
14 reg = <0x0 0x8000000>;
18 bootargs = "console=ttyS0,57600";
22 compatible = "gpio-leds";
25 label = "r6220:green:power";
26 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
30 label = "r6220:green:usb";
31 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
35 label = "r6220:green:wan";
36 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
40 label = "r6220:green:wifi";
41 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
45 label = "r6220:green:wps";
46 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
51 compatible = "gpio-keys-polled";
58 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
59 linux,code = <KEY_WPS_BUTTON>;
64 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
65 linux,code = <KEY_RFKILL>;
70 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
71 linux,code = <KEY_RESTART>;
76 compatible = "gpio-export";
80 gpio-export,name = "usbpower";
81 gpio-export,output = <1>;
82 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
98 reg = <0x100000 0x100000>;
104 reg = <0x200000 0x400000>;
109 reg = <0x600000 0x1c00000>;
112 factory: partition@2e00000 {
114 reg = <0x2e00000 0x100000>;
120 reg = <0x4200000 0x3c00000>;
130 mediatek,mtd-eeprom = <&factory 0x8000>;
131 ieee80211-freq-limit = <5000000 6000000>;
137 mediatek,mtd-eeprom = <&factory 0x0000>;
138 ieee80211-freq-limit = <2400000 2500000>;
144 mtd-mac-address = <&factory 0x00000004>;
148 state_default: pinctrl0 {
150 ralink,group = "uart3", "jtag";
151 ralink,function = "gpio";