934dc46645dbb8cfb516fc3023f084f5d925ee27
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / armada-xp-gp.dts
1 /*
2  * Device Tree file for Marvell Armada XP development board
3  * (DB-MV784MP-GP)
4  *
5  * Copyright (C) 2013 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-xp-mv78460.dtsi"
18
19 / {
20         model = "Marvell Armada XP Development Board DB-MV784MP-GP";
21         compatible = "marvell,axp-gp", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp";
22
23         chosen {
24                 bootargs = "console=ttyS0,115200 earlyprintk";
25         };
26
27         memory {
28                 device_type = "memory";
29                 /*
30                  * 8 GB of plug-in RAM modules by default.The amount
31                  * of memory available can be changed by the
32                  * bootloader according the size of the module
33                  * actually plugged. Only 7GB are usable because
34                  * addresses from 0xC0000000 to 0xffffffff are used by
35                  * the internal registers of the SoC.
36                  */
37                 reg = <0x00000000 0x00000000 0x00000000 0xC0000000>,
38                       <0x00000001 0x00000000 0x00000001 0x00000000>;
39         };
40
41         soc {
42                 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
43                           MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000>;
44
45                 internal-regs {
46                         serial@12000 {
47                                 clock-frequency = <250000000>;
48                                 status = "okay";
49                         };
50                         serial@12100 {
51                                 clock-frequency = <250000000>;
52                                 status = "okay";
53                         };
54                         serial@12200 {
55                                 clock-frequency = <250000000>;
56                                 status = "okay";
57                         };
58                         serial@12300 {
59                                 clock-frequency = <250000000>;
60                                 status = "okay";
61                         };
62
63                         sata@a0000 {
64                                 nr-ports = <2>;
65                                 status = "okay";
66                         };
67
68                         mdio {
69                                 phy0: ethernet-phy@0 {
70                                         reg = <16>;
71                                 };
72
73                                 phy1: ethernet-phy@1 {
74                                         reg = <17>;
75                                 };
76
77                                 phy2: ethernet-phy@2 {
78                                         reg = <18>;
79                                 };
80
81                                 phy3: ethernet-phy@3 {
82                                         reg = <19>;
83                                 };
84                         };
85
86                         ethernet@70000 {
87                                 status = "okay";
88                                 phy = <&phy0>;
89                                 phy-mode = "rgmii-id";
90                         };
91                         ethernet@74000 {
92                                 status = "okay";
93                                 phy = <&phy1>;
94                                 phy-mode = "rgmii-id";
95                         };
96                         ethernet@30000 {
97                                 status = "okay";
98                                 phy = <&phy2>;
99                                 phy-mode = "rgmii-id";
100                         };
101                         ethernet@34000 {
102                                 status = "okay";
103                                 phy = <&phy3>;
104                                 phy-mode = "rgmii-id";
105                         };
106
107                         /* Front-side USB slot */
108                         usb@50000 {
109                                 status = "okay";
110                         };
111
112                         /* Back-side USB slot */
113                         usb@51000 {
114                                 status = "okay";
115                         };
116
117                         spi0: spi@10600 {
118                                 status = "okay";
119
120                                 spi-flash@0 {
121                                         #address-cells = <1>;
122                                         #size-cells = <1>;
123                                         compatible = "n25q128a13";
124                                         reg = <0>; /* Chip select 0 */
125                                         spi-max-frequency = <108000000>;
126                                 };
127                         };
128
129                         devbus-bootcs@10400 {
130                                 status = "okay";
131                                 ranges = <0 0xf0000000 0x1000000>; /* @addr 0xf000000, size 0x1000000 */
132
133                                 /* Device Bus parameters are required */
134
135                                 /* Read parameters */
136                                 devbus,bus-width    = <8>;
137                                 devbus,turn-off-ps  = <60000>;
138                                 devbus,badr-skew-ps = <0>;
139                                 devbus,acc-first-ps = <124000>;
140                                 devbus,acc-next-ps  = <248000>;
141                                 devbus,rd-setup-ps  = <0>;
142                                 devbus,rd-hold-ps   = <0>;
143
144                                 /* Write parameters */
145                                 devbus,sync-enable = <0>;
146                                 devbus,wr-high-ps  = <60000>;
147                                 devbus,wr-low-ps   = <60000>;
148                                 devbus,ale-wr-ps   = <60000>;
149
150                                 /* NOR 16 MiB */
151                                 nor@0 {
152                                         compatible = "cfi-flash";
153                                         reg = <0 0x1000000>;
154                                         bank-width = <2>;
155                                 };
156                         };
157
158                         pcie-controller {
159                                 status = "okay";
160
161                                 /*
162                                  * The 3 slots are physically present as
163                                  * standard PCIe slots on the board.
164                                  */
165                                 pcie@1,0 {
166                                         /* Port 0, Lane 0 */
167                                         status = "okay";
168                                 };
169                                 pcie@9,0 {
170                                         /* Port 2, Lane 0 */
171                                         status = "okay";
172                                 };
173                                 pcie@10,0 {
174                                         /* Port 3, Lane 0 */
175                                         status = "okay";
176                                 };
177                         };
178                 };
179         };
180 };