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: 29920 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3B95020534 for ; Fri, 9 May 2014 18:55:47 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id i17sf13286874qcy.2 for ; Fri, 09 May 2014 11:55: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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=RJZSv0kqE4yFHoPrukvpsr2AX2Eh4XrQhrxV6NPUnqg=; b=Dmqcm+J/zaHtBmgHoL2ZdA5phCA0kW59Z+v3dHMu7xwiL6d4b2CU5sMEAAcKpe2L52 FguxO/JTiV91WVZcXipbdEJRM9SC9hmUBE5vpovMn9f3nw/WnXmdIgN2YhJi6TvrcTkB urCGggxzZZgwfaWfasecw5DDtF7PiUiaWoL5pBut8BfgguPqH9YN5fs5UITlzn8V/Fe3 ymI7en+JkVEkuA+QLkqZqk5uWK9PW9aGbGg0+wMzbIot4UPmZvpqs8KhLLXj2XvChTbu /5g6Ol6CCkaHy7TEHdjc2CCK+qh0Bk4zLwqN5EwGSOwq5s7Cn/gCKgZEzz1vi+SeBZd+ HTUQ== X-Gm-Message-State: ALoCoQnq7uuu+5R8RSRyA29UqTsmNT4jBEV/S3X15etOceNc2AxPCh8e/WHBiTYBM/7MG39+uXUB X-Received: by 10.224.13.12 with SMTP id z12mr5814859qaz.7.1399661747016; Fri, 09 May 2014 11:55:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.178 with SMTP id 47ls494748qgb.23.gmail; Fri, 09 May 2014 11:55:46 -0700 (PDT) X-Received: by 10.221.20.199 with SMTP id qp7mr9689171vcb.24.1399661746926; Fri, 09 May 2014 11:55:46 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id u1si860150vcs.194.2014.05.09.11.55.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 May 2014 11:55:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id lc6so5759196vcb.16 for ; Fri, 09 May 2014 11:55:46 -0700 (PDT) X-Received: by 10.52.227.138 with SMTP id sa10mr8092312vdc.25.1399661746803; Fri, 09 May 2014 11:55: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.220.221.72 with SMTP id ib8csp103784vcb; Fri, 9 May 2014 11:55:46 -0700 (PDT) X-Received: by 10.66.141.197 with SMTP id rq5mr23769715pab.64.1399661745534; Fri, 09 May 2014 11:55:45 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bw8si2690792pad.133.2014.05.09.11.55.44; Fri, 09 May 2014 11:55:44 -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 S1757205AbaEISzl (ORCPT + 8 others); Fri, 9 May 2014 14:55:41 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:33515 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757195AbaEISzk (ORCPT ); Fri, 9 May 2014 14:55:40 -0400 Received: by mail-pd0-f181.google.com with SMTP id w10so3964958pde.40 for ; Fri, 09 May 2014 11:55:39 -0700 (PDT) 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: 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.220.171 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: , 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>; + }; + }; }; };