5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "dlink,dap-1350", "ralink,rt3052-soc";
10 model = "D-Link DAP-1350";
13 led-status = &led_power_blue;
17 bootargs = "console=ttyS0,115200";
21 compatible = "cfi-flash";
22 reg = <0x1f000000 0x800000>;
34 devdata: partition@30000 {
36 reg = <0x30000 0x10000>;
42 reg = <0x40000 0x30000>;
48 reg = <0x70000 0x40000>;
54 reg = <0xb0000 0x750000>;
59 compatible = "gpio-leds";
61 led_power_blue: power {
62 label = "dap-1350:blue:power";
63 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
67 label = "dap-1350:red:power";
68 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
72 label = "dap-1350:blue:wps";
73 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
78 compatible = "gpio-keys-polled";
85 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_RESTART>;
91 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_WPS_BUTTON>;
97 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
103 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
104 linux,code = <BTN_1>;
110 state_default: pinctrl0 {
112 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
113 ralink,function = "gpio";
119 mtd-mac-address = <&devdata 0x2e>;
123 mediatek,portmap = <0x2f>;
127 ralink,mtd-eeprom = <&devdata 0>;