From patchwork Mon Feb 23 07:55:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 44892 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f197.google.com (mail-we0-f197.google.com [74.125.82.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BF8AF21570 for ; Mon, 23 Feb 2015 07:55:38 +0000 (UTC) Received: by wesu56 with SMTP id u56sf10840727wes.1 for ; Sun, 22 Feb 2015 23:55:38 -0800 (PST) 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=k6FT2+8E0UNanxR4HtuqzORtWn+XtFalJL4MF3sf4IA=; b=FZAAl1GORGKiA23g7HplWDGPkBRHVllx7Ak5gvuLhUfZSgkaeNdsjGX6W7+iBfnTOw FldcviWu1A+GNqeqz6+a9VRQjqdbf/Lm/ZiCkb7oQaEIqJGfkwSzERGbD2PnHHtlwS7V iBjK8HpRIqo/kPHZ/siBUsdUiSgxzNBncWdav5K+R6UuVPivJOsQXDKcbc3dqBZH+EzL OpTTca5clDpWNGwZ1i09JEOgUBby79r+3S+n4KZUxSljoZyGmK56NNdTWm1nNUDNBgSd QI0iC0XqABxGYaM8uwqbKVPyCLqFUf5jkA93g0GAyKg3X7iOHBHqxUKRU371GA7a6Q2M oapw== X-Gm-Message-State: ALoCoQkJ0bpK5WCIRNirbg4s0AeGs6hzH+tS0NlpteBh+9+ELcXRfTR5VMjtBVVFJwmqh8yH0DeV X-Received: by 10.112.124.142 with SMTP id mi14mr1067407lbb.1.1424678138085; Sun, 22 Feb 2015 23:55:38 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.210 with SMTP id ba18ls446778lab.78.gmail; Sun, 22 Feb 2015 23:55:37 -0800 (PST) X-Received: by 10.112.109.103 with SMTP id hr7mr4272996lbb.27.1424678137839; Sun, 22 Feb 2015 23:55:37 -0800 (PST) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id q3si25409379lbp.47.2015.02.22.23.55.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Feb 2015 23:55:37 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lams18 with SMTP id s18so16757701lam.13 for ; Sun, 22 Feb 2015 23:55:37 -0800 (PST) X-Received: by 10.152.22.67 with SMTP id b3mr8395122laf.117.1424678137744; Sun, 22 Feb 2015 23:55:37 -0800 (PST) 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.35.133 with SMTP id h5csp1103782lbj; Sun, 22 Feb 2015 23:55:36 -0800 (PST) X-Received: by 10.68.87.196 with SMTP id ba4mr16959966pbb.15.1424678136027; Sun, 22 Feb 2015 23:55:36 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c3si70308pat.97.2015.02.22.23.55.34; Sun, 22 Feb 2015 23:55:36 -0800 (PST) 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 S1752429AbbBWHz2 (ORCPT + 28 others); Mon, 23 Feb 2015 02:55:28 -0500 Received: from mail-wg0-f41.google.com ([74.125.82.41]:57683 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752395AbbBWHzW (ORCPT ); Mon, 23 Feb 2015 02:55:22 -0500 Received: by mail-wg0-f41.google.com with SMTP id b13so23986557wgh.0 for ; Sun, 22 Feb 2015 23:55:21 -0800 (PST) X-Received: by 10.194.189.138 with SMTP id gi10mr20009338wjc.86.1424678121649; Sun, 22 Feb 2015 23:55:21 -0800 (PST) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-2-96-88-56.as13285.net. [2.96.88.56]) by mx.google.com with ESMTPSA id f1sm14694222wij.2.2015.02.22.23.55.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Feb 2015 23:55:20 -0800 (PST) From: Srinivas Kandagatla To: Kumar Gala , linux-arm-msm@vger.kernel.org Cc: 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 04/12] ARM: dts: apq8064: Add SATA controller support. Date: Mon, 23 Feb 2015 07:55:17 +0000 Message-Id: <1424678117-13094-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <424678035-12862-1-git-send-email-srinivas.kandagatla@linaro.org> References: <424678035-12862-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.215.49 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 | 15 +++++++++++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 35 ++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index 1723cdf..3164197 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -56,6 +56,12 @@ qcom,switch-mode-frequency = <4800000>; }; + pm8921_s4: pm8921-s4 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + qcom,switch-mode-frequency = <3200000>; + }; + pm8921_l3: pm8921-l3 { regulator-min-microvolt = <3050000>; regulator-max-microvolt = <3300000>; @@ -72,6 +78,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 c251c72..e65aff0 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -566,6 +566,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 = <0 209 0>; + + 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";