Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
[linux-drm-fsl-dcu.git] / arch / arm / boot / dts / armada-xp-openblocks-ax3-4.dts
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  */
12
13 /dts-v1/;
14 #include "armada-xp-mv78260.dtsi"
15
16 / {
17         model = "PlatHome OpenBlocks AX3-4 board";
18         compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
19
20         chosen {
21                 bootargs = "console=ttyS0,115200 earlyprintk";
22         };
23
24         memory {
25                 device_type = "memory";
26                 reg = <0 0x00000000 0 0xC0000000>; /* 3 GB */
27         };
28
29         soc {
30                 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
31                           MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
32                           MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x8000000>;
33
34                 devbus-bootcs {
35                         status = "okay";
36
37                         /* Device Bus parameters are required */
38
39                         /* Read parameters */
40                         devbus,bus-width    = <8>;
41                         devbus,turn-off-ps  = <60000>;
42                         devbus,badr-skew-ps = <0>;
43                         devbus,acc-first-ps = <124000>;
44                         devbus,acc-next-ps  = <248000>;
45                         devbus,rd-setup-ps  = <0>;
46                         devbus,rd-hold-ps   = <0>;
47
48                         /* Write parameters */
49                         devbus,sync-enable = <0>;
50                         devbus,wr-high-ps  = <60000>;
51                         devbus,wr-low-ps   = <60000>;
52                         devbus,ale-wr-ps   = <60000>;
53
54                         /* NOR 128 MiB */
55                         nor@0 {
56                                 compatible = "cfi-flash";
57                                 reg = <0 0x8000000>;
58                                 bank-width = <2>;
59                         };
60                 };
61
62                 pcie-controller {
63                         status = "okay";
64                         /* Internal mini-PCIe connector */
65                         pcie@1,0 {
66                                 /* Port 0, Lane 0 */
67                                 status = "okay";
68                         };
69                 };
70
71                 internal-regs {
72                         serial@12000 {
73                                 clock-frequency = <250000000>;
74                                 status = "okay";
75                         };
76                         serial@12100 {
77                                 clock-frequency = <250000000>;
78                                 status = "okay";
79                         };
80                         pinctrl {
81                                 led_pins: led-pins-0 {
82                                         marvell,pins = "mpp49", "mpp51", "mpp53";
83                                         marvell,function = "gpio";
84                                 };
85                         };
86                         leds {
87                                 compatible = "gpio-leds";
88                                 pinctrl-names = "default";
89                                 pinctrl-0 = <&led_pins>;
90
91                                 red_led {
92                                         label = "red_led";
93                                         gpios = <&gpio1 17 1>;
94                                         default-state = "off";
95                                 };
96
97                                 yellow_led {
98                                         label = "yellow_led";
99                                         gpios = <&gpio1 19 1>;
100                                         default-state = "off";
101                                 };
102
103                                 green_led {
104                                         label = "green_led";
105                                         gpios = <&gpio1 21 1>;
106                                         default-state = "off";
107                                         linux,default-trigger = "heartbeat";
108                                 };
109                         };
110
111                         gpio_keys {
112                                 compatible = "gpio-keys";
113                                 #address-cells = <1>;
114                                 #size-cells = <0>;
115
116                                 button@1 {
117                                         label = "Init Button";
118                                         linux,code = <116>;
119                                         gpios = <&gpio1 28 0>;
120                                 };
121                         };
122
123                         mdio {
124                                 phy0: ethernet-phy@0 {
125                                         reg = <0>;
126                                 };
127
128                                 phy1: ethernet-phy@1 {
129                                         reg = <1>;
130                                 };
131
132                                 phy2: ethernet-phy@2 {
133                                         reg = <2>;
134                                 };
135
136                                 phy3: ethernet-phy@3 {
137                                         reg = <3>;
138                                 };
139                         };
140
141                         ethernet@70000 {
142                                 status = "okay";
143                                 phy = <&phy0>;
144                                 phy-mode = "sgmii";
145                         };
146                         ethernet@74000 {
147                                 status = "okay";
148                                 phy = <&phy1>;
149                                 phy-mode = "sgmii";
150                         };
151                         ethernet@30000 {
152                                 status = "okay";
153                                 phy = <&phy2>;
154                                 phy-mode = "sgmii";
155                         };
156                         ethernet@34000 {
157                                 status = "okay";
158                                 phy = <&phy3>;
159                                 phy-mode = "sgmii";
160                         };
161                         i2c@11000 {
162                                 status = "okay";
163                                 clock-frequency = <400000>;
164                         };
165                         i2c@11100 {
166                                 status = "okay";
167                                 clock-frequency = <400000>;
168
169                                 s35390a: s35390a@30 {
170                                         compatible = "s35390a";
171                                         reg = <0x30>;
172                                 };
173                         };
174                         sata@a0000 {
175                                 nr-ports = <2>;
176                                 status = "okay";
177                         };
178
179                         /* Front side USB 0 */
180                         usb@50000 {
181                                 status = "okay";
182                         };
183
184                         /* Front side USB 1 */
185                         usb@51000 {
186                                 status = "okay";
187                         };
188                 };
189         };
190 };