aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2017-01-17 06:17:35 -0500
committerGregory CLEMENT <gregory.clement@free-electrons.com>2017-01-19 17:52:17 -0500
commitd3f4759bcf6171c77e1a4ffef94ba85296df4bc6 (patch)
treef574e2ae817d19022089120939654f02bd8972e4
parent58a748f7dc29d8a7bb74c6cbba6a82425dbba5cc (diff)
arm64: dts: marvell: Add DT for MACCHIATOBin board
Add a cut-down version of the DTS file for the community board MACCHIATOBin from SolidRun based on Marvell Armada 8040 SoC to suit the current mainlined Armada 8040 state. This brings support for mainly SATA, SPI flash and UART. The USB descriptions are included but are not tested in this form due to the lack of mainline GPIO. Signed-off-by: Konstantin Porotchkin <kostap@marvell.com> Acked-by: Rabeeh Khoury <rabeeh@solid-run.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
-rw-r--r--arch/arm64/boot/dts/marvell/Makefile1
-rw-r--r--arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts138
2 files changed, 139 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/marvell/Makefile b/arch/arm64/boot/dts/marvell/Makefile
index 1690883b931a..3e6ce6c15a74 100644
--- a/arch/arm64/boot/dts/marvell/Makefile
+++ b/arch/arm64/boot/dts/marvell/Makefile
@@ -7,6 +7,7 @@ dtb-$(CONFIG_ARCH_MVEBU) += armada-3720-db.dtb
7dtb-$(CONFIG_ARCH_MVEBU) += armada-3720-espressobin.dtb 7dtb-$(CONFIG_ARCH_MVEBU) += armada-3720-espressobin.dtb
8dtb-$(CONFIG_ARCH_MVEBU) += armada-7040-db.dtb 8dtb-$(CONFIG_ARCH_MVEBU) += armada-7040-db.dtb
9dtb-$(CONFIG_ARCH_MVEBU) += armada-8040-db.dtb 9dtb-$(CONFIG_ARCH_MVEBU) += armada-8040-db.dtb
10dtb-$(CONFIG_ARCH_MVEBU) += armada-8040-mcbin.dtb
10 11
11always := $(dtb-y) 12always := $(dtb-y)
12subdir-y := $(dts-dirs) 13subdir-y := $(dts-dirs)
diff --git a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
new file mode 100644
index 000000000000..f7bb0cc03147
--- /dev/null
+++ b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
@@ -0,0 +1,138 @@
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};