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>
7 #include <dt-bindings/leds/common.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 compatible = "gpio-leds";
24 label = "white:globe";
25 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
29 label = "white:wlan2";
30 gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
31 linux,default-trigger = "phy0tpt";
35 label = "white:wlan5";
36 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy1tpt";
41 function = LED_FUNCTION_SD;
42 color = <LED_COLOR_ID_WHITE>;
43 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
47 function = LED_FUNCTION_SD;
48 color = <LED_COLOR_ID_RED>;
49 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
54 compatible = "gpio-keys";
58 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
62 /* Power interrupt on Pin 39 */
66 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_RFKILL>;
72 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_COPY>;
81 gpios = <20 GPIO_ACTIVE_HIGH>;
83 line-name = "mt7610-power";
89 groups = "uart1", "wled_an", "p0led_an", "p2led_an", "p3led_an",
90 "p4led_an", "uart2", "pwm0", "i2s";
102 /* Custom PMIC at 0x0a */
111 reg = <0x0000 0 0 0 0>;
112 nvmem-cells = <&eeprom_factory_8000>;
113 nvmem-cell-names = "eeprom";
114 ieee80211-freq-limit = <5470000 6000000>;
122 compatible = "jedec,spi-nor";
124 spi-max-frequency = <40000000>;
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
132 label = "bootloader";
139 reg = <0x30000 0x10000>;
145 reg = <0x40000 0x10000>;
149 compatible = "fixed-layout";
150 #address-cells = <1>;
153 eeprom_factory_0: eeprom@0 {
157 eeprom_factory_8000: eeprom@8000 {
158 reg = <0x8000 0x200>;
161 macaddr_factory_4: macaddr@4 {
169 reg = <0x50000 0x180000>;
174 reg = <0x1d0000 0x10000>;
179 label = "user_backup";
180 reg = <0x1e0000 0x10000>;
186 reg = <0x1f0000 0x10000>;
191 compatible = "denx,uimage";
193 reg = <0x200000 0xdf0000>;
198 reg = <0xff0000 0x10000>;
208 nvmem-cells = <&eeprom_factory_0>;
209 nvmem-cell-names = "eeprom";
213 nvmem-cells = <&macaddr_factory_4>;
214 nvmem-cell-names = "mac-address";