From patchwork Fri Nov 8 22:30:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 3160241 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8F6B7C045B for ; Fri, 8 Nov 2013 22:32:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CA49020456 for ; Fri, 8 Nov 2013 22:32:36 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C81BF2044B for ; Fri, 8 Nov 2013 22:32:35 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Veuac-00077W-T8; Fri, 08 Nov 2013 22:31:43 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VeuaR-0007Qs-1S; Fri, 08 Nov 2013 22:31:31 +0000 Received: from exprod5og110.obsmtp.com ([64.18.0.20]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VeuaI-0007Ox-J1 for linux-arm-kernel@lists.infradead.org; Fri, 08 Nov 2013 22:31:23 +0000 Received: from mail-pd0-f169.google.com ([209.85.192.169]) (using TLSv1) by exprod5ob110.postini.com ([64.18.4.12]) with SMTP ID DSNKUn1mJWpqbhKrSCMCM2HT67yzwpetdbyR@postini.com; Fri, 08 Nov 2013 14:31:22 PST Received: by mail-pd0-f169.google.com with SMTP id q10so2742491pdj.0 for ; Fri, 08 Nov 2013 14:31:00 -0800 (PST) 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=drFAgOFshtB33pnWdnBigqZ7mjDO8bmefcj2L7bE4Cg=; b=eBfoCXqqvJn5ImLe4LtyVNhqF4M3AQ97+rpfAhviP+gGtqdvLYnpZWlBjycpIq84DA 8ufQ7NbikMUFJhywRSo7bSNVS8k0BjFa2KKCxJ6YYbl1lIcmPhyoqJ2l/GVVJ/W9d39N 9JmkpMfoFHnr8ZaUrIZLeIem42yc19PawewylpSceQz3cDOGKDDOdAsghnpG26+asyBd IFBOwP4KOVGHeFtepaeBOUpevObp5rQ6R5k2cV9yebFWWAU/vCnT4TorC4aMAYXBY1NY hihfv2KJuMnkko0HlGU3A6Y0h3a/18Ocn+8Hgta1s03JekL2z7duZm83aD4ro8eRZtfj cHxw== X-Gm-Message-State: ALoCoQmM5e4Caob8XSRYTpfR4L1Pge9ode5SNHg6/RBNvbJRshE3ozKzQFV++v+sK1CT3bNL+cccIv9xGD1zZUT63npmbGeOwXgvaxbMgK0A53fXjHM8TkG4CBGjQkZeLqsFtxDAJydqAspm5ZcfYMZNKWGYfS7RPtHtQK1DpebR/onzjZ80AGhc7+RiRYagnrpwhYjlHpPu X-Received: by 10.68.191.3 with SMTP id gu3mr17020571pbc.142.1383949860864; Fri, 08 Nov 2013 14:31:00 -0800 (PST) X-Received: by 10.68.191.3 with SMTP id gu3mr17020568pbc.142.1383949860799; Fri, 08 Nov 2013 14:31:00 -0800 (PST) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id sy10sm16917090pac.15.2013.11.08.14.30.59 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 08 Nov 2013 14:31:00 -0800 (PST) From: Loc Ho To: tj@kernel.org, linux-scsi@vger.kernel.org Subject: [PATCH 2/5] arm64: Add APM X-Gene SATA DTS binding Date: Fri, 8 Nov 2013 15:30:35 -0700 Message-Id: <1383949838-25106-3-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1383949838-25106-2-git-send-email-lho@apm.com> References: <1383949838-25106-1-git-send-email-lho@apm.com> <1383949838-25106-2-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131108_173122_840180_BA50DDF3 X-CRM114-Status: UNSURE ( 9.63 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) Cc: Suman Tripathi , jcm@redhat.com, devicetree-discuss@lists.ozlabs.org, patches@apm.com, Loc Ho , Tuan Phan , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Loc Ho Signed-off-by: Tuan Phan Signed-off-by: Suman Tripathi --- arch/arm64/boot/dts/apm-storm.dtsi | 73 ++++++++++++++++++++++++++++++++++++ 1 files changed, 73 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index 359d7b6..09fc967 100644 --- a/arch/arm64/boot/dts/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm-storm.dtsi @@ -176,6 +176,36 @@ reg-names = "csr-reg"; clock-output-names = "eth8clk"; }; + + eth01clk: eth01clk@1f21c000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + clock-names = "eth01clk"; + reg = <0x0 0x1f21c000 0x0 0x1000>; + reg-names = "csr-reg"; + clock-output-names = "eth01clk"; + }; + + eth23clk: eth23clk@1f22c000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + clock-names = "eth23clk"; + reg = <0x0 0x1f22c000 0x0 0x1000>; + reg-names = "csr-reg"; + clock-output-names = "eth23clk"; + }; + + sata45clk: sata45clk@1f23c000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + clock-names = "sata45clk"; + reg = <0x0 0x1f23c000 0x0 0x1000>; + reg-names = "csr-reg"; + clock-output-names = "sata45clk"; + }; }; serial0: serial@1c020000 { @@ -193,5 +223,48 @@ reg = <0x0 0x17000014 0x0 0x100>; mask = <0x1>; }; + + sata0: sata@1a000000 { + compatible = "apm,xgene-ahci"; + reg = <0x0 0x1a000000 0x0 0x100000 + 0x0 0x1f210000 0x0 0x10000>; + interrupt-parent = <&gic>; + interrupts = <0x0 0x86 0x4>; + #clock-cells = <1>; + clocks = <ð01clk 0>; + clock-names = "eth01clk"; + status = "na"; + serdes-diff-clk = <0>; + gen-sel = <3>; + }; + + sata1: sata@1a400000 { + compatible = "apm,xgene-ahci"; + reg = <0x0 0x1a400000 0x0 0x100000 + 0x0 0x1f220000 0x0 0x10000>; + interrupt-parent = <&gic>; + interrupts = <0x0 0x87 0x4>; + #clock-cells = <1>; + clocks = <ð23clk 0>; + clock-names = "eth23clk"; + status = "na"; + serdes-diff-clk = <0>; + gen-sel = <3>; + }; + + sata2: sata@1a800000 { + compatible = "apm,xgene-ahci"; + reg = <0x0 0x1a800000 0x0 0x100000 + 0x0 0x1f230000 0x0 0x10000 + 0x0 0x1f2d0000 0x0 0x10000 >; + interrupt-parent = <&gic>; + interrupts = <0x0 0x88 0x4>; + #clock-cells = <1>; + clocks = <&sata45clk 0>; + clock-names = "sata45clk"; + status = "ok"; + serdes-diff-clk = <0>; + gen-sel = <3>; + }; }; };