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 compatible = "gpio-leds";
23 label = "white:globe";
24 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
28 label = "white:wlan2";
29 gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
30 linux,default-trigger = "phy0tpt";
34 label = "white:wlan5";
35 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy1tpt";
41 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
46 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
51 compatible = "gpio-keys";
55 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
59 /* Power interrupt on Pin 39 */
63 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_RFKILL>;
69 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_COPY>;
78 gpios = <20 GPIO_ACTIVE_HIGH>;
80 line-name = "mt7610-power";
86 groups = "uart1", "wled_an", "p0led_an", "p2led_an", "p3led_an",
87 "p4led_an", "uart2", "pwm0", "i2s";
99 /* Custom PMIC at 0x0a */
108 reg = <0x0000 0 0 0 0>;
109 mediatek,mtd-eeprom = <&factory 0x8000>;
110 ieee80211-freq-limit = <5470000 6000000>;
118 compatible = "jedec,spi-nor";
120 spi-max-frequency = <40000000>;
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
128 label = "bootloader";
135 reg = <0x30000 0x10000>;
139 factory: partition@40000 {
141 reg = <0x40000 0x10000>;
147 reg = <0x50000 0x180000>;
152 reg = <0x1d0000 0x10000>;
157 label = "user_backup";
158 reg = <0x1e0000 0x10000>;
164 reg = <0x1f0000 0x10000>;
169 compatible = "denx,uimage";
171 reg = <0x200000 0xdf0000>;
176 reg = <0xff0000 0x10000>;
186 mediatek,mtd-eeprom = <&factory 0x0>;
190 nvmem-cells = <&macaddr_factory_4>;
191 nvmem-cell-names = "mac-address";
195 compatible = "nvmem-cells";
196 #address-cells = <1>;
199 macaddr_factory_4: macaddr@4 {