blob: 5d8d27ebd15f8831dc21d813da7e8dbe21b30986 [file] [log] [blame]
Konstantin Porotchkind1625a92017-02-16 13:52:30 +02001/*
2 * Device Tree file for Marvell Armada 3720 community board
3 * (ESPRESSOBin)
4 * Copyright (C) 2016 Marvell
5 *
6 * Gregory CLEMENT <gregory.clement@free-electrons.com>
7 * Konstantin Porotchkin <kostap@marvell.com>
8 *
9 * This file is dual-licensed: you can use it either under the terms
10 * of the GPL or the X11 license, at your option. Note that this dual
11 * licensing only applies to this file, and not this project as a
12 * whole.
13 *
14 * a) This file is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License as
16 * published by the Free Software Foundation; either version 2 of the
17 * License, or (at your option) any later version.
18 *
19 * This file is distributed in the hope that it will be useful
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * Or, alternatively
25 *
26 * b) Permission is hereby granted, free of charge, to any person
27 * obtaining a copy of this software and associated documentation
28 * files (the "Software"), to deal in the Software without
29 * restriction, including without limitation the rights to use
30 * copy, modify, merge, publish, distribute, sublicense, and/or
31 * sell copies of the Software, and to permit persons to whom the
32 * Software is furnished to do so, subject to the following
33 * conditions:
34 *
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
37 *
38 * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
39 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
40 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
43 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45 * OTHER DEALINGS IN THE SOFTWARE.
46 */
47
48/dts-v1/;
49
50#include "armada-372x.dtsi"
51
52/ {
53 model = "Marvell Armada 3720 Community Board ESPRESSOBin";
54 compatible = "marvell,armada-3720-espressobin", "marvell,armada3720", "marvell,armada3710";
55
56 chosen {
57 stdout-path = "serial0:115200n8";
58 };
59
60 aliases {
61 ethernet0 = &eth0;
62 i2c0 = &i2c0;
63 spi0 = &spi0;
64 };
65
66 memory {
67 device_type = "memory";
68 reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
69 };
70};
71
72&comphy {
73 max-lanes = <3>;
74 phy0 {
75 phy-type = <PHY_TYPE_PEX0>;
76 phy-speed = <PHY_SPEED_2_5G>;
77 };
78
79 phy1 {
80 phy-type = <PHY_TYPE_USB3_HOST0>;
81 phy-speed = <PHY_SPEED_5G>;
82 };
83
84 phy2 {
85 phy-type = <PHY_TYPE_SATA0>;
86 phy-speed = <PHY_SPEED_5G>;
87 };
88};
89
90&eth0 {
91 status = "okay";
Ken Mad7d3ee52018-03-26 15:55:57 +080092 pinctrl-names = "default";
93 pinctrl-0 = <&rgmii_pins>;
Konstantin Porotchkind1625a92017-02-16 13:52:30 +020094 phy-mode = "rgmii";
95 phy_addr = <0x1>;
96 fixed-link {
97 speed = <1000>;
98 full-duplex;
99 };
100};
101
102&i2c0 {
Ken Mad7d3ee52018-03-26 15:55:57 +0800103 pinctrl-names = "default";
104 pinctrl-0 = <&i2c1_pins>;
Konstantin Porotchkind1625a92017-02-16 13:52:30 +0200105 status = "okay";
106};
107
108/* CON3 */
109&sata {
110 status = "okay";
111};
112
113&spi0 {
114 status = "okay";
Ken Mad7d3ee52018-03-26 15:55:57 +0800115 pinctrl-names = "default";
116 pinctrl-0 = <&spi_quad_pins>;
Konstantin Porotchkind1625a92017-02-16 13:52:30 +0200117
118 spi-flash@0 {
119 #address-cells = <1>;
120 #size-cells = <1>;
121 compatible = "st,m25p128", "spi-flash";
122 reg = <0>; /* Chip select 0 */
123 spi-max-frequency = <50000000>;
124 m25p,fast-read;
125 };
126};
127
128/* Exported on the micro USB connector CON32 through an FTDI */
129&uart0 {
Ken Mad7d3ee52018-03-26 15:55:57 +0800130 pinctrl-names = "default";
131 pinctrl-0 = <&uart1_pins>;
Konstantin Porotchkind1625a92017-02-16 13:52:30 +0200132 status = "okay";
133};
134
135/* CON29 */
136&usb2 {
137 status = "okay";
138};
139
140/* CON31 */
141&usb3 {
142 status = "okay";
143};