xref: /linux/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts (revision e5c86679d5e864947a52fb31e45a425dea3e7fa9)
1/*
2 * Device Tree file for Globalscale Marvell ESPRESSOBin Board
3 * Copyright (C) 2016 Marvell
4 *
5 * Romain Perier <romain.perier@free-electrons.com>
6 *
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
10 * whole.
11 *
12 *  a) This file is free software; you can redistribute it and/or
13 *     modify it under the terms of the GNU General Public License as
14 *     published by the Free Software Foundation; either version 2 of the
15 *     License, or (at your option) any later version.
16 *
17 *     This file is distributed in the hope that it will be useful,
18 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
19 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 *     GNU General Public License for more details.
21 *
22 * Or, alternatively,
23 *
24 *  b) Permission is hereby granted, free of charge, to any person
25 *     obtaining a copy of this software and associated documentation
26 *     files (the "Software"), to deal in the Software without
27 *     restriction, including without limitation the rights to use,
28 *     copy, modify, merge, publish, distribute, sublicense, and/or
29 *     sell copies of the Software, and to permit persons to whom the
30 *     Software is furnished to do so, subject to the following
31 *     conditions:
32 *
33 *     The above copyright notice and this permission notice shall be
34 *     included in all copies or substantial portions of the Software.
35 *
36 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43 *     OTHER DEALINGS IN THE SOFTWARE.
44 */
45
46/dts-v1/;
47
48#include "armada-372x.dtsi"
49
50/ {
51	model = "Globalscale Marvell ESPRESSOBin Board";
52	compatible = "globalscale,espressobin", "marvell,armada3720", "marvell,armada3710";
53
54	chosen {
55		stdout-path = "serial0:115200n8";
56	};
57
58	memory@0 {
59		device_type = "memory";
60		reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
61	};
62};
63
64/* J9 */
65&pcie0 {
66	status = "okay";
67};
68
69/* J6 */
70&sata {
71	status = "okay";
72};
73
74/* Exported on the micro USB connector J5 through an FTDI */
75&uart0 {
76	status = "okay";
77};
78
79/* J7 */
80&usb3 {
81	status = "okay";
82};
83
84&mdio {
85	switch0: switch0@1 {
86		compatible = "marvell,mv88e6085";
87		#address-cells = <1>;
88		#size-cells = <0>;
89		reg = <1>;
90
91		dsa,member = <0 0>;
92
93		ports {
94			#address-cells = <1>;
95			#size-cells = <0>;
96
97			port@0 {
98				reg = <0>;
99				label = "cpu";
100				ethernet = <&eth0>;
101			};
102
103			port@1 {
104				reg = <1>;
105				label = "wan";
106				phy-handle = <&switch0phy0>;
107			};
108
109			port@2 {
110				reg = <2>;
111				label = "lan0";
112				phy-handle = <&switch0phy1>;
113			};
114
115			port@3 {
116				reg = <3>;
117				label = "lan1";
118				phy-handle = <&switch0phy2>;
119			};
120
121		};
122
123		mdio {
124			#address-cells = <1>;
125			#size-cells = <0>;
126
127			switch0phy0: switch0phy0@11 {
128				reg = <0x11>;
129			};
130			switch0phy1: switch0phy1@12 {
131				reg = <0x12>;
132			};
133			switch0phy2: switch0phy2@13 {
134				reg = <0x13>;
135			};
136		};
137	};
138};
139
140&eth0 {
141	phy-mode = "rgmii-id";
142	status = "okay";
143
144	fixed-link {
145		speed = <1000>;
146		full-duplex;
147	};
148};
149