1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
17 bootargs = "console=ttyS0,57600";
21 compatible = "gpio-leds";
24 label = "iodata:green:wps";
25 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
29 label = "iodata:green:power";
30 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
35 compatible = "gpio-keys";
39 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
45 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
47 linux,input-type = <EV_SW>;
52 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
61 partitions: partitions {
62 compatible = "fixed-partitions";
68 reg = <0x0 0x0100000>;
74 reg = <0x0100000 0x0100000>;
78 factory: partition@200000 {
80 reg = <0x0200000 0x0100000>;
85 reg = <0x0300000 0x0100000>;
91 reg = <0x0400000 0x0400000>;
96 reg = <0x0800000 0x2e00000>;
101 reg = <0x3600000 0x0100000>;
106 label = "firmware_2";
107 reg = <0x3700000 0x3200000>;
112 reg = <0x6900000 0x0100000>;
118 reg = <0x6a00000 0x0100000>;
124 mtd-mac-address = <&factory 0xe000>;
133 ralink,group = "uart2", "uart3", "wdt";
134 ralink,function = "gpio";