199767f8919635c4928607450d9e0abb932109ceToomas Soome/*
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Device Tree Include file for Marvell Armada 388 SoC.
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Copyright (C) 2015 Marvell
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Gregory CLEMENT <gregory.clement@free-electrons.com>
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * This file is dual-licensed: you can use it either under the terms
199767f8919635c4928607450d9e0abb932109ceToomas Soome * of the GPL or the X11 license, at your option. Note that this dual
199767f8919635c4928607450d9e0abb932109ceToomas Soome * licensing only applies to this file, and not this project as a
199767f8919635c4928607450d9e0abb932109ceToomas Soome * whole.
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * a) This file is licensed under the terms of the GNU General Public
199767f8919635c4928607450d9e0abb932109ceToomas Soome * License version 2. This program is licensed "as is" without
199767f8919635c4928607450d9e0abb932109ceToomas Soome * any warranty of any kind, whether express or implied.
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Or, alternatively,
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * b) Permission is hereby granted, free of charge, to any person
199767f8919635c4928607450d9e0abb932109ceToomas Soome * obtaining a copy of this software and associated documentation
199767f8919635c4928607450d9e0abb932109ceToomas Soome * files (the "Software"), to deal in the Software without
199767f8919635c4928607450d9e0abb932109ceToomas Soome * restriction, including without limitation the rights to use,
199767f8919635c4928607450d9e0abb932109ceToomas Soome * copy, modify, merge, publish, distribute, sublicense, and/or
199767f8919635c4928607450d9e0abb932109ceToomas Soome * sell copies of the Software, and to permit persons to whom the
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Software is furnished to do so, subject to the following
199767f8919635c4928607450d9e0abb932109ceToomas Soome * conditions:
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * The above copyright notice and this permission notice shall be
199767f8919635c4928607450d9e0abb932109ceToomas Soome * included in all copies or substantial portions of the Software.
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
199767f8919635c4928607450d9e0abb932109ceToomas Soome * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
199767f8919635c4928607450d9e0abb932109ceToomas Soome * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
199767f8919635c4928607450d9e0abb932109ceToomas Soome * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
199767f8919635c4928607450d9e0abb932109ceToomas Soome * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
199767f8919635c4928607450d9e0abb932109ceToomas Soome * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
199767f8919635c4928607450d9e0abb932109ceToomas Soome * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
199767f8919635c4928607450d9e0abb932109ceToomas Soome * OTHER DEALINGS IN THE SOFTWARE.
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * The main difference with the Armada 385 is that the 388 can handle two more
199767f8919635c4928607450d9e0abb932109ceToomas Soome * SATA ports. So we can reuse the dtsi of the Armada 385, override the pinctrl
199767f8919635c4928607450d9e0abb932109ceToomas Soome * property and the name of the SoC, and add the second SATA host which control
199767f8919635c4928607450d9e0abb932109ceToomas Soome * the 2 other ports.
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * $FreeBSD$
199767f8919635c4928607450d9e0abb932109ceToomas Soome */
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#include "armada-385.dtsi"
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome/ {
199767f8919635c4928607450d9e0abb932109ceToomas Soome model = "Marvell Armada 388 family SoC";
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "marvell,armada388", "marvell,armada385",
199767f8919635c4928607450d9e0abb932109ceToomas Soome "marvell,armada380";
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome soc {
199767f8919635c4928607450d9e0abb932109ceToomas Soome internal-regs {
199767f8919635c4928607450d9e0abb932109ceToomas Soome pinctrl@18000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "marvell,mv88f6828-pinctrl";
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome sata@e0000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "marvell,armada-380-ahci";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xe0000 0x2000>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome clocks = <&gateclk 30>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome status = "disabled";
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome};