Merge tag 'remoteproc-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad...
[sfrench/cifs-2.6.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                 internal-regs {
31                         serial@12000 {
32                                 clock-frequency = <250000000>;
33                                 status = "okay";
34                         };
35                         serial@12100 {
36                                 clock-frequency = <250000000>;
37                                 status = "okay";
38                         };
39                         pinctrl {
40                                 led_pins: led-pins-0 {
41                                         marvell,pins = "mpp49", "mpp51", "mpp53";
42                                         marvell,function = "gpio";
43                                 };
44                         };
45                         leds {
46                                 compatible = "gpio-leds";
47                                 pinctrl-names = "default";
48                                 pinctrl-0 = <&led_pins>;
49
50                                 red_led {
51                                         label = "red_led";
52                                         gpios = <&gpio1 17 1>;
53                                         default-state = "off";
54                                 };
55
56                                 yellow_led {
57                                         label = "yellow_led";
58                                         gpios = <&gpio1 19 1>;
59                                         default-state = "off";
60                                 };
61
62                                 green_led {
63                                         label = "green_led";
64                                         gpios = <&gpio1 21 1>;
65                                         default-state = "off";
66                                         linux,default-trigger = "heartbeat";
67                                 };
68                         };
69
70                         gpio_keys {
71                                 compatible = "gpio-keys";
72                                 #address-cells = <1>;
73                                 #size-cells = <0>;
74
75                                 button@1 {
76                                         label = "Init Button";
77                                         linux,code = <116>;
78                                         gpios = <&gpio1 28 0>;
79                                 };
80                         };
81
82                         mdio {
83                                 phy0: ethernet-phy@0 {
84                                         reg = <0>;
85                                 };
86
87                                 phy1: ethernet-phy@1 {
88                                         reg = <1>;
89                                 };
90
91                                 phy2: ethernet-phy@2 {
92                                         reg = <2>;
93                                 };
94
95                                 phy3: ethernet-phy@3 {
96                                         reg = <3>;
97                                 };
98                         };
99
100                         ethernet@70000 {
101                                 status = "okay";
102                                 phy = <&phy0>;
103                                 phy-mode = "sgmii";
104                         };
105                         ethernet@74000 {
106                                 status = "okay";
107                                 phy = <&phy1>;
108                                 phy-mode = "sgmii";
109                         };
110                         ethernet@30000 {
111                                 status = "okay";
112                                 phy = <&phy2>;
113                                 phy-mode = "sgmii";
114                         };
115                         ethernet@34000 {
116                                 status = "okay";
117                                 phy = <&phy3>;
118                                 phy-mode = "sgmii";
119                         };
120                         i2c@11000 {
121                                 status = "okay";
122                                 clock-frequency = <400000>;
123                         };
124                         i2c@11100 {
125                                 status = "okay";
126                                 clock-frequency = <400000>;
127
128                                 s35390a: s35390a@30 {
129                                         compatible = "s35390a";
130                                         reg = <0x30>;
131                                 };
132                         };
133                         sata@a0000 {
134                                 nr-ports = <2>;
135                                 status = "okay";
136                         };
137                         usb@50000 {
138                                 status = "okay";
139                         };
140                         usb@51000 {
141                                 status = "okay";
142                         };
143
144                         devbus-bootcs@10400 {
145                                 status = "okay";
146                                 ranges = <0 0xf0000000 0x8000000>; /* @addr 0xf000000, size 0x8000000 */
147
148                                 /* Device Bus parameters are required */
149
150                                 /* Read parameters */
151                                 devbus,bus-width    = <8>;
152                                 devbus,turn-off-ps  = <60000>;
153                                 devbus,badr-skew-ps = <0>;
154                                 devbus,acc-first-ps = <124000>;
155                                 devbus,acc-next-ps  = <248000>;
156                                 devbus,rd-setup-ps  = <0>;
157                                 devbus,rd-hold-ps   = <0>;
158
159                                 /* Write parameters */
160                                 devbus,sync-enable = <0>;
161                                 devbus,wr-high-ps  = <60000>;
162                                 devbus,wr-low-ps   = <60000>;
163                                 devbus,ale-wr-ps   = <60000>;
164
165                                 /* NOR 128 MiB */
166                                 nor@0 {
167                                         compatible = "cfi-flash";
168                                         reg = <0 0x8000000>;
169                                         bank-width = <2>;
170                                 };
171                         };
172
173                         pcie-controller {
174                                 status = "okay";
175                                 /* Internal mini-PCIe connector */
176                                 pcie@1,0 {
177                                         /* Port 0, Lane 0 */
178                                         status = "okay";
179                                 };
180                         };
181                 };
182         };
183 };