From patchwork Thu Apr 9 08:23:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 46907 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2F3C721416 for ; Thu, 9 Apr 2015 08:23:21 +0000 (UTC) Received: by wixv7 with SMTP id v7sf15687497wix.0 for ; Thu, 09 Apr 2015 01:23:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=glWzPh5L3DpTHpuZmY6+APq9e9syVjACqvbNccaxIc0=; b=l/PKCMYsdxj1vryjUd/yxXP/TU7+JS9CmiYBM2SijEz9GoJ8ptndwx2WLCqp/FPxfH jLlIrb79hcGdoj/0aNBA3wSd5h6dNInvqGweHYllm85OQ1+nnn9VvicFX3srrSOy5GLo vi0PxUyf/0oqVoSGdMGuFkn4Dt4yszFf46xTZi0XdB9hXprZ31JspuLMGWyMBo2hXKeC nRJi8J+NH41BTj6xKldPXllrhc7qGfoG3s2ZYr5fNitr2OfyJtKhdsK2rGwXb1n4rBd4 kdNdGRkiBdPrAWlkPCSPsmrPkaJZing0vzIng3vnNWgVp7RBrqkF3OzkZ1oxu6kMFq1Q VsBQ== X-Gm-Message-State: ALoCoQlRNQrkPx9jefAAZgP6h2IF3HDz6GP1555KwRi5ospvP1j3NMNsbNnUj1JrHZQuBZrBl/K3 X-Received: by 10.194.53.225 with SMTP id e1mr5713808wjp.4.1428567800523; Thu, 09 Apr 2015 01:23:20 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.8 with SMTP id j8ls295043lae.7.gmail; Thu, 09 Apr 2015 01:23:20 -0700 (PDT) X-Received: by 10.152.4.72 with SMTP id i8mr3363404lai.29.1428567800364; Thu, 09 Apr 2015 01:23:20 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id xp11si3723048lac.1.2015.04.09.01.23.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Apr 2015 01:23:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbcga7 with SMTP id ga7so35795808lbc.1 for ; Thu, 09 Apr 2015 01:23:20 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr20142568lbc.32.1428567800264; Thu, 09 Apr 2015 01:23:20 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp328549lbt; Thu, 9 Apr 2015 01:23:19 -0700 (PDT) X-Received: by 10.66.120.40 with SMTP id kz8mr35430319pab.86.1428567798401; Thu, 09 Apr 2015 01:23:18 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rt5si13051641pab.25.2015.04.09.01.23.17; Thu, 09 Apr 2015 01:23:18 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753062AbbDIIXQ (ORCPT + 5 others); Thu, 9 Apr 2015 04:23:16 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:34391 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753109AbbDIIXP (ORCPT ); Thu, 9 Apr 2015 04:23:15 -0400 Received: by widjs5 with SMTP id js5so49691000wid.1 for ; Thu, 09 Apr 2015 01:23:14 -0700 (PDT) X-Received: by 10.194.187.41 with SMTP id fp9mr54104362wjc.58.1428567794104; Thu, 09 Apr 2015 01:23:14 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-78-145-247-151.as13285.net. [78.145.247.151]) by mx.google.com with ESMTPSA id at4sm19014400wjc.16.2015.04.09.01.23.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Apr 2015 01:23:13 -0700 (PDT) From: Srinivas Kandagatla To: galak@codeaurora.org, linux-arm-msm@vger.kernel.org Cc: bjorn.andersson@sonymobile.com, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Russell King , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, inux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 04/10] ARM: dts: apq8064: Add SATA controller support. Date: Thu, 9 Apr 2015 09:23:10 +0100 Message-Id: <1428567790-10893-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1428567674-10672-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1428567674-10672-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch adds AHCI based SATA controller support to APQ8064. Tested on IFC6410 board. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 9 ++++++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 35 ++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index 17a0946..d39a5bb 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -49,6 +49,15 @@ }; }; + sata_phy0: sata-phy@1b400000{ + status = "okay"; + }; + + sata0: sata@29000000 { + status = "okay"; + target-supply = <&pm8921_s4>; + }; + /* OTG */ usb1_phy: phy@12500000 { status = "okay"; diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index cca9162..ea0145f 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -627,6 +627,41 @@ usb-phy = <&usb4_phy>; }; + sata_phy0: sata-phy@1b400000{ + compatible = "qcom,apq8064-sata-phy"; + status = "disabled"; + reg = <0x1b400000 0x200>; + reg-names = "phy_mem"; + clocks = <&gcc SATA_PHY_CFG_CLK>; + clock-names = "cfg"; + #phy-cells = <0>; + }; + + sata0: sata@29000000 { + compatible = "generic-ahci"; + status = "disabled"; + reg = <0x29000000 0x180>; + interrupts = ; + + clocks = <&gcc SFAB_SATA_S_H_CLK>, + <&gcc SATA_H_CLK>, + <&gcc SATA_A_CLK>, + <&gcc SATA_RXOOB_CLK>, + <&gcc SATA_PMALIVE_CLK>; + clock-names = "slave_iface", + "iface", + "bus", + "rxoob", + "core_pmalive"; + + assigned-clocks = <&gcc SATA_RXOOB_CLK>, + <&gcc SATA_PMALIVE_CLK>; + assigned-clock-rates = <100000000>, <100000000>; + + phys = <&sata_phy0>; + phy-names = "sata-phy"; + }; + /* Temporary fixed regulator */ vsdcc_fixed: vsdcc-regulator { compatible = "regulator-fixed";