From patchwork Fri Oct 16 21:37:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 7421041 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D1C729F302 for ; Fri, 16 Oct 2015 21:37:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0CE262060E for ; Fri, 16 Oct 2015 21:37:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0F09C2088B for ; Fri, 16 Oct 2015 21:37:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751760AbbJPVhF (ORCPT ); Fri, 16 Oct 2015 17:37:05 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:33487 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751105AbbJPVhE (ORCPT ); Fri, 16 Oct 2015 17:37:04 -0400 Received: by lffv3 with SMTP id v3so85754402lff.0 for ; Fri, 16 Oct 2015 14:37:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=B92WLux9Moq81AKJ/JPeq1Vf7s53+8ZCenWvli3kYRk=; b=V8a5HZXqQzCUMiPtEJkr+7eTrpYEG8p45dAjtU5g7jtidiKpse5rDwY+/8lQVIo63q FXSzDzTNv5xnBeWUk0OF22/dVdP/TKc6I1HaoIXUst7IOPlqa+weZWR8MSSjh+6iP/nS 1sxGmznbDqV7FZW1dGGSQjj8MLgbQqV1DlyFqXsUvNtcD9VdoanElwKvHL+ULhio5HCN XStszQYZyAER8cVp/izs10a8pDclGGuZS1VI1jBGMkKMVq7OlxgRnr8v264Gc9Af3LSa n0gerMBd3ffxu/tX2yovj44ZdkeeY395bzcCLkpEYKTUPQ3UmH2ovmhHyaj9r/prGQzZ u+kQ== X-Gm-Message-State: ALoCoQmdyfIZXuhISbRvE0NleFLzGroJrXNj+s+nBJbAh1VIucHotOipm7xyMJN/G6vnPWUXS5w8 X-Received: by 10.25.163.133 with SMTP id m127mr6177042lfe.121.1445031422249; Fri, 16 Oct 2015 14:37:02 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp83-237-249-26.pppoe.mtu-net.ru. [83.237.249.26]) by smtp.gmail.com with ESMTPSA id pm6sm3146521lbc.1.2015.10.16.14.37.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Oct 2015 14:37:01 -0700 (PDT) Date: Fri, 16 Oct 2015 14:37:01 -0700 (PDT) X-Google-Original-Date: Sat, 17 Oct 2015 00:37 +0300 From: Sergei Shtylyov To: horms@verge.net.au, linux-sh@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2] ARM: shmobile: silk: add SDHI1 DT support Message-ID: <2544073.SzFGJq3XZ1@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.9 (Linux/4.1.8-100.fc21.x86_64; KDE/4.14.9; x86_64; ; ) In-Reply-To: <10037494.4LD4T2QGPX@wasted.cogentembedded.com> References: <10037494.4LD4T2QGPX@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Define the SILK board dependent part of the SDHI1 (connected to micro-SD slot) device nodes along with the necessary voltage regulators. Based on the original patch by Vladimir Barinov . Signed-off-by: Sergei Shtylyov --- This patch is against 'renesas-devel-20151015-v4.3-rc5' tag of Simon Horman's 'renesas.git' repo. Changes in version 3: - removed the "disable-wp" property; - added empty line before the regulator nodes; - reformatted the changelog; - refreshed the patch. Changes in version 2: - removed non-working SDHI0 stuff, renamed the patch; - replaced SDHI1's "wp-gpios" property with "disable-wp". arch/arm/boot/dts/r8a7794-silk.dts | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: renesas/arch/arm/boot/dts/r8a7794-silk.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7794-silk.dts +++ renesas/arch/arm/boot/dts/r8a7794-silk.dts @@ -12,6 +12,7 @@ /dts-v1/; #include "r8a7794.dtsi" +#include / { model = "SILK"; @@ -39,6 +40,30 @@ regulator-boot-on; regulator-always-on; }; + + vcc_sdhi1: regulator@3 { + compatible = "regulator-fixed"; + + regulator-name = "SDHI1 Vcc"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vccq_sdhi1: regulator@4 { + compatible = "regulator-gpio"; + + regulator-name = "SDHI1 VccQ"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + + gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>; + gpios-states = <1>; + states = <3300000 1 + 1800000 0>; + }; }; &extal_clk { @@ -71,6 +96,11 @@ renesas,function = "mmc"; }; + sdhi1_pins: sd1 { + renesas,groups = "sdhi1_data4", "sdhi1_ctrl"; + renesas,function = "sdhi1"; + }; + qspi_pins: spi0 { renesas,groups = "qspi_ctrl", "qspi_data4"; renesas,function = "qspi"; @@ -147,6 +177,16 @@ status = "okay"; }; +&sdhi1 { + pinctrl-0 = <&sdhi1_pins>; + pinctrl-names = "default"; + + vmmc-supply = <&vcc_sdhi1>; + vqmmc-supply = <&vccq_sdhi1>; + cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; + status = "okay"; +}; + &qspi { pinctrl-0 = <&qspi_pins>; pinctrl-names = "default";