3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "dlink,dir-620-a1", "ralink,rt3050-soc";
9 model = "D-Link DIR-620 A1";
12 led-boot = &led_status_green;
13 led-failsafe = &led_status_green;
14 led-running = &led_status_green;
15 led-upgrade = &led_status_green;
19 compatible = "cfi-flash";
20 reg = <0x1f000000 0x800000>;
25 compatible = "fixed-partitions";
37 reg = <0x30000 0x10000>;
41 factory: partition@40000 {
43 reg = <0x40000 0x10000>;
47 compatible = "fixed-layout";
51 eeprom_factory_0: eeprom@0 {
55 macaddr_factory_4: macaddr@4 {
62 compatible = "denx,uimage";
64 reg = <0x50000 0x7b0000>;
70 compatible = "gpio-keys-polled";
75 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RESTART>;
81 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_WPS_BUTTON>;
87 compatible = "gpio-leds";
90 function = LED_FUNCTION_STATUS;
91 color = <LED_COLOR_ID_AMBER>;
92 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
95 led_status_green: status2 {
96 function = LED_FUNCTION_STATUS;
97 color = <LED_COLOR_ID_GREEN>;
98 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
102 function = LED_FUNCTION_WAN;
103 color = <LED_COLOR_ID_AMBER>;
104 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
108 function = LED_FUNCTION_WAN;
109 color = <LED_COLOR_ID_GREEN>;
110 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
114 function = LED_FUNCTION_WPS;
115 color = <LED_COLOR_ID_BLUE>;
116 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
120 function = LED_FUNCTION_WPS;
121 color = <LED_COLOR_ID_AMBER>;
122 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
129 groups = "i2c", "jtag", "rgmii", "mdio", "uartf";
135 nvmem-cells = <&macaddr_factory_4>;
136 nvmem-cell-names = "mac-address";
140 mediatek,portmap = <0x2f>;
144 nvmem-cells = <&eeprom_factory_0>;
145 nvmem-cell-names = "eeprom";