1/*
2 * Copyright (C) 2014 Antoine T��nart <antoine.tenart@free-electrons.com>
3 *
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
7 * whole.
8 *
9 *  a) This file is licensed under the terms of the GNU General Public
10 *     License version 2. This program is licensed "as is" without any
11 *     warranty of any kind, whether express or implied.
12 *
13 * Or, alternatively,
14 *
15 *  b) Permission is hereby granted, free of charge, to any person
16 *     obtaining a copy of this software and associated documentation
17 *     files (the "Software"), to deal in the Software without
18 *     restriction, including without limitation the rights to use,
19 *     copy, modify, merge, publish, distribute, sublicense, and/or
20 *     sell copies of the Software, and to permit persons to whom the
21 *     Software is furnished to do so, subject to the following
22 *     conditions:
23 *
24 *     The above copyright notice and this permission notice shall be
25 *     included in all copies or substantial portions of the Software.
26 *
27 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
28 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
29 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
30 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
31 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
32 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
33 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
34 *     OTHER DEALINGS IN THE SOFTWARE.
35 */
36
37/dts-v1/;
38
39#include <dt-bindings/gpio/gpio.h>
40#include "berlin2q.dtsi"
41
42/ {
43	model = "Marvell BG2-Q DMP";
44	compatible = "marvell,berlin2q-dmp", "marvell,berlin2q", "marvell,berlin";
45
46	memory {
47		device_type = "memory";
48		reg = <0x00000000 0x80000000>;
49	};
50
51	choosen {
52		bootargs = "earlyprintk";
53		stdout-path = "serial0:115200n8";
54	};
55
56	regulators {
57		compatible = "simple-bus";
58		#address-cells = <1>;
59		#size-cells = <0>;
60
61		reg_usb0_vbus: regulator@0 {
62			compatible = "regulator-fixed";
63			regulator-name = "usb0_vbus";
64			regulator-min-microvolt = <5000000>;
65			regulator-max-microvolt = <5000000>;
66			gpio = <&portb 8 GPIO_ACTIVE_HIGH>;
67			enable-active-high;
68		};
69
70		reg_usb1_vbus: regulator@1 {
71			compatible = "regulator-fixed";
72			regulator-name = "usb1_vbus";
73			regulator-min-microvolt = <5000000>;
74			regulator-max-microvolt = <5000000>;
75			gpio = <&portb 10 GPIO_ACTIVE_HIGH>;
76			enable-active-high;
77		};
78
79		reg_usb2_vbus: regulator@2 {
80			compatible = "regulator-fixed";
81			regulator-name = "usb2_vbus";
82			regulator-min-microvolt = <5000000>;
83			regulator-max-microvolt = <5000000>;
84			gpio = <&portb 12 GPIO_ACTIVE_HIGH>;
85			enable-active-high;
86		};
87	};
88};
89
90&sdhci1 {
91	broken-cd;
92	sdhci,wp-inverted;
93	status = "okay";
94};
95
96&sdhci2 {
97	broken-cd;
98	bus-width = <8>;
99	non-removable;
100	status = "okay";
101};
102
103&i2c0 {
104	status = "okay";
105};
106
107&i2c2 {
108	status = "okay";
109};
110
111&uart0 {
112	status = "okay";
113};
114
115&usb_phy0 {
116	status = "okay";
117};
118
119&usb_phy2 {
120	status = "okay";
121};
122
123&usb0 {
124	vbus-supply = <&reg_usb0_vbus>;
125	status = "okay";
126};
127
128&usb2 {
129	vbus-supply = <&reg_usb2_vbus>;
130	status = "okay";
131};
132
133&eth0 {
134	status = "okay";
135};
136
137&sata0 {
138	status = "okay";
139};
140
141&sata_phy {
142	status = "okay";
143};
144