From patchwork Thu Jul 21 12:44:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grzegorz Jaszczyk X-Patchwork-Id: 9241621 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2BB5D607D3 for ; Thu, 21 Jul 2016 12:51:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C22F26242 for ; Thu, 21 Jul 2016 12:51:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10AB027EE2; Thu, 21 Jul 2016 12:51:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B236326242 for ; Thu, 21 Jul 2016 12:51:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bQDQ6-00023y-F8; Thu, 21 Jul 2016 12:49:42 +0000 Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bQDI0-0001qH-Oy for linux-arm-kernel@lists.infradead.org; Thu, 21 Jul 2016 12:41:24 +0000 Received: by mail-lf0-x22a.google.com with SMTP id f93so60798202lfi.2 for ; Thu, 21 Jul 2016 05:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=L8KgRVUJRP/Xj8HcwSm+pnyOzkSWzSI1jTcDG7TvHRA=; b=Zwx+Ulj6JGB02Mr21gohQioQZ2xK9FAImDPYRUcqSXBLkaLhO2MDCxLkIRMdYRbQer VMACV/v4GBmjFYx17MMu0v7BaDz7X5eOI/3ikeuz7pPG2vmRA7czUVvVCpBnwU4omwz6 RMdP5l9hng9Z/uxLG7dJULqmEzcPnuAakGfX00B97tcgDF819ed/8jzLEWguFrK6Q0kI R9wlsw1y/+IntZhGbmv+cb044SMW7RuMmEqM5Xt24VptiU0e8yQbKeaNbYBTz8l/0our 7vv+rm00/2Fdd5Yr5IErBWThDuFN6zuryr8RYH0H1jnY65Pjioq3tqYQRxxjtsYNL8gl PDrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=L8KgRVUJRP/Xj8HcwSm+pnyOzkSWzSI1jTcDG7TvHRA=; b=LLU+NgbHRF0Q10Fk04jxF+ndzIys8CJZX2R+sc97ScJPfjeIVWNFkcOGBcrnYHqnFm MDio24Q0Rf5v8hWZNu3PtOnMgaFGMcX5D9iS5MeYimPqiqmWTBCCIMUrDfE7VYvKP/Mk fuApWEEo2joDJphjmr7XrEvetjzz7dpgdbFKGKx+E9wR55srSeK9fLUIHOzXZZlixGWt 1/X5jZze/iAxoCqIKWnki5hEnoObaQVqw3qrGCYcvm2cMvsEnMQrrmPQR3RiFLlloPgP Alst1bvSCimC4pFrpgENEJF2Xay7HiMtmxDYDrRGfFrACxrohQS5yq9Tq2s4tzhi119+ o/Wg== X-Gm-Message-State: ALyK8tLqFDO+gD1m/Vv6A4nplpHBxRKzS2JmEA12z/GrsNc7J7VjdY49uc5FFwy7fKK4Ig== X-Received: by 10.25.21.16 with SMTP id l16mr21754953lfi.229.1469104858886; Thu, 21 Jul 2016 05:40:58 -0700 (PDT) Received: from enkidu.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id 196sm1759701ljf.5.2016.07.21.05.40.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jul 2016 05:40:58 -0700 (PDT) From: Grzegorz Jaszczyk To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 14/18] ARM: mvebu: add support for the Armada 395 SoC family Date: Thu, 21 Jul 2016 14:44:11 +0200 Message-Id: <1469105055-25181-16-git-send-email-jaz@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1469105055-25181-1-git-send-email-jaz@semihalf.com> References: <1469105055-25181-1-git-send-email-jaz@semihalf.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160721_054121_231406_CBEF6756 X-CRM114-Status: GOOD ( 17.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, andrew@lunn.ch, jason@lakedaemon.net, jaz@semihalf.com, linux@armlinux.org.uk, alior@marvell.com, robh+dt@kernel.org, gregory.clement@free-electrons.com, mw@semihalf.com, thomas.petazzoni@free-electrons.com, sebastian.hesselbarth@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Beside interfaces described in the armada-39x.dtsi, the Armada 395 SoC family supports: 2 x SATA3 (2 ports in one unit) and the USB3.0 Signed-off-by: Grzegorz Jaszczyk --- .../devicetree/bindings/arm/marvell/armada-39x.txt | 2 +- arch/arm/boot/dts/armada-395.dtsi | 76 ++++++++++++++++++++++ 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/armada-395.dtsi diff --git a/Documentation/devicetree/bindings/arm/marvell/armada-39x.txt b/Documentation/devicetree/bindings/arm/marvell/armada-39x.txt index 53d4ff9..f066801 100644 --- a/Documentation/devicetree/bindings/arm/marvell/armada-39x.txt +++ b/Documentation/devicetree/bindings/arm/marvell/armada-39x.txt @@ -17,4 +17,4 @@ compatible: must contain "marvell,armada398" Example: -compatible = "marvell,a398-db", "marvell,armada398", "marvell,armada390"; +compatible = "marvell,a398-db", "marvell,armada398", "marvell,armada395", "marvell,armada390"; diff --git a/arch/arm/boot/dts/armada-395.dtsi b/arch/arm/boot/dts/armada-395.dtsi new file mode 100644 index 0000000..ab5dc49 --- /dev/null +++ b/arch/arm/boot/dts/armada-395.dtsi @@ -0,0 +1,76 @@ +/* + * Device Tree Include file for Marvell Armada 395 SoC. + * + * Copyright (C) 2016 Marvell + * + * Grzegorz Jaszczyk + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This file is distributed in the hope that it will be useful + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#include "armada-39x.dtsi" + +/ { + compatible = "marvell,armada395", "marvell,armada390"; + + soc { + internal-regs { + pinctrl@18000 { + compatible = "marvell,mv88f6925-pinctrl"; + reg = <0x18000 0x20>; + }; + + sata@a8000 { + compatible = "marvell,armada-380-ahci"; + reg = <0xa8000 0x2000>; + interrupts = ; + clocks = <&gateclk 15>; + status = "disabled"; + }; + + usb3@f0000 { + compatible = "marvell,armada-380-xhci"; + reg = <0xf0000 0x4000>,<0xf4000 0x4000>; + interrupts = ; + clocks = <&gateclk 9>; + status = "disabled"; + }; + }; + }; +};