From patchwork Tue Sep 30 14:10:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 38158 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5E9B620549 for ; Tue, 30 Sep 2014 14:10:50 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id q1sf5619781lam.0 for ; Tue, 30 Sep 2014 07:10:47 -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=ArABFD7Z5jIDbRqeyrkGZQeaQJ9UVg/vGuWY/6+P53Q=; b=hf6JgEBJXvZn9zAjk/7tIi4eTF98+VooflXoHHY+MTNq6M0iEDK0P/9WmMTpAAwfV7 gyH9bSWHgI3VawYDBBCmzukU2WD47wQz+P1+4/IU+OgXk59zwB0ZJh6a/QiKcDmPly4g 8bGZEAU9v+aGXy30Ear7mtpTSMHwmejSYuAGJeeV/qtch3iui82f8PWQlx4tY3uLXCxP Yw/Yf/j5HulwG0M+w4F7In1SD0KP3r5YZAUyPXL6rqXk5alMXOywjoOKOTDlBVHEz1u2 +XU74mFsugsQGp3o+ThropqUpqvrv0q9goc12IhKCyUyNYIg+sbL1p2QsoUXoggy+xl7 R6Zw== X-Gm-Message-State: ALoCoQnpwh15E0xH8+yIVZ+EQv68XARlidBHATCnANI3hpVA5XcKGNTSy8Hqk/6PYkM8yPX0UagO X-Received: by 10.112.184.197 with SMTP id ew5mr6995316lbc.0.1412086246687; Tue, 30 Sep 2014 07:10:46 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.170 with SMTP id l10ls46182lah.18.gmail; Tue, 30 Sep 2014 07:10:46 -0700 (PDT) X-Received: by 10.152.2.41 with SMTP id 9mr47547199lar.79.1412086246513; Tue, 30 Sep 2014 07:10:46 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by mx.google.com with ESMTPS id x7si13672992lad.99.2014.09.30.07.10.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Sep 2014 07:10:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id gq15so314890lab.38 for ; Tue, 30 Sep 2014 07:10:46 -0700 (PDT) X-Received: by 10.153.6.36 with SMTP id cr4mr13161084lad.40.1412086246164; Tue, 30 Sep 2014 07:10:46 -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 of9csp354477lbb; Tue, 30 Sep 2014 07:10:45 -0700 (PDT) X-Received: by 10.67.14.165 with SMTP id fh5mr9838383pad.2.1412086244064; Tue, 30 Sep 2014 07:10:44 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tt2si11762780pac.38.2014.09.30.07.10.42 for ; Tue, 30 Sep 2014 07:10:44 -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 S1752259AbaI3OKi (ORCPT + 27 others); Tue, 30 Sep 2014 10:10:38 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:43912 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752193AbaI3OKe (ORCPT ); Tue, 30 Sep 2014 10:10:34 -0400 Received: by mail-wi0-f176.google.com with SMTP id n3so5727965wiv.15 for ; Tue, 30 Sep 2014 07:10:32 -0700 (PDT) X-Received: by 10.194.177.226 with SMTP id ct2mr52262180wjc.20.1412086232801; Tue, 30 Sep 2014 07:10:32 -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 t9sm19343945wjf.41.2014.09.30.07.10.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Sep 2014 07:10:32 -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 v2 4/4] ARM: dts: apq8064: Add SATA controller support. Date: Tue, 30 Sep 2014 15:10:27 +0100 Message-Id: <1412086227-21071-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412086159-20894-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1412086159-20894-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.51 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 | 8 +++++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 36 ++++++++++++++++++++++++++++++ 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 f221e9e..446dab9 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -40,6 +40,14 @@ }; }; + sata_phy0: sata-phy@1b400000{ + status = "okay"; + }; + + sata0: sata@29000000 { + status = "okay"; + }; + /* 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 28643fb..44b6a0a 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -634,6 +634,42 @@ 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"; + target-supply = <&pm8921_s4>; + }; + /* Temporary fixed regulator */ vsdcc_fixed: vsdcc-regulator { compatible = "regulator-fixed";