mvebu: add support for GL.iNet GL-MV1000
[openwrt/staging/rmilecki.git] / target / linux / mvebu / files-5.4 / arch / arm64 / boot / dts / marvell / armada-gl-mv1000.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Device Tree file for GL.iNet GL-MV1000
4 */
5
6 /dts-v1/;
7 #include <dt-bindings/gpio/gpio.h>
8 #include "armada-372x.dtsi"
9
10 / {
11 model = "GL.inet GL-MV1000";
12 compatible = "glinet,gl-mv1000", "marvell,armada3720";
13
14 chosen {
15 stdout-path = "serial0:115200n8";
16 };
17
18 memory@0 {
19 device_type = "memory";
20 reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
21 };
22
23 vcc_sd_reg1: regulator {
24 compatible = "regulator-gpio";
25 regulator-name = "vcc_sd1";
26 regulator-min-microvolt = <1800000>;
27 regulator-max-microvolt = <3300000>;
28 regulator-boot-on;
29
30 gpios-states = <0>;
31 states = <1800000 0x1
32 3300000 0x0>;
33 enable-active-high;
34 };
35 };
36
37 &spi0 {
38 status = "okay";
39
40 flash@0 {
41 reg = <0>;
42 compatible = "jedec,spi-nor";
43 spi-max-frequency = <104000000>;
44 m25p,fast-read;
45 partitions {
46 compatible = "fixed-partitions";
47 #address-cells = <1>;
48 #size-cells = <1>;
49
50 partition@0 {
51 label = "u-boot";
52 reg = <0 0xf0000>;
53 };
54
55 partition@f0000 {
56 label = "u-boot-env";
57 reg = <0Xf0000 0x8000>;
58 };
59
60 factory: partition@f8000 {
61 label = "factory";
62 reg = <0xf8000 0x8000>;
63 };
64 };
65 };
66 };
67
68 &sdhci1 {
69 wp-inverted;
70 bus-width = <4>;
71 cd-gpios = <&gpionb 17 GPIO_ACTIVE_LOW>;
72 marvell,pad-type = "sd";
73 no-1-8-v;
74 vqmmc-supply = <&vcc_sd_reg1>;
75 status = "okay";
76 };
77
78 &sdhci0 {
79 bus-width = <8>;
80 mmc-ddr-1_8v;
81 mmc-hs400-1_8v;
82 non-removable;
83 no-sd;
84 no-sdio;
85 marvell,pad-type = "fixed-1-8v";
86 status = "okay";
87 };
88
89 &usb3 {
90 status = "okay";
91 };
92
93 &usb2 {
94 status = "okay";
95 };
96
97 &uart0 {
98 status = "okay";
99 };
100
101 &mdio {
102 switch0: switch0@1 {
103 compatible = "marvell,mv88e6085";
104 #address-cells = <1>;
105 #size-cells = <0>;
106 reg = <1>;
107
108 dsa,member = <0 0>;
109
110 ports: ports {
111 #address-cells = <1>;
112 #size-cells = <0>;
113
114 port@0 {
115 reg = <0>;
116 label = "cpu";
117 ethernet = <&eth0>;
118 };
119
120 port@1 {
121 reg = <1>;
122 label = "wan";
123 phy-handle = <&switch0phy0>;
124 };
125
126 port@2 {
127 reg = <2>;
128 label = "lan0";
129 phy-handle = <&switch0phy1>;
130 };
131
132 port@3 {
133 reg = <3>;
134 label = "lan1";
135 phy-handle = <&switch0phy2>;
136 };
137 };
138
139 mdio {
140 #address-cells = <1>;
141 #size-cells = <0>;
142
143 switch0phy0: switch0phy0@11 {
144 reg = <0x11>;
145 };
146 switch0phy1: switch0phy1@12 {
147 reg = <0x12>;
148 };
149 switch0phy2: switch0phy2@13 {
150 reg = <0x13>;
151 };
152 };
153 };
154 };
155
156 &eth0 {
157 mtd-mac-address = <&factory 0x0>;
158 phy-mode = "rgmii-id";
159 status = "okay";
160
161 fixed-link {
162 speed = <1000>;
163 full-duplex;
164 };
165 };