From patchwork Fri Apr 10 20:43:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 47068 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 88A48218D9 for ; Fri, 10 Apr 2015 20:44:18 +0000 (UTC) Received: by lbbrr5 with SMTP id rr5sf6742184lbb.3 for ; Fri, 10 Apr 2015 13:44:17 -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=eygWy57GG/X+Ye0qoQEPO9v/oXXTslLD8WO15eX8CyU=; b=M5soVJPANqNU4TpKr/0pdJGflap0onNjNvMwoskT4XqXhOR5+f64pKkRIFq0XGKoZO wX6DhX04xSOUFafs7PXoMXraL2fE3/q39+MDyWcEpz0Ai30hU/U5nccFd/LOvd4AdDPj puYXCJQ+DTl+awMD5v+ieFw1ZIj60Zt6bj6beE+kHgIYUEIi7ax1lH/ODd5vMUMTie6T aDPG/ERlIpqQka5B0wlTp83foeRpM3HTRHrwHWnTwFRLjqXpL6eMVuHxPvGVE73+q2wa 5fvqAR10C17SQDxdkl6MQCS3ElNn1vGYgFPcCfNAwx3K1wlzeGrbzU+AshGk/rnTOgPu Woiw== X-Gm-Message-State: ALoCoQmOUz799mqHhRQIoSDzTdJFKO0U4PiwdPIgklWQybJcqpCXrKbfzWJ0FI9M9jfgzxZCeVlQ X-Received: by 10.152.5.168 with SMTP id t8mr615441lat.3.1428698657501; Fri, 10 Apr 2015 13:44:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.131 with SMTP id dg3ls492410lac.74.gmail; Fri, 10 Apr 2015 13:44:17 -0700 (PDT) X-Received: by 10.152.21.136 with SMTP id v8mr3030518lae.64.1428698657327; Fri, 10 Apr 2015 13:44:17 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id dw10si2326485lbd.67.2015.04.10.13.44.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Apr 2015 13:44:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbbuc2 with SMTP id uc2so22079994lbb.2 for ; Fri, 10 Apr 2015 13:44:17 -0700 (PDT) X-Received: by 10.152.234.169 with SMTP id uf9mr3010406lac.88.1428698657192; Fri, 10 Apr 2015 13:44:17 -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 l1csp1326685lbt; Fri, 10 Apr 2015 13:44:16 -0700 (PDT) X-Received: by 10.70.55.41 with SMTP id o9mr5752588pdp.80.1428698655385; Fri, 10 Apr 2015 13:44:15 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gv1si4415163pbd.199.2015.04.10.13.44.12; Fri, 10 Apr 2015 13:44:15 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-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 S932631AbbDJUoF (ORCPT + 27 others); Fri, 10 Apr 2015 16:44:05 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:35572 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756269AbbDJUoB (ORCPT ); Fri, 10 Apr 2015 16:44:01 -0400 Received: by widdi4 with SMTP id di4so9650637wid.0 for ; Fri, 10 Apr 2015 13:44:00 -0700 (PDT) X-Received: by 10.181.11.129 with SMTP id ei1mr960895wid.57.1428698640203; Fri, 10 Apr 2015 13:44:00 -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 k2sm1166290wif.3.2015.04.10.13.43.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Apr 2015 13:43:59 -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, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v3 05/11] ARM: dts: apq8064: Add SATA controller support. Date: Fri, 10 Apr 2015 21:43:56 +0100 Message-Id: <1428698636-12114-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1428698491-11881-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1428698491-11881-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.178 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 122bf34..3d96cb8 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -116,6 +116,15 @@ }; }; + sata_phy0: 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 5aac9a5..1f900c7 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -379,6 +379,41 @@ usb-phy = <&usb4_phy>; }; + sata_phy0: 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";