From patchwork Thu Dec 12 07:55:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 3330331 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B65D29F37A for ; Thu, 12 Dec 2013 07:59:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E105F207D7 for ; Thu, 12 Dec 2013 07:59:08 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BD49B207D1 for ; Thu, 12 Dec 2013 07:59:07 +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 1Vr19H-0002Py-GI; Thu, 12 Dec 2013 07:57:32 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vr18o-0004Jg-Tv; Thu, 12 Dec 2013 07:57:02 +0000 Received: from exprod5og103.obsmtp.com ([64.18.0.145]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vr18W-0004GL-A4 for linux-arm-kernel@lists.infradead.org; Thu, 12 Dec 2013 07:56:45 +0000 Received: from mail-pd0-f180.google.com ([209.85.192.180]) (using TLSv1) by exprod5ob103.postini.com ([64.18.4.12]) with SMTP ID DSNKUqlsJ4YbisvMsca9WPGN7JRTqx8R3r0F@postini.com; Wed, 11 Dec 2013 23:56:44 PST Received: by mail-pd0-f180.google.com with SMTP id q10so59645pdj.39 for ; Wed, 11 Dec 2013 23:56:22 -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=h9LH52qVTBhATXBE8Q1v2tuNXXXO3K0PAXT5h8qAp98=; b=cRSJob2eiRaAzG7f4yindoRXg53QDz29NZZ8r57zK++qSouPStUzhA3oPN+Rqcq38p B8/T+6Uta+babem+KILwB7uDfEZHv9ETx1hqNefz1h4WorlCo/MS8rbw9NoUtVYYUz9N XCQcdV5zVfQR4kAvsBOP5+fTUyO3ihoJJxllKG8TklYj2cfqbIGUUJCU+QRoXTSDKiF+ G5NqwCJFcSkfU1tOV9XzF/ztmOnn2nBbXjZNeu3K5l0odQLeqZkfU+Zhk3mAfscuXluJ 490nOusMldtf+cXyR4bY73WFqSvjUb52DT1vrlrhOtO8L1TFAKPRKiSr5LXgiHvTEIzZ 9YZA== X-Gm-Message-State: ALoCoQklzDSv+V8zOhBzww4lnhZFhL1qgAYrAob+p1mLf+hSyqdlF2YG40fDHbO+WJvlK0CIUHXFVQbWqZgSdUC48NoLDHeCDnK8ug9mn/huEWX0A0ek+/7EdcpTcRJFZy+nDe0IP8Vhy4ZJX6Ci/ggOXeG0aJvSFTChCv0jqTdBAPI8Di9qBfi1sCVDsPpUbOrNzuvMpFa0 X-Received: by 10.68.197.165 with SMTP id iv5mr9516781pbc.150.1386834982797; Wed, 11 Dec 2013 23:56:22 -0800 (PST) X-Received: by 10.68.197.165 with SMTP id iv5mr9516757pbc.150.1386834982669; Wed, 11 Dec 2013 23:56:22 -0800 (PST) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id sg1sm6574281pbb.16.2013.12.11.23.56.20 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 11 Dec 2013 23:56:21 -0800 (PST) From: Loc Ho To: olof@lixom.net, tj@kernel.org, arnd@arndb.de Subject: [PATCH v6 4/4] arm64: Add APM X-Gene SoC SATA host controller DTS entries Date: Thu, 12 Dec 2013 00:55:40 -0700 Message-Id: <1386834940-30875-5-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1386834940-30875-4-git-send-email-lho@apm.com> References: <1386834940-30875-1-git-send-email-lho@apm.com> <1386834940-30875-2-git-send-email-lho@apm.com> <1386834940-30875-3-git-send-email-lho@apm.com> <1386834940-30875-4-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131212_025644_595279_FEF10ADA X-CRM114-Status: UNSURE ( 9.54 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) Cc: devicetree@vger.kernel.org, Suman Tripathi , linux-scsi@vger.kernel.org, jcm@redhat.com, patches@apm.com, linux-ide@vger.kernel.org, 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, T_FRT_STOCK2, 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 | 84 ++++++++++++++++++++++++++++++++++++ 1 files changed, 84 insertions(+), 0 deletions(-) -- 1.5.5 diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index e967676..4d7fe65 100644 --- a/arch/arm64/boot/dts/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm-storm.dtsi @@ -176,6 +176,51 @@ reg-names = "csr-reg"; clock-output-names = "eth8clk"; }; + + sata01clk: sata01clk@1f21c000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + clock-names = "sata01clk"; + reg = <0x0 0x1f21c000 0x0 0x1000>; + reg-names = "csr-reg"; + clock-output-names = "sata01clk"; + status = "disabled"; + csr-offset = <0x4>; + csr-mask = <0x3f>; + enable-offset = <0x0>; + enable-mask = <0x3f>; + }; + + sata23clk: sata23clk@1f22c000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + clock-names = "sata23clk"; + reg = <0x0 0x1f22c000 0x0 0x1000>; + reg-names = "csr-reg"; + clock-output-names = "sata23clk"; + status = "ok"; + csr-offset = <0x4>; + csr-mask = <0x3f>; + enable-offset = <0x0>; + enable-mask = <0x3f>; + }; + + 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"; + status = "ok"; + csr-offset = <0x4>; + csr-mask = <0x3f>; + enable-offset = <0x0>; + enable-mask = <0x3f>; + }; }; serial0: serial@1c020000 { @@ -224,5 +269,44 @@ apm,tx-boost-gain = <0x2 0x3 0x3 0x2 0x3 0x3>; apm,tx-eye-tuning = <0x2 0xa 0xa 0x2 0xa 0xc>; }; + + sata1: sata@1a000000 { + compatible = "apm,xgene-ahci-sgmii"; + reg = <0x0 0x1a000000 0x0 0x1000>, + <0x0 0x1f210000 0x0 0x10000>, + <0x0 0x1f2a0000 0x0 0x10000>, + <0x0 0x1c000200 0x0 0x100>; + interrupts = <0x0 0x86 0x4>; + status = "disabled"; + clocks = <&sata01clk 0>; + phys = <&phy1 0>; + phy-names = "sata-6g"; + }; + + sata2: sata@1a400000 { + compatible = "apm,xgene-ahci-sgmii"; + reg = <0x0 0x1a400000 0x0 0x1000>, + <0x0 0x1f220000 0x0 0x10000>, + <0x0 0x1f2a0000 0x0 0x10000>, + <0x0 0x1c000200 0x0 0x100>; + interrupts = <0x0 0x87 0x4>; + status = "ok"; + clocks = <&sata23clk 0>; + phys = <&phy2 0>; + phy-names = "sata-6g"; + }; + + sata3: sata@1a800000 { + compatible = "apm,xgene-ahci-pcie"; + reg = <0x0 0x1a800000 0x0 0x1000>, + <0x0 0x1f230000 0x0 0x10000>, + <0x0 0x1f2a0000 0x0 0x10000>, + <0x0 0x1c000200 0x0 0x100>; + interrupts = <0x0 0x88 0x4>; + status = "ok"; + clocks = <&sata45clk 0>; + phys = <&phy3 0>; + phy-names = "sata-6g"; + }; }; };