mvebu: remove mac-address-increment
[openwrt/openwrt.git] / target / linux / mvebu / files / arch / arm64 / boot / dts / marvell / armada-3720-gl-mv1000.dts
1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
2
3 /dts-v1/;
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include "armada-372x.dtsi"
7
8 / {
9 model = "GL.iNet GL-MV1000";
10 compatible = "glinet,gl-mv1000", "marvell,armada3720";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 chosen {
20 stdout-path = "serial0:115200n8";
21 };
22
23 memory@0 {
24 device_type = "memory";
25 reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
26 };
27
28 vcc_sd_reg1: regulator {
29 compatible = "regulator-gpio";
30 regulator-name = "vcc_sd1";
31 regulator-min-microvolt = <1800000>;
32 regulator-max-microvolt = <3300000>;
33 regulator-boot-on;
34
35 gpios-states = <0>;
36 states = <1800000 0x1
37 3300000 0x0>;
38 enable-active-high;
39 };
40
41 keys {
42 compatible = "gpio-keys";
43
44 reset {
45 label = "reset";
46 linux,code = <KEY_RESTART>;
47 gpios = <&gpionb 14 GPIO_ACTIVE_LOW>;
48 };
49
50 switch {
51 label = "switch";
52 linux,code = <BTN_0>;
53 gpios = <&gpiosb 22 GPIO_ACTIVE_LOW>;
54 };
55 };
56
57 leds {
58 compatible = "gpio-leds";
59
60 vpn {
61 label = "green:vpn";
62 gpios = <&gpionb 11 GPIO_ACTIVE_LOW>;
63 };
64
65 wan {
66 label = "green:wan";
67 gpios = <&gpionb 12 GPIO_ACTIVE_LOW>;
68 };
69
70 led_power: power {
71 label = "green:power";
72 gpios = <&gpionb 13 GPIO_ACTIVE_LOW>;
73 default-state = "on";
74 };
75 };
76 };
77
78 &spi0 {
79 status = "okay";
80
81 flash@0 {
82 reg = <0>;
83 compatible = "jedec,spi-nor";
84 spi-max-frequency = <104000000>;
85 m25p,fast-read;
86 partitions {
87 compatible = "fixed-partitions";
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 partition@0 {
92 label = "u-boot";
93 reg = <0 0xf0000>;
94 read-only;
95 };
96
97 partition@f0000 {
98 label = "u-boot-env";
99 reg = <0xf0000 0x8000>;
100 read-only;
101 };
102
103 factory: partition@f8000 {
104 label = "factory";
105 reg = <0xf8000 0x8000>;
106 read-only;
107
108 nvmem-layout {
109 compatible = "fixed-layout";
110 #address-cells = <1>;
111 #size-cells = <1>;
112
113 macaddr_factory_0: macaddr@0 {
114 reg = <0x0 0x6>;
115 };
116
117 macaddr_factory_6: macaddr@6 {
118 reg = <0x6 0x6>;
119 };
120 };
121 };
122
123 partition@100000 {
124 label = "gl-firmware-dtb";
125 reg = <0x100000 0x10000>;
126 read-only;
127 };
128
129 partition@110000 {
130 label = "gl-firmware";
131 reg = <0x110000 0xef0000>;
132 read-only;
133 };
134
135 partition@ef0000 {
136 label = "gl-firmware-jffs2";
137 reg = <0xef0000 0x110000>;
138 read-only;
139 };
140 };
141 };
142 };
143
144 &sdhci1 {
145 wp-inverted;
146 bus-width = <4>;
147 cd-gpios = <&gpionb 17 GPIO_ACTIVE_LOW>;
148 marvell,pad-type = "sd";
149 no-1-8-v;
150 vqmmc-supply = <&vcc_sd_reg1>;
151 status = "okay";
152 };
153
154 &sdhci0 {
155 bus-width = <8>;
156 mmc-ddr-1_8v;
157 mmc-hs400-1_8v;
158 non-removable;
159 no-sd;
160 no-sdio;
161 marvell,pad-type = "fixed-1-8v";
162 status = "okay";
163 };
164
165 &usb3 {
166 status = "okay";
167 };
168
169 &usb2 {
170 status = "okay";
171 };
172
173 &uart0 {
174 status = "okay";
175 };
176
177 &mdio {
178 switch0: switch0@1 {
179 compatible = "marvell,mv88e6085";
180 #address-cells = <1>;
181 #size-cells = <0>;
182 reg = <1>;
183
184 dsa,member = <0 0>;
185
186 ports: ports {
187 #address-cells = <1>;
188 #size-cells = <0>;
189
190 port@0 {
191 reg = <0>;
192 ethernet = <&eth0>;
193 };
194
195 port@1 {
196 reg = <1>;
197 label = "wan";
198 phy-handle = <&switch0phy0>;
199 };
200
201 port@2 {
202 reg = <2>;
203 label = "lan0";
204 phy-handle = <&switch0phy1>;
205
206 nvmem-cells = <&macaddr_factory_6>;
207 nvmem-cell-names = "mac-address";
208 };
209
210 port@3 {
211 reg = <3>;
212 label = "lan1";
213 phy-handle = <&switch0phy2>;
214
215 nvmem-cells = <&macaddr_factory_6>;
216 nvmem-cell-names = "mac-address";
217 };
218 };
219
220 mdio {
221 #address-cells = <1>;
222 #size-cells = <0>;
223
224 switch0phy0: switch0phy0@11 {
225 reg = <0x11>;
226 };
227 switch0phy1: switch0phy1@12 {
228 reg = <0x12>;
229 };
230 switch0phy2: switch0phy2@13 {
231 reg = <0x13>;
232 };
233 };
234 };
235 };
236
237 &eth0 {
238 nvmem-cells = <&macaddr_factory_0>;
239 nvmem-cell-names = "mac-address";
240 phy-mode = "rgmii-id";
241 status = "okay";
242
243 fixed-link {
244 speed = <1000>;
245 full-duplex;
246 };
247 };