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