ARM: mvebu: Add MBus to Armada 370/XP device tree
[linux-2.6.git] / arch / arm / boot / dts / armada-xp-openblocks-ax3-4.dts
bloba3e3a1290ff54872bfbef07d53fbffe04562d4fe
1 /*
2  * Device Tree file for OpenBlocks AX3-4 board
3  *
4  * Copyright (C) 2012 Marvell
5  *
6  * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7  *
8  * This file is licensed under the terms of the GNU General Public
9  * License version 2.  This program is licensed "as is" without any
10  * warranty of any kind, whether express or implied.
11  */
13 /dts-v1/;
14 #include "armada-xp-mv78260.dtsi"
16 / {
17         model = "PlatHome OpenBlocks AX3-4 board";
18         compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
20         chosen {
21                 bootargs = "console=ttyS0,115200 earlyprintk";
22         };
24         memory {
25                 device_type = "memory";
26                 reg = <0 0x00000000 0 0xC0000000>; /* 3 GB */
27         };
29         soc {
30                 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000>;
32                 internal-regs {
33                         serial@12000 {
34                                 clock-frequency = <250000000>;
35                                 status = "okay";
36                         };
37                         serial@12100 {
38                                 clock-frequency = <250000000>;
39                                 status = "okay";
40                         };
41                         pinctrl {
42                                 led_pins: led-pins-0 {
43                                         marvell,pins = "mpp49", "mpp51", "mpp53";
44                                         marvell,function = "gpio";
45                                 };
46                         };
47                         leds {
48                                 compatible = "gpio-leds";
49                                 pinctrl-names = "default";
50                                 pinctrl-0 = <&led_pins>;
52                                 red_led {
53                                         label = "red_led";
54                                         gpios = <&gpio1 17 1>;
55                                         default-state = "off";
56                                 };
58                                 yellow_led {
59                                         label = "yellow_led";
60                                         gpios = <&gpio1 19 1>;
61                                         default-state = "off";
62                                 };
64                                 green_led {
65                                         label = "green_led";
66                                         gpios = <&gpio1 21 1>;
67                                         default-state = "off";
68                                         linux,default-trigger = "heartbeat";
69                                 };
70                         };
72                         gpio_keys {
73                                 compatible = "gpio-keys";
74                                 #address-cells = <1>;
75                                 #size-cells = <0>;
77                                 button@1 {
78                                         label = "Init Button";
79                                         linux,code = <116>;
80                                         gpios = <&gpio1 28 0>;
81                                 };
82                         };
84                         mdio {
85                                 phy0: ethernet-phy@0 {
86                                         reg = <0>;
87                                 };
89                                 phy1: ethernet-phy@1 {
90                                         reg = <1>;
91                                 };
93                                 phy2: ethernet-phy@2 {
94                                         reg = <2>;
95                                 };
97                                 phy3: ethernet-phy@3 {
98                                         reg = <3>;
99                                 };
100                         };
102                         ethernet@70000 {
103                                 status = "okay";
104                                 phy = <&phy0>;
105                                 phy-mode = "sgmii";
106                         };
107                         ethernet@74000 {
108                                 status = "okay";
109                                 phy = <&phy1>;
110                                 phy-mode = "sgmii";
111                         };
112                         ethernet@30000 {
113                                 status = "okay";
114                                 phy = <&phy2>;
115                                 phy-mode = "sgmii";
116                         };
117                         ethernet@34000 {
118                                 status = "okay";
119                                 phy = <&phy3>;
120                                 phy-mode = "sgmii";
121                         };
122                         i2c@11000 {
123                                 status = "okay";
124                                 clock-frequency = <400000>;
125                         };
126                         i2c@11100 {
127                                 status = "okay";
128                                 clock-frequency = <400000>;
130                                 s35390a: s35390a@30 {
131                                         compatible = "s35390a";
132                                         reg = <0x30>;
133                                 };
134                         };
135                         sata@a0000 {
136                                 nr-ports = <2>;
137                                 status = "okay";
138                         };
140                         /* Front side USB 0 */
141                         usb@50000 {
142                                 status = "okay";
143                         };
145                         /* Front side USB 1 */
146                         usb@51000 {
147                                 status = "okay";
148                         };
150                         /* USB interface in the mini-PCIe connector */
151                         usb@52000 {
152                                 status = "okay";
153                         };
155                         devbus-bootcs@10400 {
156                                 status = "okay";
157                                 ranges = <0 0xf0000000 0x8000000>; /* @addr 0xf000000, size 0x8000000 */
159                                 /* Device Bus parameters are required */
161                                 /* Read parameters */
162                                 devbus,bus-width    = <8>;
163                                 devbus,turn-off-ps  = <60000>;
164                                 devbus,badr-skew-ps = <0>;
165                                 devbus,acc-first-ps = <124000>;
166                                 devbus,acc-next-ps  = <248000>;
167                                 devbus,rd-setup-ps  = <0>;
168                                 devbus,rd-hold-ps   = <0>;
170                                 /* Write parameters */
171                                 devbus,sync-enable = <0>;
172                                 devbus,wr-high-ps  = <60000>;
173                                 devbus,wr-low-ps   = <60000>;
174                                 devbus,ale-wr-ps   = <60000>;
176                                 /* NOR 128 MiB */
177                                 nor@0 {
178                                         compatible = "cfi-flash";
179                                         reg = <0 0x8000000>;
180                                         bank-width = <2>;
181                                 };
182                         };
184                         pcie-controller {
185                                 status = "okay";
186                                 /* Internal mini-PCIe connector */
187                                 pcie@1,0 {
188                                         /* Port 0, Lane 0 */
189                                         status = "okay";
190                                 };
191                         };
192                 };
193         };