blob: be67a45870cae9ec77f9b7133c0289135569a8cd [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/ {
Andre Heider559ae352020-10-02 07:51:12 +020053 model = "Globalscale Marvell ESPRESSOBin Board";
54 compatible = "globalscale,espressobin", "marvell,armada3720", "marvell,armada3710";
Konstantin Porotchkind1625a92017-02-16 13:52:30 +020055
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 };
Wilson Ding96fa3c42020-08-19 16:19:40 +020070
71 vcc_sd_reg0: regulator@0 {
72 compatible = "regulator-gpio";
73 regulator-name = "vcc_sd0";
74 regulator-min-microvolt = <1800000>;
75 regulator-max-microvolt = <3300000>;
76 regulator-type = "voltage";
77 states = <1800000 0x1
78 3300000 0x0>;
79 gpios = <&gpionb 4 GPIO_ACTIVE_HIGH>;
80 };
Konstantin Porotchkind1625a92017-02-16 13:52:30 +020081};
82
83&comphy {
84 max-lanes = <3>;
85 phy0 {
Marek Behún54559112020-08-19 11:57:25 +020086 phy-type = <PHY_TYPE_USB3_HOST0>;
87 phy-speed = <PHY_SPEED_5G>;
Konstantin Porotchkind1625a92017-02-16 13:52:30 +020088 };
89
90 phy1 {
Marek Behún54559112020-08-19 11:57:25 +020091 phy-type = <PHY_TYPE_PEX0>;
92 phy-speed = <PHY_SPEED_2_5G>;
Konstantin Porotchkind1625a92017-02-16 13:52:30 +020093 };
94
95 phy2 {
96 phy-type = <PHY_TYPE_SATA0>;
97 phy-speed = <PHY_SPEED_5G>;
98 };
99};
100
101&eth0 {
102 status = "okay";
Ken Mad7d3ee52018-03-26 15:55:57 +0800103 pinctrl-names = "default";
Ken Ma30aecc02018-03-26 15:56:04 +0800104 pinctrl-0 = <&rgmii_pins>, <&smi_pins>;
Konstantin Porotchkind1625a92017-02-16 13:52:30 +0200105 phy-mode = "rgmii";
106 phy_addr = <0x1>;
107 fixed-link {
108 speed = <1000>;
109 full-duplex;
110 };
111};
112
113&i2c0 {
Ken Mad7d3ee52018-03-26 15:55:57 +0800114 pinctrl-names = "default";
115 pinctrl-0 = <&i2c1_pins>;
Konstantin Porotchkind1625a92017-02-16 13:52:30 +0200116 status = "okay";
117};
118
119/* CON3 */
120&sata {
121 status = "okay";
122};
123
Wilson Ding96fa3c42020-08-19 16:19:40 +0200124&sdhci0 {
125 pinctrl-names = "default";
126 pinctrl-0 = <&sdio_pins>;
127 bus-width = <4>;
128 cd-gpios = <&gpionb 3 GPIO_ACTIVE_LOW>;
129 vqmmc-supply = <&vcc_sd_reg0>;
130 status = "okay";
131};
132
Konstantin Porotchkind1625a92017-02-16 13:52:30 +0200133&spi0 {
134 status = "okay";
Ken Mad7d3ee52018-03-26 15:55:57 +0800135 pinctrl-names = "default";
136 pinctrl-0 = <&spi_quad_pins>;
Konstantin Porotchkind1625a92017-02-16 13:52:30 +0200137
138 spi-flash@0 {
139 #address-cells = <1>;
140 #size-cells = <1>;
Neil Armstrongffd4c7c2019-02-10 10:16:20 +0000141 compatible = "st,m25p128", "jedec,spi-nor";
Konstantin Porotchkind1625a92017-02-16 13:52:30 +0200142 reg = <0>; /* Chip select 0 */
143 spi-max-frequency = <50000000>;
144 m25p,fast-read;
145 };
146};
147
148/* Exported on the micro USB connector CON32 through an FTDI */
149&uart0 {
Ken Mad7d3ee52018-03-26 15:55:57 +0800150 pinctrl-names = "default";
151 pinctrl-0 = <&uart1_pins>;
Konstantin Porotchkind1625a92017-02-16 13:52:30 +0200152 status = "okay";
153};
154
155/* CON29 */
156&usb2 {
157 status = "okay";
158};
159
160/* CON31 */
161&usb3 {
162 status = "okay";
163};
Wilson Ding97341042018-03-26 15:57:31 +0800164
165&pcie0 {
166 pinctrl-names = "default";
167 pinctrl-0 = <&pcie_pins>;
Pali Rohár563b85b2020-08-19 15:57:06 +0200168 reset-gpios = <&gpiosb 3 GPIO_ACTIVE_LOW>;
Wilson Ding97341042018-03-26 15:57:31 +0800169 status = "okay";
170};