Merge tag 'u-boot-rockchip-20201031' of https://gitlab.denx.de/u-boot/custodians...
[platform/kernel/u-boot.git] / arch / arm / dts / armada-3720-espressobin.dtsi
1 /*
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         chosen {
54                 stdout-path = "serial0:115200n8";
55         };
56
57         aliases {
58                 ethernet0 = &eth0;
59                 i2c0 = &i2c0;
60                 spi0 = &spi0;
61         };
62
63         memory {
64                 device_type = "memory";
65                 reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
66         };
67
68         vcc_sd_reg0: regulator@0 {
69                 compatible = "regulator-gpio";
70                 regulator-name = "vcc_sd0";
71                 regulator-min-microvolt = <1800000>;
72                 regulator-max-microvolt = <3300000>;
73                 regulator-type = "voltage";
74                 states = <1800000 0x1
75                           3300000 0x0>;
76                 gpios = <&gpionb 4 GPIO_ACTIVE_HIGH>;
77         };
78 };
79
80 &comphy {
81         max-lanes = <3>;
82         phy0 {
83                 phy-type = <PHY_TYPE_USB3_HOST0>;
84                 phy-speed = <PHY_SPEED_5G>;
85         };
86
87         phy1 {
88                 phy-type = <PHY_TYPE_PEX0>;
89                 phy-speed = <PHY_SPEED_2_5G>;
90         };
91
92         phy2 {
93                 phy-type = <PHY_TYPE_SATA0>;
94                 phy-speed = <PHY_SPEED_5G>;
95         };
96 };
97
98 &eth0 {
99         status = "okay";
100         pinctrl-names = "default";
101         pinctrl-0 = <&rgmii_pins>, <&smi_pins>;
102         phy-mode = "rgmii";
103         phy_addr = <0x1>;
104         fixed-link {
105                 speed = <1000>;
106                 full-duplex;
107         };
108 };
109
110 &i2c0 {
111         pinctrl-names = "default";
112         pinctrl-0 = <&i2c1_pins>;
113         status = "okay";
114 };
115
116 /* CON3 */
117 &sata {
118         status = "okay";
119 };
120
121 &sdhci0 {
122         pinctrl-names = "default";
123         pinctrl-0 = <&sdio_pins>;
124         bus-width = <4>;
125         cd-gpios = <&gpionb 3 GPIO_ACTIVE_LOW>;
126         vqmmc-supply = <&vcc_sd_reg0>;
127         status = "okay";
128 };
129
130 &spi0 {
131         status = "okay";
132         pinctrl-names = "default";
133         pinctrl-0 = <&spi_quad_pins>;
134
135         spi-flash@0 {
136                 #address-cells = <1>;
137                 #size-cells = <1>;
138                 compatible = "st,m25p128", "jedec,spi-nor";
139                 reg = <0>; /* Chip select 0 */
140                 spi-max-frequency = <50000000>;
141                 m25p,fast-read;
142         };
143 };
144
145 /* Exported on the micro USB connector CON32 through an FTDI */
146 &uart0 {
147         pinctrl-names = "default";
148         pinctrl-0 = <&uart1_pins>;
149         status = "okay";
150 };
151
152 /* CON29 */
153 &usb2 {
154         status = "okay";
155 };
156
157 /* CON31 */
158 &usb3 {
159         status = "okay";
160 };
161
162 &pcie0 {
163         pinctrl-names = "default";
164         pinctrl-0 = <&pcie_pins>;
165         reset-gpios = <&gpiosb 3 GPIO_ACTIVE_LOW>;
166         status = "okay";
167 };