xref: /rk3399_rockchip-uboot/arch/arm/dts/armada-388.dtsi (revision a69fdc7787bfa2f27eed74c2ee58c28ce932d502)
1*39a230aaSStefan Roese/*
2*39a230aaSStefan Roese * Device Tree Include file for Marvell Armada 388 SoC.
3*39a230aaSStefan Roese *
4*39a230aaSStefan Roese * Copyright (C) 2015 Marvell
5*39a230aaSStefan Roese *
6*39a230aaSStefan Roese * Gregory CLEMENT <gregory.clement@free-electrons.com>
7*39a230aaSStefan Roese *
8*39a230aaSStefan Roese * This file is dual-licensed: you can use it either under the terms
9*39a230aaSStefan Roese * of the GPL or the X11 license, at your option. Note that this dual
10*39a230aaSStefan Roese * licensing only applies to this file, and not this project as a
11*39a230aaSStefan Roese * whole.
12*39a230aaSStefan Roese *
13*39a230aaSStefan Roese *  a) This file is licensed under the terms of the GNU General Public
14*39a230aaSStefan Roese *     License version 2.  This program is licensed "as is" without
15*39a230aaSStefan Roese *     any warranty of any kind, whether express or implied.
16*39a230aaSStefan Roese *
17*39a230aaSStefan Roese * Or, alternatively,
18*39a230aaSStefan Roese *
19*39a230aaSStefan Roese *  b) Permission is hereby granted, free of charge, to any person
20*39a230aaSStefan Roese *     obtaining a copy of this software and associated documentation
21*39a230aaSStefan Roese *     files (the "Software"), to deal in the Software without
22*39a230aaSStefan Roese *     restriction, including without limitation the rights to use,
23*39a230aaSStefan Roese *     copy, modify, merge, publish, distribute, sublicense, and/or
24*39a230aaSStefan Roese *     sell copies of the Software, and to permit persons to whom the
25*39a230aaSStefan Roese *     Software is furnished to do so, subject to the following
26*39a230aaSStefan Roese *     conditions:
27*39a230aaSStefan Roese *
28*39a230aaSStefan Roese *     The above copyright notice and this permission notice shall be
29*39a230aaSStefan Roese *     included in all copies or substantial portions of the Software.
30*39a230aaSStefan Roese *
31*39a230aaSStefan Roese *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32*39a230aaSStefan Roese *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
33*39a230aaSStefan Roese *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
34*39a230aaSStefan Roese *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
35*39a230aaSStefan Roese *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
36*39a230aaSStefan Roese *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
37*39a230aaSStefan Roese *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
38*39a230aaSStefan Roese *     OTHER DEALINGS IN THE SOFTWARE.
39*39a230aaSStefan Roese *
40*39a230aaSStefan Roese *
41*39a230aaSStefan Roese * The main difference with the Armada 385 is that the 388 can handle two more
42*39a230aaSStefan Roese * SATA ports. So we can reuse the dtsi of the Armada 385, override the pinctrl
43*39a230aaSStefan Roese * property and the name of the SoC, and add the second SATA host which control
44*39a230aaSStefan Roese * the 2 other ports.
45*39a230aaSStefan Roese */
46*39a230aaSStefan Roese
47*39a230aaSStefan Roese#include "armada-385.dtsi"
48*39a230aaSStefan Roese
49*39a230aaSStefan Roese/ {
50*39a230aaSStefan Roese	model = "Marvell Armada 388 family SoC";
51*39a230aaSStefan Roese	compatible = "marvell,armada388", "marvell,armada385",
52*39a230aaSStefan Roese		"marvell,armada380";
53*39a230aaSStefan Roese
54*39a230aaSStefan Roese	soc {
55*39a230aaSStefan Roese		internal-regs {
56*39a230aaSStefan Roese			pinctrl@18000 {
57*39a230aaSStefan Roese				compatible = "marvell,mv88f6828-pinctrl";
58*39a230aaSStefan Roese			};
59*39a230aaSStefan Roese
60*39a230aaSStefan Roese			sata@e0000 {
61*39a230aaSStefan Roese				compatible = "marvell,armada-380-ahci";
62*39a230aaSStefan Roese				reg = <0xe0000 0x2000>;
63*39a230aaSStefan Roese				interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
64*39a230aaSStefan Roese				clocks = <&gateclk 30>;
65*39a230aaSStefan Roese				status = "disabled";
66*39a230aaSStefan Roese			};
67*39a230aaSStefan Roese
68*39a230aaSStefan Roese		};
69*39a230aaSStefan Roese	};
70*39a230aaSStefan Roese};
71