ramips: move redundant console setup to mt7621 SoC DTSI
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_netgear_ex6150.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7621.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10 compatible = "netgear,ex6150", "mediatek,mt7621-soc";
11 model = "Netgear EX6150";
12
13 aliases {
14 led-boot = &power_green;
15 led-failsafe = &power_amber;
16 led-running = &power_green;
17 led-upgrade = &power_amber;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 power_amber: power_amber {
24 label = "ex6150:amber:power";
25 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
26 };
27
28 power_green: power_green {
29 label = "ex6150:green:power";
30 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
31 };
32
33 wps {
34 label = "ex6150:green:wps";
35 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
36 };
37
38 rightarrow {
39 label = "ex6150:blue:rightarrow";
40 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
41 };
42
43 leftarrow {
44 label = "ex6150:blue:leftarrow";
45 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
46 };
47
48 router_green {
49 label = "ex6150:green:router";
50 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy1tpt";
52 };
53
54 router_red {
55 label = "ex6150:red:router";
56 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
57 };
58
59 client_green {
60 label = "ex6150:green:client";
61 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
62 linux,default-trigger = "phy0tpt";
63 };
64
65 client_red {
66 label = "ex6150:red:client";
67 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
68 };
69 };
70
71 keys {
72 compatible = "gpio-keys";
73
74 wps {
75 label = "wps";
76 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_WPS_BUTTON>;
78 };
79
80 reset {
81 label = "reset";
82 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_RESTART>;
84 };
85
86 toggle {
87 label = "AP/Extender toggle";
88 gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
89 linux,code = <BTN_0>;
90 /* Active when switch is set to "Access Point" */
91 };
92 };
93 };
94
95 &spi0 {
96 status = "okay";
97
98 flash@0 {
99 compatible = "jedec,spi-nor";
100 reg = <0>;
101 spi-max-frequency = <10000000>;
102
103 partitions {
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
106 #size-cells = <1>;
107
108 partition@0 {
109 label = "u-boot";
110 reg = <0x0 0x30000>;
111 read-only;
112 };
113
114 partition@30000 {
115 label = "config";
116 reg = <0x30000 0x10000>;
117 read-only;
118 };
119
120 factory: partition@40000 {
121 label = "factory";
122 reg = <0x40000 0x10000>;
123 read-only;
124 };
125
126 partition@50000 {
127 compatible = "denx,uimage";
128 label = "firmware";
129 reg = <0x50000 0xe80000>;
130 };
131
132 partition@ed0000 {
133 label = "ML1";
134 reg = <0xed0000 0x10000>;
135 read-only;
136 };
137
138 partition@ef0000 {
139 label = "ML2";
140 reg = <0xef0000 0x20000>;
141 read-only;
142 };
143
144 partition@f10000 {
145 label = "ML3";
146 reg = <0xf10000 0x20000>;
147 read-only;
148 };
149
150 partition@f30000 {
151 label = "ML4";
152 reg = <0xf30000 0x20000>;
153 read-only;
154 };
155
156 partition@f50000 {
157 label = "ML5";
158 reg = <0xf50000 0x20000>;
159 read-only;
160 };
161
162 partition@f70000 {
163 label = "ML6";
164 reg = <0xf70000 0x20000>;
165 read-only;
166 };
167
168 partition@f90000 {
169 label = "ML7";
170 reg = <0xf90000 0x20000>;
171 read-only;
172 };
173
174 partition@fb0000 {
175 label = "T_Meter1";
176 reg = <0xfb0000 0x10000>;
177 read-only;
178 };
179
180 partition@fc0000 {
181 label = "T_Meter2";
182 reg = <0xfc0000 0x10000>;
183 read-only;
184 };
185
186 partition@fd0000 {
187 label = "POT";
188 reg = <0xfd0000 0x10000>;
189 read-only;
190 };
191
192 partition@fe0000 {
193 label = "board_data";
194 reg = <0xfe0000 0x10000>;
195 read-only;
196 };
197
198 partition@ff0000 {
199 label = "nvram";
200 reg = <0xff0000 0x10000>;
201 read-only;
202 };
203 };
204 };
205 };
206
207 &pcie {
208 status = "okay";
209 };
210
211 &pcie0 {
212 wifi@0,0 {
213 reg = <0x0000 0 0 0 0>;
214 mediatek,mtd-eeprom = <&factory 0x8000>;
215 ieee80211-freq-limit = <5000000 6000000>;
216 };
217 };
218
219 &pcie1 {
220 wifi@0,0 {
221 reg = <0x0000 0 0 0 0>;
222 mediatek,mtd-eeprom = <&factory 0x0000>;
223 ieee80211-freq-limit = <2400000 2500000>;
224 };
225 };
226
227 &gmac0 {
228 mtd-mac-address = <&factory 0x4>;
229 };
230
231 &switch0 {
232 ports {
233 port@0 {
234 status = "okay";
235 label = "lan";
236 };
237 };
238 };
239
240 &state_default {
241 gpio {
242 groups = "sdhci", "rgmii2", "jtag";
243 function = "gpio";
244 };
245 };