From patchwork Sat Nov 9 07:00:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 3162021 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 1CB229F326 for ; Sat, 9 Nov 2013 07:02:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4091320444 for ; Sat, 9 Nov 2013 07:02:25 +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 3B813200E5 for ; Sat, 9 Nov 2013 07:02:24 +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 1Vf2Y4-0007JB-Ly; Sat, 09 Nov 2013 07:01:36 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vf2Xq-0005At-Gw; Sat, 09 Nov 2013 07:01:22 +0000 Received: from exprod5og105.obsmtp.com ([64.18.0.180]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vf2Xg-00057X-Fa for linux-arm-kernel@lists.infradead.org; Sat, 09 Nov 2013 07:01:14 +0000 Received: from mail-pa0-f44.google.com ([209.85.220.44]) (using TLSv1) by exprod5ob105.postini.com ([64.18.4.12]) with SMTP ID DSNKUn3doi1CsAGVZx2SDVaog8fXTo0ZoHIS@postini.com; Fri, 08 Nov 2013 23:01:12 PST Received: by mail-pa0-f44.google.com with SMTP id fb1so3209678pad.3 for ; Fri, 08 Nov 2013 23:00:50 -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=fW9Ps5ITAv1dDX+ciUX/nO2ZXipP2xAtrLZ13VIoeKQ=; b=Sn2VG+8Ky+bbKyNXKOAoMBi+gZyZa8hBcPr/1aKjEoJw5OJ+/VHGHu3428LYHN+/1J PonmMDh/pC/JoH++84iSoKuOLlE/CrUJVYtcgH1HRnWTcLxHaMygFnNaeQGoMxbp8Nzr ZVyeYHhvAY3UOiGMu9PDjz/iWNVf7QKN2cfYwvCTGxwX3Pn/pMbDevFm1zIld798TJJW wvQE6TgioO+J8rf5OM7nbuYSFn1MQipUadQ219bz2q9sziNy/EyT0L9Wwt1CI0TQQ0lx QhmdPGVd2nHRSW/l+WYbLTHvZhpxcM6NWT8Gx79V+x2Nei8N4/qugl/FMGlwV9vJ8M8I QnJA== X-Gm-Message-State: ALoCoQlJOmT2o8SP01iKlE4ApGWh9FhzS/X/mK0hXh8QZsnunsXnJhLZXzMOfeq/3IQPWM/uoE0mMv3G5mbSdcJh3PBljS6bhDr14lb6QH3lSX4qeTKuoRhK6+5VzEURBoRcSpkP+xeU/hO8fjBfw9JY0rdAspblcHWzvrpeXEbcKwBalheu+xF6YzQ1DTiDEZXB0XC5a5sZ X-Received: by 10.66.171.13 with SMTP id aq13mr19886889pac.30.1383980450504; Fri, 08 Nov 2013 23:00:50 -0800 (PST) X-Received: by 10.66.171.13 with SMTP id aq13mr19886874pac.30.1383980450394; Fri, 08 Nov 2013 23:00:50 -0800 (PST) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id vk17sm19470138pab.5.2013.11.08.23.00.49 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 08 Nov 2013 23:00:49 -0800 (PST) From: Loc Ho To: olof@lixom.net, tj@kernel.org, linux-scsi@vger.kernel.org Subject: [PATCH v2 2/5] arm64: Add APM X-Gene DTS entry for SATA controllers Date: Sat, 9 Nov 2013 00:00:28 -0700 Message-Id: <1383980431-6572-3-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1383980431-6572-2-git-send-email-lho@apm.com> References: <1383980431-6572-1-git-send-email-lho@apm.com> <1383980431-6572-2-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131109_020112_802858_56CE96A3 X-CRM114-Status: GOOD ( 10.69 ) X-Spam-Score: -4.2 (----) Cc: jcm@redhat.com, Suman Tripathi , Loc Ho , linux-arm-kernel@lists.infradead.org, Tuan Phan 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 arm64: Add APM X-Gene SATA clock and controller DTS entries. 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>; + }; }; };