1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7628an.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "ravpower,rp-wd009", "mediatek,mt7628an-soc";
11 model = "RAVPower RP-WD009";
14 led-boot = &led_globe;
15 led-failsafe = &led_globe;
16 led-running = &led_globe;
17 led-upgrade = &led_globe;
21 bootargs = "console=ttyS0,57600";
25 compatible = "gpio-leds";
28 label = "rp-wd009:white:globe";
29 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
33 label = "rp-wd009:white:wlan2";
34 gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
35 linux,default-trigger = "phy0tpt";
39 label = "rp-wd009:white:wlan5";
40 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
41 linux,default-trigger = "phy1tpt";
45 label = "rp-wd009:white:sd";
46 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
50 label = "rp-wd009:red:sd";
51 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
56 compatible = "gpio-keys";
60 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
64 /* Power interrupt on Pin 39 */
68 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_RFKILL>;
74 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_COPY>;
83 gpios = <20 GPIO_ACTIVE_HIGH>;
85 line-name = "mt7610-power";
91 groups = "uart1", "wled_an", "p0led_an", "p2led_an", "p3led_an",
92 "p4led_an", "uart2", "pwm0", "i2s";
112 /* Custom PMIC at 0x0a */
121 reg = <0x0000 0 0 0 0>;
122 mediatek,mtd-eeprom = <&factory 0x8000>;
123 ieee80211-freq-limit = <5000000 6000000>;
131 compatible = "jedec,spi-nor";
133 spi-max-frequency = <40000000>;
136 compatible = "fixed-partitions";
137 #address-cells = <1>;
141 label = "bootloader";
148 reg = <0x30000 0x10000>;
152 factory: partition@40000 {
154 reg = <0x40000 0x10000>;
160 reg = <0x50000 0x180000>;
165 reg = <0x1d0000 0x10000>;
170 label = "user_backup";
171 reg = <0x1e0000 0x10000>;
177 reg = <0x1f0000 0x10000>;
182 compatible = "denx,uimage";
184 reg = <0x200000 0xdf0000>;
189 reg = <0xff0000 0x10000>;
201 mtd-mac-address = <&factory 0x4>;