1d3f4759bSRussell King/*
2d3f4759bSRussell King * Copyright (C) 2016 Marvell Technology Group Ltd.
3d3f4759bSRussell King *
4d3f4759bSRussell King * This file is dual-licensed: you can use it either under the terms
5d3f4759bSRussell King * of the GPLv2 or the X11 license, at your option. Note that this dual
6d3f4759bSRussell King * licensing only applies to this file, and not this project as a
7d3f4759bSRussell King * whole.
8d3f4759bSRussell King *
9d3f4759bSRussell King *  a) This library is free software; you can redistribute it and/or
10d3f4759bSRussell King *     modify it under the terms of the GNU General Public License as
11d3f4759bSRussell King *     published by the Free Software Foundation; either version 2 of the
12d3f4759bSRussell King *     License, or (at your option) any later version.
13d3f4759bSRussell King *
14d3f4759bSRussell King *     This library is distributed in the hope that it will be useful,
15d3f4759bSRussell King *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16d3f4759bSRussell King *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17d3f4759bSRussell King *     GNU General Public License for more details.
18d3f4759bSRussell King *
19d3f4759bSRussell King * Or, alternatively,
20d3f4759bSRussell King *
21d3f4759bSRussell King *  b) Permission is hereby granted, free of charge, to any person
22d3f4759bSRussell King *     obtaining a copy of this software and associated documentation
23d3f4759bSRussell King *     files (the "Software"), to deal in the Software without
24d3f4759bSRussell King *     restriction, including without limitation the rights to use,
25d3f4759bSRussell King *     copy, modify, merge, publish, distribute, sublicense, and/or
26d3f4759bSRussell King *     sell copies of the Software, and to permit persons to whom the
27d3f4759bSRussell King *     Software is furnished to do so, subject to the following
28d3f4759bSRussell King *     conditions:
29d3f4759bSRussell King *
30d3f4759bSRussell King *     The above copyright notice and this permission notice shall be
31d3f4759bSRussell King *     included in all copies or substantial portions of the Software.
32d3f4759bSRussell King *
33d3f4759bSRussell King *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34d3f4759bSRussell King *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35d3f4759bSRussell King *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36d3f4759bSRussell King *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37d3f4759bSRussell King *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38d3f4759bSRussell King *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39d3f4759bSRussell King *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40d3f4759bSRussell King *     OTHER DEALINGS IN THE SOFTWARE.
41d3f4759bSRussell King */
42d3f4759bSRussell King
43d3f4759bSRussell King/*
44d3f4759bSRussell King * Device Tree file for MACCHIATOBin Armada 8040 community board platform
45d3f4759bSRussell King */
46d3f4759bSRussell King
47d3f4759bSRussell King#include "armada-8040.dtsi"
48d3f4759bSRussell King
49d3f4759bSRussell King/ {
50d3f4759bSRussell King	model = "Marvell 8040 MACHIATOBin";
51d3f4759bSRussell King	compatible = "marvell,armada8040-mcbin", "marvell,armada8040",
52d3f4759bSRussell King			"marvell,armada-ap806-quad", "marvell,armada-ap806";
53d3f4759bSRussell King
54d3f4759bSRussell King	memory@00000000 {
55d3f4759bSRussell King		device_type = "memory";
56d3f4759bSRussell King		reg = <0x0 0x0 0x0 0x80000000>;
57d3f4759bSRussell King	};
58d3f4759bSRussell King
59d3f4759bSRussell King	/* Regulator labels correspond with schematics */
60d3f4759bSRussell King	v_3_3: regulator-3-3v {
61d3f4759bSRussell King		compatible = "regulator-fixed";
62d3f4759bSRussell King		regulator-name = "v_3_3";
63d3f4759bSRussell King		regulator-min-microvolt = <3300000>;
64d3f4759bSRussell King		regulator-max-microvolt = <3300000>;
65d3f4759bSRussell King		regulator-always-on;
66d3f4759bSRussell King		status = "okay";
67d3f4759bSRussell King	};
68d3f4759bSRussell King
69d3f4759bSRussell King	v_vddo_h: regulator-1-8v {
70d3f4759bSRussell King		compatible = "regulator-fixed";
71d3f4759bSRussell King		regulator-name = "v_vddo_h";
72d3f4759bSRussell King		regulator-min-microvolt = <1800000>;
73d3f4759bSRussell King		regulator-max-microvolt = <1800000>;
74d3f4759bSRussell King		regulator-always-on;
75d3f4759bSRussell King		status = "okay";
76d3f4759bSRussell King	};
77d3f4759bSRussell King
78d3f4759bSRussell King	v_5v0_usb3_hst_vbus: regulator-usb3-vbus0 {
79d3f4759bSRussell King		compatible = "regulator-fixed";
80d3f4759bSRussell King		regulator-name = "v_5v0_usb3_hst_vbus";
81d3f4759bSRussell King		regulator-min-microvolt = <5000000>;
82d3f4759bSRussell King		regulator-max-microvolt = <5000000>;
83d3f4759bSRussell King		/* actually GPIO controlled, but 8k has no GPIO support yet */
84d3f4759bSRussell King		regulator-always-on;
85d3f4759bSRussell King		status = "okay";
86d3f4759bSRussell King	};
87d3f4759bSRussell King
88d3f4759bSRussell King	usb3h0_phy: usb3_phy0 {
89d3f4759bSRussell King		compatible = "usb-nop-xceiv";
90d3f4759bSRussell King		vcc-supply = <&v_5v0_usb3_hst_vbus>;
91d3f4759bSRussell King	};
92d3f4759bSRussell King};
93d3f4759bSRussell King
94d3f4759bSRussell King&uart0 {
95d3f4759bSRussell King	status = "okay";
96d3f4759bSRussell King};
97d3f4759bSRussell King
9852983041SRussell King&ap_sdhci0 {
9952983041SRussell King	bus-width = <8>;
10052983041SRussell King	/*
10152983041SRussell King	 * Not stable in HS modes - phy needs "more calibration", so add
10252983041SRussell King	 * the "slow-mode" and disable SDR104, SDR50 and DDR50 modes.
10352983041SRussell King	 */
10452983041SRussell King	marvell,xenon-phy-slow-mode;
10552983041SRussell King	no-1-8-v;
10652983041SRussell King	no-sd;
10752983041SRussell King	no-sdio;
10852983041SRussell King	non-removable;
10952983041SRussell King	status = "okay";
11052983041SRussell King	vqmmc-supply = <&v_vddo_h>;
11152983041SRussell King};
11252983041SRussell King
113d3f4759bSRussell King&cpm_i2c0 {
114d3f4759bSRussell King	clock-frequency = <100000>;
115d3f4759bSRussell King	status = "okay";
116d3f4759bSRussell King};
117d3f4759bSRussell King
118d3f4759bSRussell King&cpm_sata0 {
119d3f4759bSRussell King	/* CPM Lane 0 - U29 */
120d3f4759bSRussell King	status = "okay";
121d3f4759bSRussell King};
122d3f4759bSRussell King
12352983041SRussell King&cpm_sdhci0 {
12452983041SRussell King	/* U6 */
12552983041SRussell King	broken-cd;
12652983041SRussell King	bus-width = <4>;
12752983041SRussell King	status = "okay";
12852983041SRussell King	vqmmc-supply = <&v_3_3>;
12952983041SRussell King};
13052983041SRussell King
131d3f4759bSRussell King&cpm_usb3_0 {
132d3f4759bSRussell King	/* J38? - USB2.0 only */
133d3f4759bSRussell King	status = "okay";
134d3f4759bSRussell King};
135d3f4759bSRussell King
136d3f4759bSRussell King&cpm_usb3_1 {
137d3f4759bSRussell King	/* J38? - USB2.0 only */
138d3f4759bSRussell King	status = "okay";
139d3f4759bSRussell King};
140d3f4759bSRussell King
141d3f4759bSRussell King&cps_sata0 {
142d3f4759bSRussell King	/* CPS Lane 1 - U32 */
143d3f4759bSRussell King	/* CPS Lane 3 - U31 */
144d3f4759bSRussell King	status = "okay";
145d3f4759bSRussell King};
146d3f4759bSRussell King
147d3f4759bSRussell King&cps_spi1 {
148d3f4759bSRussell King	status = "okay";
149d3f4759bSRussell King
150d3f4759bSRussell King	spi-flash@0 {
151d3f4759bSRussell King		compatible = "st,w25q32";
152d3f4759bSRussell King		spi-max-frequency = <50000000>;
153d3f4759bSRussell King		reg = <0>;
154d3f4759bSRussell King	};
155d3f4759bSRussell King};
156d3f4759bSRussell King
157d3f4759bSRussell King&cps_usb3_0 {
158d3f4759bSRussell King	/* CPS Lane 2 - CON7 */
159d3f4759bSRussell King	usb-phy = <&usb3h0_phy>;
160d3f4759bSRussell King	status = "okay";
161d3f4759bSRussell King};
162