]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/armada-370-db.dts
Merge branches 'iommu/fixes', 'arm/omap', 'arm/smmu', 'arm/shmobile', 'x86/amd',...
[karo-tx-linux.git] / arch / arm / boot / dts / 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 licensed under the terms of the GNU General Public
12  * License version 2.  This program is licensed "as is" without any
13  * warranty of any kind, whether express or implied.
14  */
15
16 /dts-v1/;
17 #include "armada-370.dtsi"
18
19 / {
20         model = "Marvell Armada 370 Evaluation Board";
21         compatible = "marvell,a370-db", "marvell,armada370", "marvell,armada-370-xp";
22
23         chosen {
24                 bootargs = "console=ttyS0,115200 earlyprintk";
25         };
26
27         memory {
28                 device_type = "memory";
29                 reg = <0x00000000 0x40000000>; /* 1 GB */
30         };
31
32         soc {
33                 ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
34                           MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;
35
36                 internal-regs {
37                         serial@12000 {
38                                 clock-frequency = <200000000>;
39                                 status = "okay";
40                         };
41                         sata@a0000 {
42                                 nr-ports = <2>;
43                                 status = "okay";
44                         };
45
46                         mdio {
47                                 phy0: ethernet-phy@0 {
48                                         reg = <0>;
49                                 };
50
51                                 phy1: ethernet-phy@1 {
52                                         reg = <1>;
53                                 };
54                         };
55
56                         ethernet@70000 {
57                                 status = "okay";
58                                 phy = <&phy0>;
59                                 phy-mode = "rgmii-id";
60                         };
61                         ethernet@74000 {
62                                 status = "okay";
63                                 phy = <&phy1>;
64                                 phy-mode = "rgmii-id";
65                         };
66
67                         i2c@11000 {
68                                 pinctrl-0 = <&i2c0_pins>;
69                                 pinctrl-names = "default";
70                                 clock-frequency = <100000>;
71                                 status = "okay";
72                                 audio_codec: audio-codec@4a {
73                                         compatible = "cirrus,cs42l51";
74                                         reg = <0x4a>;
75                                 };
76                         };
77
78                         audio-controller@30000 {
79                                 pinctrl-0 = <&i2s_pins2>;
80                                 pinctrl-names = "default";
81                                 status = "okay";
82                         };
83
84                         mvsdio@d4000 {
85                                 pinctrl-0 = <&sdio_pins1>;
86                                 pinctrl-names = "default";
87                                 /*
88                                  * This device is disabled by default, because
89                                  * using the SD card connector requires
90                                  * changing the default CON40 connector
91                                  * "DB-88F6710_MPP_2xRGMII_DEVICE_Jumper" to a
92                                  * different connector
93                                  * "DB-88F6710_MPP_RGMII_SD_Jumper".
94                                  */
95                                 status = "disabled";
96                                 /* No CD or WP GPIOs */
97                                 broken-cd;
98                         };
99
100                         pinctrl {
101                                 /*
102                                  * These pins might be muxed as I2S by
103                                  * the bootloader, but it conflicts
104                                  * with the real I2S pins that are
105                                  * muxed using i2s_pins. We must mux
106                                  * those pins to a function other than
107                                  * I2S.
108                                  */
109                                 pinctrl-0 = <&hog_pins1 &hog_pins2>;
110                                 pinctrl-names = "default";
111
112                                 hog_pins1: hog-pins1 {
113                                         marvell,pins = "mpp6",  "mpp8", "mpp10",
114                                                        "mpp12", "mpp13";
115                                         marvell,function = "gpio";
116                                 };
117
118                                 hog_pins2: hog-pins2 {
119                                         marvell,pins = "mpp5", "mpp7", "mpp9";
120                                         marvell,function = "gpo";
121                                 };
122                         };
123
124                         usb@50000 {
125                                 status = "okay";
126                         };
127
128                         usb@51000 {
129                                 status = "okay";
130                         };
131
132                         spi0: spi@10600 {
133                                 status = "okay";
134
135                                 spi-flash@0 {
136                                         #address-cells = <1>;
137                                         #size-cells = <1>;
138                                         compatible = "mx25l25635e";
139                                         reg = <0>; /* Chip select 0 */
140                                         spi-max-frequency = <50000000>;
141                                 };
142                         };
143                 };
144
145                 pcie-controller {
146                         status = "okay";
147                         /*
148                          * The two PCIe units are accessible through
149                          * both standard PCIe slots and mini-PCIe
150                          * slots on the board.
151                          */
152                         pcie@1,0 {
153                                 /* Port 0, Lane 0 */
154                                 status = "okay";
155                         };
156
157                         pcie@2,0 {
158                                 /* Port 1, Lane 0 */
159                                 status = "okay";
160                         };
161                 };
162         };
163
164         sound {
165               compatible = "marvell,a370db-audio";
166               marvell,audio-controller = <&audio_controller>;
167               marvell,audio-codec = <&audio_codec &spdif_out &spdif_in>;
168               status = "okay";
169         };
170
171         spdif_out: spdif-out {
172               compatible = "linux,spdif-dit";
173         };
174
175         spdif_in: spdif-in {
176               compatible = "linux,spdif-dir";
177         };
178 };