1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "ravpower,rp-wd009", "mediatek,mt7628an-soc";
10 model = "RAVPower RP-WD009";
13 led-boot = &led_globe;
14 led-failsafe = &led_globe;
15 led-running = &led_globe;
16 led-upgrade = &led_globe;
20 bootargs = "console=ttyS0,57600";
24 compatible = "gpio-leds";
27 label = "rp-wd009:white:globe";
28 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
32 label = "rp-wd009:white:wlan2";
33 gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
34 linux,default-trigger = "phy0tpt";
38 label = "rp-wd009:white:wlan5";
39 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
40 linux,default-trigger = "phy1tpt";
44 label = "rp-wd009:white:sd";
45 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
49 label = "rp-wd009:red:sd";
50 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
55 compatible = "gpio-keys";
59 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_RESTART>;
63 /* Power interrupt on Pin 39 */
67 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RFKILL>;
73 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_COPY>;
82 gpios = <20 GPIO_ACTIVE_HIGH>;
84 line-name = "mt7610-power";
90 groups = "uart1", "wled_an", "p0led_an", "p2led_an", "p3led_an",
91 "p4led_an", "uart2", "pwm0", "i2s";
111 /* Custom PMIC at 0x0a */
120 reg = <0x0000 0 0 0 0>;
121 mediatek,mtd-eeprom = <&factory 0x8000>;
122 ieee80211-freq-limit = <5470000 6000000>;
130 compatible = "jedec,spi-nor";
132 spi-max-frequency = <40000000>;
135 compatible = "fixed-partitions";
136 #address-cells = <1>;
140 label = "bootloader";
147 reg = <0x30000 0x10000>;
151 factory: partition@40000 {
153 reg = <0x40000 0x10000>;
159 reg = <0x50000 0x180000>;
164 reg = <0x1d0000 0x10000>;
169 label = "user_backup";
170 reg = <0x1e0000 0x10000>;
176 reg = <0x1f0000 0x10000>;
181 compatible = "denx,uimage";
183 reg = <0x200000 0xdf0000>;
188 reg = <0xff0000 0x10000>;
200 mtd-mac-address = <&factory 0x4>;