5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "dlink,dir-615-h1", "ralink,rt3352-soc";
10 model = "D-Link DIR-615 H1";
13 led-boot = &led_status_green;
14 led-failsafe = &led_status_green;
15 led-running = &led_status_green;
16 led-upgrade = &led_status_green;
20 compatible = "gpio-leds";
23 label = "dir-615-h1:amber:status";
24 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
25 default-state = "off";
28 led_status_green: status2 {
29 label = "dir-615-h1:green:status";
30 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
35 label = "dir-615-h1:amber:wan";
36 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
40 label = "dir-615-h1:green:wan";
41 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
45 label = "dir-615-h1:blue:wps";
46 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
51 compatible = "gpio-keys-polled";
56 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RESTART>;
62 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_WPS_BUTTON>;
72 compatible = "jedec,spi-nor";
74 spi-max-frequency = <10000000>;
77 compatible = "fixed-partitions";
89 reg = <0x30000 0x10000>;
93 factory: partition@40000 {
95 reg = <0x40000 0x10000>;
101 reg = <0x50000 0x3b0000>;
108 state_default: pinctrl0 {
110 ralink,group = "i2c", "jtag", "uartf";
111 ralink,function = "gpio";
117 mtd-mac-address = <&factory 0x28>;
118 pinctrl-names = "default";
119 pinctrl-0 = <&rgmii_pins &mdio_pins>;
123 mediatek,portmap = <0x2f>;
127 ralink,mtd-eeprom = <&factory 0>;