From patchwork Thu Aug 18 18:31:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9288615 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5EFC5600CB for ; Thu, 18 Aug 2016 19:25:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B7CF291ED for ; Thu, 18 Aug 2016 19:25:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FED82921B; Thu, 18 Aug 2016 19:25:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CF43291ED for ; Thu, 18 Aug 2016 19:25:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752314AbcHRTZY (ORCPT ); Thu, 18 Aug 2016 15:25:24 -0400 Received: from mail-lf0-f49.google.com ([209.85.215.49]:35853 "EHLO mail-lf0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752911AbcHRTZX (ORCPT ); Thu, 18 Aug 2016 15:25:23 -0400 Received: by mail-lf0-f49.google.com with SMTP id g62so18402438lfe.3 for ; Thu, 18 Aug 2016 12:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=0GELFhbdo2UNy6pWzUpn3u6sA1iK1C9nsL/5cSij8kg=; b=xNgoPeZC6H6/HFac7RJOI6Lgn8clFIW5mfcgIjmR/TODqk0+8izDtEUgaSVwTcPTbP /sBPU3Hc8uGad6fIa/5ldJ6duI9mLGSPOqAcUPrihPNM8QSif8uBI0k/Lm7sNNuSIz4f ywXG87FeREkSp5hg5rxfFTj/fc550WiHc1YkT0wvACF4OnmR9Bg/TPxbyjN6KDlBkd/x 8hpjHPEppSoqxcPcASjKaZrwGXO+DreeEZbYn9ZDXXxmBuOIz+SVdt5P5nd6y25dyaI/ AY1uXmSxJjC8zJx5WdLdBonG4ui9IEulJzDEHJeX5ZDI9WGhoWmG8vtJ3KbdKv8Or1eo zV5Q== 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=0GELFhbdo2UNy6pWzUpn3u6sA1iK1C9nsL/5cSij8kg=; b=G15ZMw7qKx19DPAY2RKx6eSlTCIz4+QSRS39hVReEo1BHSDpbn90u9wfFFBC+BkhVR hDd2hG6tH8Itd5jHZGUq+x10ki/Ub/1v55mwbQ269TmtCF+wcU5GN4XrVCvdDCIBcYU6 414cR91W0uJLJ1MXkMJVIp1lM9S943/A/kTzI2qIihZE+C6QjSSANUj5KGA8kWB3/NIC FAe3M1koF+mBEcOmhrkZv8X9N+AVGeGyNbI0dd8RBkbapdhrVOT0mXnDGbHqmnTc1yj3 COEr9ZgZs9iPqFIMyaawdnP555M9+PpcC/uMQztK5WEjtq5varoCw0vXQORx0dNm735h CBGg== X-Gm-Message-State: AEkoouuPhc+RnMQjRhNIWkhakjq2YFAhTv8pHumaku/5j/dJ/h6tFYR8Mow2Eu1ar20QPA== X-Received: by 10.25.168.212 with SMTP id r203mr1239986lfe.85.1471545117319; Thu, 18 Aug 2016 11:31:57 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.81.154]) by smtp.gmail.com with ESMTPSA id g3sm509642lfe.14.2016.08.18.11.31.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Aug 2016 11:31:55 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: dts: blanche: add SDHI0 support Date: Thu, 18 Aug 2016 21:31:54 +0300 Message-ID: <3029697.f9plKzFKet@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.6.5-200.fc23.x86_64; KDE/4.14.20; x86_64; ; ) In-Reply-To: <5383928.8UnDsUpmkz@wasted.cogentembedded.com> References: <5383928.8UnDsUpmkz@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Define the Blanche board dependent part of the SDHI0 (connected to the micro-SD slot) device node along with the necessary voltage regulator. Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20160817-v4.8-rc2' of Simon Horman's 'renesas.git' repo plus the general purpose switches patch posted yesterday. arch/arm/boot/dts/r8a7792-blanche.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7792-blanche.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7792-blanche.dts +++ renesas/arch/arm/boot/dts/r8a7792-blanche.dts @@ -103,6 +103,17 @@ gpios = <&gpio11 2 GPIO_ACTIVE_LOW>; }; }; + + vcc_sdhi0: regulator-vcc-sdhi0 { + compatible = "regulator-fixed"; + + regulator-name = "SDHI0 Vcc"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&gpio11 12 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; }; &extal_clk { @@ -139,6 +150,11 @@ groups = "can0_data", "can_clk"; function = "can0"; }; + + sdhi0_pins: sdhi0 { + groups = "sdhi0_data4", "sdhi0_ctrl"; + function = "sdhi0"; + }; }; &scif0 { @@ -161,3 +177,12 @@ status = "okay"; }; + +&sdhi0 { + pinctrl-0 = <&sdhi0_pins>; + pinctrl-names = "default"; + + vmmc-supply = <&vcc_sdhi0>; + cd-gpios = <&gpio11 11 GPIO_ACTIVE_LOW>; + status = "okay"; +};