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: 4144871 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F2DD5BFF02 for ; Fri, 9 May 2014 18:58:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1F40B20328 for ; Fri, 9 May 2014 18:58:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 090CB20295 for ; Fri, 9 May 2014 18:58:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wipxi-0007cX-NK; Fri, 09 May 2014 18:56:02 +0000 Received: from mail-pa0-f46.google.com ([209.85.220.46]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wipxg-0007XY-Kj for linux-arm-kernel@lists.infradead.org; Fri, 09 May 2014 18:56:01 +0000 Received: by mail-pa0-f46.google.com with SMTP id kq14so590406pab.33 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=bPB5GJlJcsZ40DzvL1VH6AuyIQqBdjaqPX3VkTzXVm2qLgWWMT1UjYgUW9B+Gu6fmL mlOaQqnSrjQLawWyNcmnaHIJJIwcSHEDrKtZVrA7l1qA2WPw5Cu1nTsGbg1gwmfN1S25 03iH3MS1yTYBbj9fgTOEgoinZdqajF2If5pCazKnm60ZbEyw4RITx/k0xrtjm9uY9Se7 1QX1ZLBBi/LpiZhS6IK5i2YTM+4AwEAWnV8vTPeDKPULBSVNrLgMOBhCWx5fYUXcb7Of b6nrzZc1abBxerS+91QX/feQSlpQHzWLRfwniNtOtClegd/FaGBf9Znf3F/iNC0rMd0q XIhg== X-Gm-Message-State: ALoCoQlTgr+/ZAj9yqdGLvsPfGhzOYCqzapoRa3dm8SjTeoIWoVCiD2zHIY6SZKiB/lk2rY8nl0r 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140509_115600_696967_42435D9C X-CRM114-Status: GOOD ( 10.08 ) X-Spam-Score: -0.7 (/) Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , Pawel Moll , Ian Campbell , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Srinivas Kandagatla , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,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>; + }; + }; }; };