ramips: remove redundant status for USB controllers
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_ravpower_rp-wd009.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "ravpower,rp-wd009", "mediatek,mt7628an-soc";
10 model = "RAVPower RP-WD009";
11
12 aliases {
13 led-boot = &led_globe;
14 led-failsafe = &led_globe;
15 led-running = &led_globe;
16 led-upgrade = &led_globe;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,57600";
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 led_globe: globe {
27 label = "white:globe";
28 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
29 };
30
31 wlan2 {
32 label = "white:wlan2";
33 gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
34 linux,default-trigger = "phy0tpt";
35 };
36
37 wlan5 {
38 label = "white:wlan5";
39 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
40 linux,default-trigger = "phy1tpt";
41 };
42
43 sd_white {
44 label = "white:sd";
45 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
46 };
47
48 sd_red {
49 label = "red:sd";
50 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
51 };
52 };
53
54 keys {
55 compatible = "gpio-keys";
56
57 reset {
58 label = "reset";
59 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_RESTART>;
61 };
62
63 /* Power interrupt on Pin 39 */
64
65 rfkill {
66 label = "rfkill";
67 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RFKILL>;
69 };
70
71 backup {
72 label = "backup";
73 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_COPY>;
75 };
76 };
77 };
78
79 &gpio {
80 mt7610-power {
81 gpio-hog;
82 gpios = <20 GPIO_ACTIVE_HIGH>;
83 output-high;
84 line-name = "mt7610-power";
85 };
86 };
87
88 &state_default {
89 gpio {
90 groups = "uart1", "wled_an", "p0led_an", "p2led_an", "p3led_an",
91 "p4led_an", "uart2", "pwm0", "i2s";
92 function = "gpio";
93 };
94 };
95
96 &sdhci {
97 status = "okay";
98 };
99
100 &i2c {
101 status = "okay";
102
103 /* Custom PMIC at 0x0a */
104 };
105
106 &pcie {
107 status = "okay";
108 };
109
110 &pcie0 {
111 wifi@0,0 {
112 reg = <0x0000 0 0 0 0>;
113 mediatek,mtd-eeprom = <&factory 0x8000>;
114 ieee80211-freq-limit = <5470000 6000000>;
115 };
116 };
117
118 &spi0 {
119 status = "okay";
120
121 flash@0 {
122 compatible = "jedec,spi-nor";
123 reg = <0>;
124 spi-max-frequency = <40000000>;
125
126 partitions {
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
129 #size-cells = <1>;
130
131 partition@0 {
132 label = "bootloader";
133 reg = <0x0 0x30000>;
134 read-only;
135 };
136
137 partition@30000 {
138 label = "config";
139 reg = <0x30000 0x10000>;
140 read-only;
141 };
142
143 factory: partition@40000 {
144 label = "factory";
145 reg = <0x40000 0x10000>;
146 read-only;
147 };
148
149 partition@50000 {
150 label = "loader";
151 reg = <0x50000 0x180000>;
152 };
153
154 partition@1d0000 {
155 label = "params";
156 reg = <0x1d0000 0x10000>;
157 read-only;
158 };
159
160 partition@1e0000 {
161 label = "user_backup";
162 reg = <0x1e0000 0x10000>;
163 read-only;
164 };
165
166 partition@1f0000 {
167 label = "user";
168 reg = <0x1f0000 0x10000>;
169 read-only;
170 };
171
172 partition@200000 {
173 compatible = "denx,uimage";
174 label = "firmware";
175 reg = <0x200000 0xdf0000>;
176 };
177
178 partition@ff0000 {
179 label = "mode";
180 reg = <0xff0000 0x10000>;
181 read-only;
182 };
183 };
184 };
185 };
186
187 &wmac {
188 status = "okay";
189 };
190
191 &ethernet {
192 mtd-mac-address = <&factory 0x4>;
193 };