From patchwork Fri Mar 14 23:53:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 3836081 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 034819F369 for ; Fri, 14 Mar 2014 23:56:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0A099201B4 for ; Fri, 14 Mar 2014 23:56:44 +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 D1957200FE for ; Fri, 14 Mar 2014 23:56:42 +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 1WObwO-00012u-QY; Fri, 14 Mar 2014 23:55:05 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WObw2-0004PX-6q; Fri, 14 Mar 2014 23:54:42 +0000 Received: from exprod5og112.obsmtp.com ([64.18.0.24]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WObve-0004MN-Rk for linux-arm-kernel@lists.infradead.org; Fri, 14 Mar 2014 23:54:19 +0000 Received: from mail-pb0-f41.google.com ([209.85.160.41]) (using TLSv1) by exprod5ob112.postini.com ([64.18.4.12]) with SMTP ID DSNKUyOWmAuzQGupQTiaWKINm0YMXeBpFQvK@postini.com; Fri, 14 Mar 2014 16:54:18 PDT Received: by mail-pb0-f41.google.com with SMTP id jt11so3270530pbb.28 for ; Fri, 14 Mar 2014 16:54:00 -0700 (PDT) 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=x75/UgXjnJR1f7vgUdAC0qUTvOe8PZ4O4IiPU7/s1p0=; b=AME0URUGRah5bjArALLs8mm0WiotPdDNrX9yrnWPR7pgAla7ai4z0PyZU/GjgrrA7w RZHNIhR0O+wrZHPG/vnlza6GkBfdCmDByVGUXan/g6SW5NpU8kJkWUP/3BUjwPA80bND upeHiEa/A8WEIhKdLq/m1qh8ZhZ8TQEo0fcAe4a2hFV2IMrRkRRKmt+o/JXYMpaBlZxI yTPwncNTp9gAW/x6T1P9mCqoMV5vWyA63MGBB5hK9w2lIyK0oovzkYtky/+3HA1XhVTC 9ohZeo1i+enG2DZ9KFsn01RMmghV+C1S5sXDkP4YFR6OJuWrhDzw4PrHAHlnuEFqI5Bw I5xA== X-Gm-Message-State: ALoCoQnAaUECW22Xh+sdqCRfv8pQ4rIC0LuOG3wBodxDrah4cRKBlN7UvPmQTglsy7hv7qEsdHwkuC/KltDE9QDhroNKwSmPwlSaVVcQZVI4fB5EvvsJUbf6zAIwdhDx2MQUWJCg6YjqTCwrueD4vTlG5LzfBk0v04bc/nPBtGvL+V74kuGux23wM1GvRC2nz270pUQdUsVK X-Received: by 10.68.112.164 with SMTP id ir4mr11895659pbb.153.1394841240136; Fri, 14 Mar 2014 16:54:00 -0700 (PDT) X-Received: by 10.68.112.164 with SMTP id ir4mr11895645pbb.153.1394841240074; Fri, 14 Mar 2014 16:54:00 -0700 (PDT) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id ff4sm32377996pad.24.2014.03.14.16.53.58 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 14 Mar 2014 16:53:59 -0700 (PDT) From: Loc Ho To: olof@lixom.net, tj@kernel.org, arnd@arndb.de Subject: [PATCH v18 4/4] arm64: Add APM X-Gene SoC AHCI SATA host controller DTS entries Date: Fri, 14 Mar 2014 17:53:21 -0600 Message-Id: <1394841201-29495-5-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1394841201-29495-4-git-send-email-lho@apm.com> References: <1394841201-29495-1-git-send-email-lho@apm.com> <1394841201-29495-2-git-send-email-lho@apm.com> <1394841201-29495-3-git-send-email-lho@apm.com> <1394841201-29495-4-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140314_195419_062566_CA6D8573 X-CRM114-Status: UNSURE ( 8.53 ) 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, ddutile@redhat.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, T_FRT_STOCK2, T_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 This patch adds APM X-Gene SoC AHCI SATA host controller DTS entries. Signed-off-by: Loc Ho Signed-off-by: Tuan Phan Signed-off-by: Suman Tripathi Acked-by: Arnd Bergmann --- arch/arm64/boot/dts/apm-storm.dtsi | 80 ++++++++++++++++++++++++++++++++++++ 1 files changed, 80 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index 6d4f493..93f4b2d 100644 --- a/arch/arm64/boot/dts/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm-storm.dtsi @@ -218,6 +218,45 @@ enable-offset = <0x0>; enable-mask = <0x06>; }; + + sata01clk: sata01clk@1f21c000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + reg = <0x0 0x1f21c000 0x0 0x1000>; + reg-names = "csr-reg"; + clock-output-names = "sata01clk"; + csr-offset = <0x4>; + csr-mask = <0x05>; + enable-offset = <0x0>; + enable-mask = <0x39>; + }; + + sata23clk: sata23clk@1f22c000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + reg = <0x0 0x1f22c000 0x0 0x1000>; + reg-names = "csr-reg"; + clock-output-names = "sata23clk"; + csr-offset = <0x4>; + csr-mask = <0x05>; + enable-offset = <0x0>; + enable-mask = <0x39>; + }; + + sata45clk: sata45clk@1f23c000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + reg = <0x0 0x1f23c000 0x0 0x1000>; + reg-names = "csr-reg"; + clock-output-names = "sata45clk"; + csr-offset = <0x4>; + csr-mask = <0x05>; + enable-offset = <0x0>; + enable-mask = <0x39>; + }; }; serial0: serial@1c020000 { @@ -259,5 +298,46 @@ apm,tx-boost-gain = <31 31 31 31 31 31>; apm,tx-eye-tuning = <2 10 10 2 10 10>; }; + + sata1: sata@1a000000 { + compatible = "apm,xgene-ahci"; + reg = <0x0 0x1a000000 0x0 0x1000>, + <0x0 0x1f210000 0x0 0x1000>, + <0x0 0x1f21d000 0x0 0x1000>, + <0x0 0x1f21e000 0x0 0x1000>, + <0x0 0x1f217000 0x0 0x1000>; + interrupts = <0x0 0x86 0x4>; + status = "disabled"; + clocks = <&sata01clk 0>; + phys = <&phy1 0>; + phy-names = "sata-phy"; + }; + + sata2: sata@1a400000 { + compatible = "apm,xgene-ahci"; + reg = <0x0 0x1a400000 0x0 0x1000>, + <0x0 0x1f220000 0x0 0x1000>, + <0x0 0x1f22d000 0x0 0x1000>, + <0x0 0x1f22e000 0x0 0x1000>, + <0x0 0x1f227000 0x0 0x1000>; + interrupts = <0x0 0x87 0x4>; + status = "ok"; + clocks = <&sata23clk 0>; + phys = <&phy2 0>; + phy-names = "sata-phy"; + }; + + sata3: sata@1a800000 { + compatible = "apm,xgene-ahci"; + reg = <0x0 0x1a800000 0x0 0x1000>, + <0x0 0x1f230000 0x0 0x1000>, + <0x0 0x1f23d000 0x0 0x1000>, + <0x0 0x1f23e000 0x0 0x1000>; + interrupts = <0x0 0x88 0x4>; + status = "ok"; + clocks = <&sata45clk 0>; + phys = <&phy3 0>; + phy-names = "sata-phy"; + }; }; };