]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - sys/gnu/dts/arm/armada-370-db.dts
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / sys / gnu / dts / arm / armada-370-db.dts
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  *
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.
48  */
49
50 /dts-v1/;
51 #include "armada-370.dtsi"
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";
63                 reg = <0x00000000 0x40000000>; /* 1 GB */
64         };
65
66         soc {
67                 ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
68                           MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;
69
70                 internal-regs {
71                         serial@12000 {
72                                 status = "okay";
73                         };
74                         sata@a0000 {
75                                 nr-ports = <2>;
76                                 status = "okay";
77                         };
78
79                         mdio {
80                                 pinctrl-0 = <&mdio_pins>;
81                                 pinctrl-names = "default";
82                                 phy0: ethernet-phy@0 {
83                                         reg = <0>;
84                                 };
85
86                                 phy1: ethernet-phy@1 {
87                                         reg = <1>;
88                                 };
89                         };
90
91                         ethernet@70000 {
92                                 pinctrl-0 = <&ge0_rgmii_pins>;
93                                 pinctrl-names = "default";
94                                 status = "okay";
95                                 phy = <&phy0>;
96                                 phy-mode = "rgmii-id";
97                         };
98                         ethernet@74000 {
99                                 pinctrl-0 = <&ge1_rgmii_pins>;
100                                 pinctrl-names = "default";
101                                 status = "okay";
102                                 phy = <&phy1>;
103                                 phy-mode = "rgmii-id";
104                         };
105
106                         i2c@11000 {
107                                 pinctrl-0 = <&i2c0_pins>;
108                                 pinctrl-names = "default";
109                                 clock-frequency = <100000>;
110                                 status = "okay";
111                                 audio_codec: audio-codec@4a {
112                                         #sound-dai-cells = <0>;
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
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 */
137                                 broken-cd;
138                         };
139
140                         usb@50000 {
141                                 status = "okay";
142                         };
143
144                         usb@51000 {
145                                 status = "okay";
146                         };
147
148                         spi0: spi@10600 {
149                                 pinctrl-0 = <&spi0_pins2>;
150                                 pinctrl-names = "default";
151                                 status = "okay";
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                                 };
160                         };
161                 };
162
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                         };
174
175                         pcie@2,0 {
176                                 /* Port 1, Lane 0 */
177                                 status = "okay";
178                         };
179                 };
180         };
181
182         sound {
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                 };
228         };
229
230         spdif_out: spdif-out {
231                 #sound-dai-cells = <0>;
232                 compatible = "linux,spdif-dit";
233         };
234
235         spdif_in: spdif-in {
236                 #sound-dai-cells = <0>;
237                 compatible = "linux,spdif-dir";
238         };
239 };