5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "dlink,dir-620-a1", "ralink,rt3050-soc";
10 model = "D-Link DIR-620 A1";
13 compatible = "cfi-flash";
14 reg = <0x1f000000 0x800000>;
28 reg = <0x30000 0x10000>;
32 factory: partition@40000 {
34 reg = <0x40000 0x10000>;
40 reg = <0x50000 0x7b0000>;
45 compatible = "gpio-keys-polled";
52 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
58 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
64 compatible = "gpio-leds";
67 label = "dir-620-a1:amber:status";
68 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
72 label = "dir-620-a1:green:status";
73 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
77 label = "dir-620-a1:amber:wan";
78 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
82 label = "dir-620-a1:green:wan";
83 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
87 label = "dir-620-a1:blue:wps";
88 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
92 label = "dir-620-a1:amber:wps";
93 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
99 state_default: pinctrl0 {
101 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
102 ralink,function = "gpio";
108 mtd-mac-address = <&factory 0x4>;
112 mediatek,portmap = <0x2f>;
116 ralink,mtd-eeprom = <&factory 0>;