From patchwork Tue Nov 26 07:01:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 3236821 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 3AE979F3A0 for ; Tue, 26 Nov 2013 07:03:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 195C020380 for ; Tue, 26 Nov 2013 07:03:33 +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 06DDB2037B for ; Tue, 26 Nov 2013 07:03:32 +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 1VlCfn-000723-PG; Tue, 26 Nov 2013 07:03:03 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VlCfh-0001v3-2t; Tue, 26 Nov 2013 07:02:57 +0000 Received: from exprod5og106.obsmtp.com ([64.18.0.182]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VlCf9-0001qr-S6 for linux-arm-kernel@lists.infradead.org; Tue, 26 Nov 2013 07:02:26 +0000 Received: from mail-pb0-f44.google.com ([209.85.160.44]) (using TLSv1) by exprod5ob106.postini.com ([64.18.4.12]) with SMTP ID DSNKUpRHarpXuA61acMg31LQfKJimSkv+PPQ@postini.com; Mon, 25 Nov 2013 23:02:23 PST Received: by mail-pb0-f44.google.com with SMTP id rq2so7431886pbb.17 for ; Mon, 25 Nov 2013 23:02:02 -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=Ce+a3xcZ2KAaOxw1kROFli/0Shwm1u13XiAvVj/cKDQ=; b=RA18HqjR3eazF0sgLBlZbzm8j1LHcG2oaWDQYiahd3NUUY2dtyqgqTuGDU/FunpMMi MY506Q8+p0b/05OG3dHXO7mX1ZsfU9UuWTz1ElGxSVc9bY8KK8TN0KEfudGy15h+L60D 4HBrGTzDIsTdnZaGwWJFcEcIfxh8r8EGuE4MB0BCEPY3TsLzcgNRo32O/8ETBVninPAf 8wqEnOVFwntTpLRVpji36xt+0mTVR7ZaCg3s6QIvABjry1Lr2bn2nayZ+27KA+zyJw46 y6rcDB6p+5MVoEn65gE4jh1h9FQt+aooJHrczdPs7bPQb581Ns4h1tpsn72mjyEhaMmR 634g== X-Gm-Message-State: ALoCoQkpjl44e26QF4FmZlpVjrhVgyEgK9FsBKsimI5byB6SMS9fFAu82dXp96pu98ch0mF0v4cxPKS/AMK67475ycUBH72Ys1JhGJLaSDrYubxyzpdkVDoUYQ5cPbjOI8MWrvfkEPZQvqofbjrEMwAp0zHv6weQOWxqeySJ1+Mm6O4CQKRdjONJFX6tw8hmkUHyF3D9KLx5 X-Received: by 10.66.163.2 with SMTP id ye2mr6125057pab.170.1385449322024; Mon, 25 Nov 2013 23:02:02 -0800 (PST) X-Received: by 10.66.163.2 with SMTP id ye2mr6125047pab.170.1385449321961; Mon, 25 Nov 2013 23:02:01 -0800 (PST) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id so2sm78209339pbc.5.2013.11.25.23.02.01 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 25 Nov 2013 23:02:01 -0800 (PST) From: Loc Ho To: olof@lixom.net, tj@kernel.org, arnd@arndb.de Subject: [PATCH v5 4/4] arm64: Add APM X-Gene SoC SATA host controller DTS entries Date: Tue, 26 Nov 2013 00:01:25 -0700 Message-Id: <1385449285-30764-5-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1385449285-30764-4-git-send-email-lho@apm.com> References: <1385449285-30764-1-git-send-email-lho@apm.com> <1385449285-30764-2-git-send-email-lho@apm.com> <1385449285-30764-3-git-send-email-lho@apm.com> <1385449285-30764-4-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131126_020224_232192_EE5A5D4D X-CRM114-Status: UNSURE ( 9.88 ) 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 arm64: Add APM X-Gene SoC SATA host controller and clock DTS entries Signed-off-by: Loc Ho Signed-off-by: Tuan Phan Signed-off-by: Suman Tripathi --- arch/arm64/boot/dts/apm-storm.dtsi | 81 ++++++++++++++++++++++++++++++++++++ 1 files changed, 81 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index f74c26a..fd8ff25 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,41 @@ apm-tx-boost-gain = <0x3 0x3 0x3 0x3 0x3 0x3>; apm-tx-eye-tuning = <0xa 0xa 0xa 0xc 0xc 0xc>; }; + + sata1: sata@1a000000 { + compatible = "apm,xgene-ahci-sgmii"; + reg = <0x0 0x1a000000 0x0 0x1000>, + <0x0 0x1f210000 0x0 0x10000>; + interrupt-parent = <&gic>; + 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>; + interrupt-parent = <&gic>; + 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>; + interrupt-parent = <&gic>; + interrupts = <0x0 0x88 0x4>; + status = "ok"; + clocks = <&sata45clk 0>; + phys = <&phy3 0>; + phy-names = "sata-6g"; + }; }; };