]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/arm/boot/dts/armada-370-db.dts
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target...
[mirror_ubuntu-zesty-kernel.git] / arch / arm / boot / dts / armada-370-db.dts
CommitLineData
9ae6f740
TP
1/*
2 * Device Tree file for Marvell Armada 370 evaluation board
3 * (DB-88F6710-BP-DDR3)
4 *
5 * Copyright (C) 2012 Marvell
6 *
7 * Lior Amsalem <alior@marvell.com>
8 * Gregory CLEMENT <gregory.clement@free-electrons.com>
9 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 *
15471d59
GC
11 * This file is dual-licensed: you can use it either under the terms
12 * of the GPL or the X11 license, at your option. Note that this dual
13 * licensing only applies to this file, and not this project as a
14 * whole.
15 *
16 * a) This file is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License as
18 * published by the Free Software Foundation; either version 2 of the
19 * License, or (at your option) any later version.
20 *
21 * This file is distributed in the hope that it will be useful
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * Or, alternatively
27 *
28 * b) Permission is hereby granted, free of charge, to any person
29 * obtaining a copy of this software and associated documentation
30 * files (the "Software"), to deal in the Software without
31 * restriction, including without limitation the rights to use
32 * copy, modify, merge, publish, distribute, sublicense, and/or
33 * sell copies of the Software, and to permit persons to whom the
34 * Software is furnished to do so, subject to the following
35 * conditions:
36 *
37 * The above copyright notice and this permission notice shall be
38 * included in all copies or substantial portions of the Software.
39 *
40 * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
41 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
45 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47 * OTHER DEALINGS IN THE SOFTWARE.
9ae6f740
TP
48 */
49
50/dts-v1/;
38149887 51#include "armada-370.dtsi"
9ae6f740
TP
52
53/ {
54 model = "Marvell Armada 370 Evaluation Board";
55 compatible = "marvell,a370-db", "marvell,armada370", "marvell,armada-370-xp";
56
57 chosen {
58 bootargs = "console=ttyS0,115200 earlyprintk";
59 };
60
61 memory {
62 device_type = "memory";
11d5993d 63 reg = <0x00000000 0x40000000>; /* 1 GB */
9ae6f740
TP
64 };
65
66 soc {
0cd3754a
EG
67 ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
68 MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;
5e12a613 69
467f54b2
GC
70 internal-regs {
71 serial@12000 {
467f54b2 72 status = "okay";
f01959a9 73 };
467f54b2
GC
74 sata@a0000 {
75 nr-ports = <2>;
76 status = "okay";
f01959a9 77 };
f01959a9 78
467f54b2 79 mdio {
fea038ed
EG
80 pinctrl-0 = <&mdio_pins>;
81 pinctrl-names = "default";
467f54b2
GC
82 phy0: ethernet-phy@0 {
83 reg = <0>;
84 };
b6150c71 85
467f54b2
GC
86 phy1: ethernet-phy@1 {
87 reg = <1>;
88 };
89 };
200506b1 90
467f54b2 91 ethernet@70000 {
fea038ed
EG
92 pinctrl-0 = <&ge0_rgmii_pins>;
93 pinctrl-names = "default";
467f54b2
GC
94 status = "okay";
95 phy = <&phy0>;
96 phy-mode = "rgmii-id";
97 };
98 ethernet@74000 {
fea038ed
EG
99 pinctrl-0 = <&ge1_rgmii_pins>;
100 pinctrl-names = "default";
467f54b2
GC
101 status = "okay";
102 phy = <&phy1>;
103 phy-mode = "rgmii-id";
104 };
200506b1 105
249f3822
TP
106 i2c@11000 {
107 pinctrl-0 = <&i2c0_pins>;
108 pinctrl-names = "default";
ac164d11 109 clock-frequency = <100000>;
249f3822
TP
110 status = "okay";
111 audio_codec: audio-codec@4a {
a6b33451 112 #sound-dai-cells = <0>;
249f3822
TP
113 compatible = "cirrus,cs42l51";
114 reg = <0x4a>;
115 };
116 };
117
118 audio-controller@30000 {
119 pinctrl-0 = <&i2s_pins2>;
120 pinctrl-names = "default";
121 status = "okay";
122 };
123
467f54b2
GC
124 mvsdio@d4000 {
125 pinctrl-0 = <&sdio_pins1>;
126 pinctrl-names = "default";
127 /*
128 * This device is disabled by default, because
129 * using the SD card connector requires
130 * changing the default CON40 connector
131 * "DB-88F6710_MPP_2xRGMII_DEVICE_Jumper" to a
132 * different connector
133 * "DB-88F6710_MPP_RGMII_SD_Jumper".
134 */
135 status = "disabled";
136 /* No CD or WP GPIOs */
d87b5fbb 137 broken-cd;
467f54b2 138 };
04e09b72 139
467f54b2
GC
140 usb@50000 {
141 status = "okay";
142 };
04e09b72 143
467f54b2
GC
144 usb@51000 {
145 status = "okay";
04e09b72 146 };
3b723ae8 147
467f54b2 148 spi0: spi@10600 {
a6fa8475
AE
149 pinctrl-0 = <&spi0_pins2>;
150 pinctrl-names = "default";
3b723ae8 151 status = "okay";
467f54b2
GC
152
153 spi-flash@0 {
154 #address-cells = <1>;
155 #size-cells = <1>;
156 compatible = "mx25l25635e";
157 reg = <0>; /* Chip select 0 */
158 spi-max-frequency = <50000000>;
159 };
3b723ae8 160 };
96039f73 161 };
467f54b2 162
96039f73
TP
163 pcie-controller {
164 status = "okay";
165 /*
166 * The two PCIe units are accessible through
167 * both standard PCIe slots and mini-PCIe
168 * slots on the board.
169 */
170 pcie@1,0 {
171 /* Port 0, Lane 0 */
172 status = "okay";
173 };
249f3822 174
96039f73
TP
175 pcie@2,0 {
176 /* Port 1, Lane 0 */
3b723ae8
TP
177 status = "okay";
178 };
179 };
9ae6f740 180 };
249f3822
TP
181
182 sound {
a6b33451
TP
183 compatible = "simple-audio-card";
184 simple-audio-card,name = "Armada 370 DB Audio";
185 simple-audio-card,mclk-fs = <256>;
186 simple-audio-card,widgets =
187 "Headphone", "Out Jack",
188 "Line", "In Jack";
189 simple-audio-card,routing =
190 "Out Jack", "HPL",
191 "Out Jack", "HPR",
192 "AIN1L", "In Jack",
193 "AIN1L", "In Jack";
194 status = "okay";
195
196 simple-audio-card,dai-link@0 {
197 format = "i2s";
198 cpu {
199 sound-dai = <&audio_controller 0>;
200 };
201
202 codec {
203 sound-dai = <&audio_codec>;
204 };
205 };
206
207 simple-audio-card,dai-link@1 {
208 format = "i2s";
209 cpu {
210 sound-dai = <&audio_controller 1>;
211 };
212
213 codec {
214 sound-dai = <&spdif_out>;
215 };
216 };
217
218 simple-audio-card,dai-link@2 {
219 format = "i2s";
220 cpu {
221 sound-dai = <&audio_controller 1>;
222 };
223
224 codec {
225 sound-dai = <&spdif_in>;
226 };
227 };
249f3822 228 };
5b26bd88
TP
229
230 spdif_out: spdif-out {
a6b33451
TP
231 #sound-dai-cells = <0>;
232 compatible = "linux,spdif-dit";
5b26bd88
TP
233 };
234
235 spdif_in: spdif-in {
a6b33451
TP
236 #sound-dai-cells = <0>;
237 compatible = "linux,spdif-dir";
5b26bd88 238 };
9ae6f740 239};