From patchwork Fri May 9 18:54: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: 4144851 Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D05379F23C for ; Fri, 9 May 2014 18:55:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0698120357 for ; Fri, 9 May 2014 18:55:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 07C5C20328 for ; Fri, 9 May 2014 18:55:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757202AbaEISzl (ORCPT ); Fri, 9 May 2014 14:55:41 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:57665 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757200AbaEISzk (ORCPT ); Fri, 9 May 2014 14:55:40 -0400 Received: by mail-pd0-f171.google.com with SMTP id r10so4029644pdi.2 for ; Fri, 09 May 2014 11:55:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vzWQriSPy+fZrB7BCcwzMXEgehrDxpNK/J6UJeBf1mo=; b=KD3aXFulXVF82BgeBBxyUd4i5Fi5JBLAgOKzcCInAXxTVPGTgaymL8YX7g805y7fH0 W+ZqOjgKeYK8+7jYt3rfM8t/eM6rGG7Q3IQi61lmNLI/0WKwNeRvqF0R4aFgRQQxDROg 6KIP46ZjzZdSJi8U3uH0NKPZSC89HTiJjRO0p6CijLZrf7Up6h3wkQH0T8qvZf7QGDf/ rZkQQDc8/kOFla/KbIZlkWJYYUhWDCpteVxKw6TMB4xdtjeDBWsQnVbu3dL0NG1LdGez KYy3MqrfwfFIqTRibWvC4aQKUosSq3SBlfqh6pVWxxjR5qFCYrWjCPULDgVd+13aH8Za zn1Q== X-Gm-Message-State: ALoCoQk2GjLxqypKpK1EIPm4x7y6gFablCbFoTH5l0PfDB+YtvIKfQjDgySaD7Y8MQtbUU6qqii7 X-Received: by 10.66.142.132 with SMTP id rw4mr23876852pab.6.1399661739363; Fri, 09 May 2014 11:55:39 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.qualcomm.com (pat_11.qualcomm.com. [192.35.156.11]) by mx.google.com with ESMTPSA id dd5sm8837486pbc.85.2014.05.09.11.55.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 May 2014 11:55:38 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Kumar Gala Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , linux-arm-msm@vger.kernel.org, Russell King , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH] ARM: DT: apq8064: Add sdcc support via mcci driver. Date: Fri, 9 May 2014 11:54:56 -0700 Message-Id: <1399661696-11766-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Srinivas Kandagatla This patch adds support to SD card controller using generic pl180 mmci driver. This patch also adds temporary fixed regulator to get it going till the actual regulator is mainlined. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 16 ++++++++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 50 ++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index c5fda40..ea386bd 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -4,9 +4,25 @@ model = "Qualcomm APQ8064/IFC6410"; compatible = "qcom,apq8064-ifc6410", "qcom,apq8064"; + aliases { + sdcc1 = &sdcc1; + sdcc3 = &sdcc3; + }; + soc { serial@16640000 { status = "ok"; }; + amba { + /* eMMC */ + sdcc1: sdcc@12400000 { + status = "okay"; + }; + + /* External micro SD card */ + sdcc3: sdcc@12180000 { + status = "okay"; + }; + }; }; }; diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index 60b89e5..640fb1d 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -2,6 +2,7 @@ /include/ "skeleton.dtsi" +#include #include / { @@ -147,5 +148,54 @@ #clock-cells = <1>; #reset-cells = <1>; }; + + /* Temporary fixed regulator */ + vsdcc_fixed: vsdcc-regulator { + compatible = "regulator-fixed"; + regulator-name = "SDCC Power"; + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <2700000>; + regulator-always-on; + }; + + amba { + compatible = "arm,amba-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + sdcc1: sdcc@12400000 { + status = "disabled"; + compatible = "arm,pl18x", "arm,primecell"; + arm,primecell-periphid = <0x00051180>; + reg = <0x12400000 0x8000>; + interrupts = ; + interrupt-names = "cmd_irq"; + clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>; + clock-names = "mclk", "apb_pclk"; + bus-width = <8>; + max-frequency = <96000000>; + non-removable; + cap-sd-highspeed; + cap-mmc-highspeed; + vmmc-supply = <&vsdcc_fixed>; + }; + + sdcc3: sdcc@12180000 { + compatible = "arm,pl18x", "arm,primecell"; + arm,primecell-periphid = <0x00051180>; + status = "disabled"; + reg = <0x12180000 0x8000>; + interrupts = ; + interrupt-names = "cmd_irq"; + clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>; + clock-names = "mclk", "apb_pclk"; + bus-width = <4>; + cap-sd-highspeed; + cap-mmc-highspeed; + max-frequency = <192000000>; + no-1-8-v; + vmmc-supply = <&vsdcc_fixed>; + }; + }; }; };