From patchwork Wed Oct 1 09:06:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 38227 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5C266202E7 for ; Wed, 1 Oct 2014 09:07:15 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id 10sf279021lbg.5 for ; Wed, 01 Oct 2014 02:07:14 -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=SsEYtHO8I8II2vY9Ppfppk6wsEkPjjm0F1Z87QQ2AwY=; b=HUVJAxUFNq5A3dM6+ROij9t7PUwJiTGfk7xG6OCE5zFOsJHics+qnGxptFYl5KhBi/ H5BV5HE24InKteijRq5y/7hLXZiIJl9kzRm3x+dZSlM+Ffcoh8Jd51EDojkmDqt99Ge6 K09tfqXEIfv2irpifI2rKjH3gVhKJi93hVHnrOFQDUKNgpgnBfAZqfB3Da+qkMRJCr6E HoOVtPs6XYqk8Yi4LnWECSwfV39ebnn92jlax1MDEJQXJFYPXJmoJuRKAolCQ44c1Uwr rU+3Daj8WrKb7aUSMH3fyKse3pGwwU/lJssfz+3CS/UHPfrrUWcniAerTaLTGYNWRALu 8+ww== X-Gm-Message-State: ALoCoQkywQHOHy4tUIZssW6fdY17Ad23gwOkHKBblll4T0dfZN5hCzDZKgEA1vNA9wH1Y1flSys+ X-Received: by 10.112.62.130 with SMTP id y2mr6834226lbr.4.1412154434197; Wed, 01 Oct 2014 02:07:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.3.132 with SMTP id c4ls132230lac.88.gmail; Wed, 01 Oct 2014 02:07:14 -0700 (PDT) X-Received: by 10.112.130.226 with SMTP id oh2mr16309173lbb.100.1412154434058; Wed, 01 Oct 2014 02:07:14 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) by mx.google.com with ESMTPS id c10si543781lab.76.2014.10.01.02.07.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 Oct 2014 02:07:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by mail-la0-f45.google.com with SMTP id q1so366125lam.18 for ; Wed, 01 Oct 2014 02:07:13 -0700 (PDT) X-Received: by 10.152.42.136 with SMTP id o8mr53431716lal.71.1412154433903; Wed, 01 Oct 2014 02:07:13 -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 of9csp494398lbb; Wed, 1 Oct 2014 02:07:13 -0700 (PDT) X-Received: by 10.68.242.161 with SMTP id wr1mr2984406pbc.167.1412154430114; Wed, 01 Oct 2014 02:07:10 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ha11si260828pbd.120.2014.10.01.02.07.09 for ; Wed, 01 Oct 2014 02:07:10 -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 S1752115AbaJAJHE (ORCPT + 5 others); Wed, 1 Oct 2014 05:07:04 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:45273 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752114AbaJAJHB (ORCPT ); Wed, 1 Oct 2014 05:07:01 -0400 Received: by mail-wg0-f44.google.com with SMTP id y10so526533wgg.3 for ; Wed, 01 Oct 2014 02:06:59 -0700 (PDT) X-Received: by 10.194.78.76 with SMTP id z12mr36826859wjw.24.1412154419867; Wed, 01 Oct 2014 02:06:59 -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 xt1sm441812wjb.30.2014.10.01.02.06.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Oct 2014 02:06:59 -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, linux-arm-msm@vger.kernel.org, bjorn.andersson@sonymobile.com, Srinivas Kandagatla Subject: [PATCH v3 4/4] ARM: dts: apq8064: Add SATA controller support. Date: Wed, 1 Oct 2014 10:06:56 +0100 Message-Id: <1412154416-2870-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412154355-2639-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1412154355-2639-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.215.45 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 3e2c777..6856c9d 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -47,6 +47,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>; @@ -63,6 +69,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";