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