1/*
2 * Device Tree file for Marvell Armada 3720 development board
3 * (DB-88F3720-DDR3)
4 * Copyright (C) 2016 Marvell
5 *
6 * Gregory CLEMENT <gregory.clement@free-electrons.com>
7 *
8 * This file is dual-licensed: you can use it either under the terms
9 * of the GPL or the X11 license, at your option. Note that this dual
10 * licensing only applies to this file, and not this project as a
11 * whole.
12 *
13 *  a) This file is free software; you can redistribute it and/or
14 *     modify it under the terms of the GNU General Public License as
15 *     published by the Free Software Foundation; either version 2 of the
16 *     License, or (at your option) any later version.
17 *
18 *     This file is distributed in the hope that it will be useful,
19 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
20 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 *     GNU General Public License for more details.
22 *
23 * Or, alternatively,
24 *
25 *  b) Permission is hereby granted, free of charge, to any person
26 *     obtaining a copy of this software and associated documentation
27 *     files (the "Software"), to deal in the Software without
28 *     restriction, including without limitation the rights to use,
29 *     copy, modify, merge, publish, distribute, sublicense, and/or
30 *     sell copies of the Software, and to permit persons to whom the
31 *     Software is furnished to do so, subject to the following
32 *     conditions:
33 *
34 *     The above copyright notice and this permission notice shall be
35 *     included in all copies or substantial portions of the Software.
36 *
37 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
39 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
41 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
42 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
44 *     OTHER DEALINGS IN THE SOFTWARE.
45 */
46
47/dts-v1/;
48
49#include <dt-bindings/gpio/gpio.h>
50#include "armada-372x.dtsi"
51
52/ {
53	model = "Marvell Armada 3720 Development Board DB-88F3720-DDR3";
54	compatible = "marvell,armada-3720-db", "marvell,armada3720", "marvell,armada3710";
55
56	chosen {
57		stdout-path = "serial0:115200n8";
58	};
59
60	memory@0 {
61		device_type = "memory";
62		reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
63	};
64
65	exp_usb3_vbus: usb3-vbus {
66		compatible = "regulator-fixed";
67		regulator-name = "usb3-vbus";
68		regulator-min-microvolt = <5000000>;
69		regulator-max-microvolt = <5000000>;
70		enable-active-high;
71		regulator-always-on;
72		gpio = <&gpio_exp 1 GPIO_ACTIVE_HIGH>;
73	};
74
75	usb3_phy: usb3-phy {
76		compatible = "usb-nop-xceiv";
77		vcc-supply = <&exp_usb3_vbus>;
78	};
79};
80
81&i2c0 {
82	pinctrl-names = "default";
83	pinctrl-0 = <&i2c1_pins>;
84	status = "okay";
85
86	gpio_exp: pca9555@22 {
87		compatible = "nxp,pca9555";
88		gpio-controller;
89		#gpio-cells = <2>;
90
91		reg = <0x22>;
92		/*
93		 * IO0_0: PWR_EN_USB2	IO1_0: PWR_EN_VTT
94		 * IO0_1: PWR_EN_USB23	IO1_1: MPCIE_WDISABLE
95		 * IO0_2: PWR_EN_SATA	IO1_2: RGMII_DEV_RSTN
96		 * IO0_3: PWR_EN_PCIE	IO1_3: SGMII_DEV_RSTN
97		 * IO0_4: PWR_EN_SD
98		 * IO0_5: PWR_EN_EMMC
99		 * IO0_6: PWR_EN_RGMII	IO1_6: SATA_USB3.0_SEL
100		 * IO0_7: PWR_EN_SGMII	IO1_7: PWR_MCI_PS
101		 */
102	};
103
104	rtc@68  {
105		/* PT7C4337A from pericom fully compatible with the ds1337 */
106		compatible = "dallas,ds1337";
107		reg = <0x68>;
108	};
109};
110
111/* CON3 */
112&sata {
113	status = "okay";
114};
115
116&spi0 {
117	status = "okay";
118	pinctrl-names = "default";
119	pinctrl-0 = <&spi_quad_pins>;
120
121	m25p80@0 {
122		compatible = "jedec,spi-nor";
123		reg = <0>;
124		spi-max-frequency = <108000000>;
125		spi-rx-bus-width = <4>;
126		spi-tx-bus-width = <4>;
127
128		partitions {
129			compatible = "fixed-partitions";
130			#address-cells = <1>;
131			#size-cells = <1>;
132			partition@0 {
133				label = "bootloader";
134				reg = <0x0 0x200000>;
135			};
136			partition@200000 {
137				label = "U-boot Env";
138				reg = <0x200000 0x10000>;
139			};
140			partition@210000 {
141				label = "Linux";
142				reg = <0x210000 0xDF0000>;
143			};
144		};
145	};
146};
147
148/* Exported on the micro USB connector CON32 through an FTDI */
149&uart0 {
150	pinctrl-names = "default";
151	pinctrl-0 = <&uart1_pins>;
152	status = "okay";
153};
154
155&sdhci0 {
156	non-removable;
157	bus-width = <8>;
158	mmc-ddr-1_8v;
159	mmc-hs400-1_8v;
160	marvell,pad-type = "fixed-1-8v";
161	status = "okay";
162};
163
164/* CON31 */
165&usb3 {
166	status = "okay";
167	usb-phy = <&usb3_phy>;
168};
169
170/* CON17 (PCIe) / CON12 (mini-PCIe) */
171&pcie0 {
172	status = "okay";
173};
174
175/* CON27 */
176&usb2 {
177	status = "okay";
178};
179
180
181&mdio {
182	status = "okay";
183	phy0: ethernet-phy@0 {
184		reg = <0>;
185	};
186
187	phy1: ethernet-phy@1 {
188		reg = <1>;
189	};
190};
191
192&eth0 {
193	pinctrl-names = "default";
194	pinctrl-0 = <&rgmii_pins>;
195	phy-mode = "rgmii-id";
196	phy = <&phy0>;
197	status = "okay";
198};
199
200&eth1 {
201	phy-mode = "sgmii";
202	phy = <&phy1>;
203	status = "okay";
204};
205