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 nvmem-cells = <&eeprom_factory_8000>;
110 nvmem-cell-names = "eeprom";
111 ieee80211-freq-limit = <5470000 6000000>;
119 compatible = "jedec,spi-nor";
121 spi-max-frequency = <40000000>;
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
129 label = "bootloader";
136 reg = <0x30000 0x10000>;
140 factory: partition@40000 {
142 reg = <0x40000 0x10000>;
146 compatible = "fixed-layout";
147 #address-cells = <1>;
150 eeprom_factory_0: eeprom@0 {
154 eeprom_factory_8000: eeprom@8000 {
155 reg = <0x8000 0x200>;
158 macaddr_factory_4: macaddr@4 {
166 reg = <0x50000 0x180000>;
171 reg = <0x1d0000 0x10000>;
176 label = "user_backup";
177 reg = <0x1e0000 0x10000>;
183 reg = <0x1f0000 0x10000>;
188 compatible = "denx,uimage";
190 reg = <0x200000 0xdf0000>;
195 reg = <0xff0000 0x10000>;
205 nvmem-cells = <&eeprom_factory_0>;
206 nvmem-cell-names = "eeprom";
210 nvmem-cells = <&macaddr_factory_4>;
211 nvmem-cell-names = "mac-address";