From patchwork Mon Sep 29 09:15:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 38067 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8BF7D202DB for ; Mon, 29 Sep 2014 09:15:55 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id b57sf8446933eek.10 for ; Mon, 29 Sep 2014 02:15:54 -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=JP7cLKhLNM51e5/BImIu7zjlpPAW/Zp06TAVgUNcIxc=; b=cxH7knvdCQk1UCPy7Gr1Gb7rsBNkEvWD42AU6uAQlcPYK7xm4PAcS9loiVvgTIvnY/ cpZGKMN/ofwkncM71TNlV0UpR91P+JonrSXXJDrp03xRrKMnA1FJbsV83DfEcChWrQqC qUV7a8trf+UCMEO7xOU0o+PWxIMozYk+ozEFCkidD9Uu/hfLYufbxK7DS0RqIsWk6ltU ToxMbSYBttpJjZUotZfXj2IcUqZ9ELEeEZIe0hBhDDaszKBu0zqLmyc3Z9IqjxtC1cVM 6oAl5lLLfE8qOXE1NaBHAZoWkIRsMIKX98Po0NGQZVj2f45L+bTEn9OLC/N71kilPgrp UEpA== X-Gm-Message-State: ALoCoQnMXyrgMyjW5o06I5qs35avcv6Tm86X7PwN2oybEmquPrSfU88dqlWxH8PNlgAgNg0kJhwN X-Received: by 10.194.100.3 with SMTP id eu3mr25185wjb.6.1411982154735; Mon, 29 Sep 2014 02:15:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.199 with SMTP id t7ls644945laa.3.gmail; Mon, 29 Sep 2014 02:15:54 -0700 (PDT) X-Received: by 10.152.21.195 with SMTP id x3mr38247011lae.11.1411982153995; Mon, 29 Sep 2014 02:15:53 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) by mx.google.com with ESMTPS id jo8si17584620lab.25.2014.09.29.02.15.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Sep 2014 02:15:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by mail-lb0-f170.google.com with SMTP id n15so5835076lbi.29 for ; Mon, 29 Sep 2014 02:15:53 -0700 (PDT) X-Received: by 10.152.22.137 with SMTP id d9mr38410077laf.29.1411982153920; Mon, 29 Sep 2014 02:15:53 -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.130.169 with SMTP id of9csp140326lbb; Mon, 29 Sep 2014 02:15:53 -0700 (PDT) X-Received: by 10.70.39.101 with SMTP id o5mr1606391pdk.22.1411982152421; Mon, 29 Sep 2014 02:15:52 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si4364707pdp.225.2014.09.29.02.15.51 for ; Mon, 29 Sep 2014 02:15:52 -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 S1752763AbaI2JPm (ORCPT + 27 others); Mon, 29 Sep 2014 05:15:42 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:33622 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751620AbaI2JPj (ORCPT ); Mon, 29 Sep 2014 05:15:39 -0400 Received: by mail-wi0-f169.google.com with SMTP id hi2so4140512wib.0 for ; Mon, 29 Sep 2014 02:15:38 -0700 (PDT) X-Received: by 10.180.74.227 with SMTP id x3mr44996483wiv.80.1411982138203; Mon, 29 Sep 2014 02:15:38 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-2-99-232-3.as13285.net. [2.99.232.3]) by mx.google.com with ESMTPSA id nf2sm11010952wic.1.2014.09.29.02.15.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Sep 2014 02:15:37 -0700 (PDT) From: Srinivas Kandagatla To: Kumar Gala , devicetree@vger.kernel.org Cc: broonie@kernel.org, lee.jones@linaro.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arm@kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@sonymobile.com, Srinivas Kandagatla Subject: [PATCH 4/4] ARM: DT: apq8064: Add SATA controller support. Date: Mon, 29 Sep 2014 10:15:34 +0100 Message-Id: <1411982134-8090-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1411982044-7873-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1411982044-7873-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.170 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.dtsi | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index 38d3efa..fa057b7 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -274,6 +274,17 @@ regulator-always-on; }; + pm8921_s4: pm8921-s4 { + compatible = "qcom,rpm-pm8921-smps"; + reg = ; + + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + qcom,boot-load = <200000>; + qcom,switch-mode-frequency = <3200000>; + regulator-always-on; + }; + pm8921_l3: pm8921-l3 { compatible = "qcom,rpm-pm8921-pldo"; reg = ; @@ -396,6 +407,35 @@ usb-phy = <&usb4_phy>; }; + sata_phy0:sata-phy@1b400000{ + compatible = "qcom,apq8064-sata-phy"; + 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"; + 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"; + target-supply = <&pm8921_s4>; + }; + /* Temporary fixed regulator */ vsdcc_fixed: vsdcc-regulator { compatible = "regulator-fixed";