1 // SPDX-License-Identifier: GPL-2.0
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
11 led-boot = &led_power_green;
12 led-failsafe = &led_power_green;
13 led-running = &led_power_green;
14 led-upgrade = &led_power_green;
18 bootargs = "console=ttyS0,57600";
22 compatible = "gpio-leds";
24 led_power_green: power_green {
25 label = "wrc-gst:green:power";
26 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
30 label = "wrc-gst:blue:power";
31 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
35 label = "wrc-gst:red:wps";
36 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
40 label = "wrc-gst:red:power";
41 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
46 compatible = "gpio-keys-polled";
51 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
57 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_WPS_BUTTON>;
63 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
65 linux,input-type = <EV_SW>;
70 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
72 linux,input-type = <EV_SW>;
77 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
79 linux,input-type = <EV_SW>;
84 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
86 linux,input-type = <EV_SW>;
92 mtd-mac-address = <&factory 0xe000>;
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <10000000>;
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
115 label = "u-boot-env";
116 reg = <0x30000 0x10000>;
120 factory: partition@40000 {
122 reg = <0x40000 0x10000>;
127 compatible = "denx,uimage";
129 reg = <0x50000 0xb00000>;
133 label = "tm_pattern";
134 reg = <0xb50000 0x380000>;
140 reg = <0xed0000 0x80000>;
146 reg = <0xf50000 0x30000>;
152 reg = <0xf80000 0x80000>;
160 state_default: pinctrl0 {
162 ralink,group = "uart3", "jtag", "wdt", "sdhci";
163 ralink,function = "gpio";
170 /* WRC-xxxxGST has MT7615 for 2.4/5 GHz wifi, but it's not supported */