xref: /linux/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts (revision 0337966d121ebebf73a1c346123e8112796e684e)
1/*
2 * Copyright (C) 2016 Marvell Technology Group Ltd.
3 *
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPLv2 or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
7 * whole.
8 *
9 *  a) This library is free software; you can redistribute it and/or
10 *     modify it under the terms of the GNU General Public License as
11 *     published by the Free Software Foundation; either version 2 of the
12 *     License, or (at your option) any later version.
13 *
14 *     This library is distributed in the hope that it will be useful,
15 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 *     GNU General Public License for more details.
18 *
19 * Or, alternatively,
20 *
21 *  b) Permission is hereby granted, free of charge, to any person
22 *     obtaining a copy of this software and associated documentation
23 *     files (the "Software"), to deal in the Software without
24 *     restriction, including without limitation the rights to use,
25 *     copy, modify, merge, publish, distribute, sublicense, and/or
26 *     sell copies of the Software, and to permit persons to whom the
27 *     Software is furnished to do so, subject to the following
28 *     conditions:
29 *
30 *     The above copyright notice and this permission notice shall be
31 *     included in all copies or substantial portions of the Software.
32 *
33 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 *     OTHER DEALINGS IN THE SOFTWARE.
41 */
42
43/*
44 * Device Tree file for MACCHIATOBin Armada 8040 community board platform
45 */
46
47#include "armada-8040.dtsi"
48
49/ {
50	model = "Marvell 8040 MACHIATOBin";
51	compatible = "marvell,armada8040-mcbin", "marvell,armada8040",
52			"marvell,armada-ap806-quad", "marvell,armada-ap806";
53
54	memory@00000000 {
55		device_type = "memory";
56		reg = <0x0 0x0 0x0 0x80000000>;
57	};
58
59	/* Regulator labels correspond with schematics */
60	v_3_3: regulator-3-3v {
61		compatible = "regulator-fixed";
62		regulator-name = "v_3_3";
63		regulator-min-microvolt = <3300000>;
64		regulator-max-microvolt = <3300000>;
65		regulator-always-on;
66		status = "okay";
67	};
68
69	v_vddo_h: regulator-1-8v {
70		compatible = "regulator-fixed";
71		regulator-name = "v_vddo_h";
72		regulator-min-microvolt = <1800000>;
73		regulator-max-microvolt = <1800000>;
74		regulator-always-on;
75		status = "okay";
76	};
77
78	v_5v0_usb3_hst_vbus: regulator-usb3-vbus0 {
79		compatible = "regulator-fixed";
80		regulator-name = "v_5v0_usb3_hst_vbus";
81		regulator-min-microvolt = <5000000>;
82		regulator-max-microvolt = <5000000>;
83		/* actually GPIO controlled, but 8k has no GPIO support yet */
84		regulator-always-on;
85		status = "okay";
86	};
87
88	usb3h0_phy: usb3_phy0 {
89		compatible = "usb-nop-xceiv";
90		vcc-supply = <&v_5v0_usb3_hst_vbus>;
91	};
92};
93
94&uart0 {
95	status = "okay";
96};
97
98&cpm_i2c0 {
99	clock-frequency = <100000>;
100	status = "okay";
101};
102
103&cpm_sata0 {
104	/* CPM Lane 0 - U29 */
105	status = "okay";
106};
107
108&cpm_usb3_0 {
109	/* J38? - USB2.0 only */
110	status = "okay";
111};
112
113&cpm_usb3_1 {
114	/* J38? - USB2.0 only */
115	status = "okay";
116};
117
118&cps_sata0 {
119	/* CPS Lane 1 - U32 */
120	/* CPS Lane 3 - U31 */
121	status = "okay";
122};
123
124&cps_spi1 {
125	status = "okay";
126
127	spi-flash@0 {
128		compatible = "st,w25q32";
129		spi-max-frequency = <50000000>;
130		reg = <0>;
131	};
132};
133
134&cps_usb3_0 {
135	/* CPS Lane 2 - CON7 */
136	usb-phy = <&usb3h0_phy>;
137	status = "okay";
138};
139