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