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-boot = &led_power_blue;
14 led-failsafe = &led_power_blue;
15 led-running = &led_power_blue;
16 led-upgrade = &led_power_blue;
20 bootargs = "console=ttyS0,115200";
24 compatible = "cfi-flash";
25 reg = <0x1f000000 0x800000>;
30 compatible = "fixed-partitions";
40 devdata: partition@30000 {
42 reg = <0x30000 0x10000>;
48 reg = <0x40000 0x30000>;
54 reg = <0x70000 0x40000>;
60 reg = <0xb0000 0x750000>;
66 compatible = "gpio-leds";
68 led_power_blue: power {
69 label = "dap-1350:blue:power";
70 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
74 label = "dap-1350:red:power";
75 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
79 label = "dap-1350:blue:wps";
80 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
85 compatible = "gpio-keys-polled";
90 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
91 linux,code = <KEY_RESTART>;
96 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
97 linux,code = <KEY_WPS_BUTTON>;
102 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
103 linux,code = <BTN_0>;
108 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
109 linux,code = <BTN_1>;
115 state_default: pinctrl0 {
117 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
118 ralink,function = "gpio";
124 mtd-mac-address = <&devdata 0x2e>;
128 mediatek,portmap = <0x2f>;
132 ralink,mtd-eeprom = <&devdata 0>;