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: 9288587 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 C77A7607FF for ; Thu, 18 Aug 2016 18:34:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC9E728F3E for ; Thu, 18 Aug 2016 18:34:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B146A28F7D; Thu, 18 Aug 2016 18:34:00 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3BE3228F55 for ; Thu, 18 Aug 2016 18:34:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1baS79-0003Td-5Y; Thu, 18 Aug 2016 18:32:27 +0000 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1baS73-0003RO-JJ for linux-arm-kernel@lists.infradead.org; Thu, 18 Aug 2016 18:32:22 +0000 Received: by mail-lf0-x22f.google.com with SMTP id l89so17560642lfi.1 for ; Thu, 18 Aug 2016 11:31:58 -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=iyxuZ0KxoOfOSJwbmcjxjqtDSMUNs4jAjqiSSamigH+SxfCiUeBNpQc4jCzlzM/6ku K/1ihDg/740IU4AqFMcb2cCZmTf4BW8B1n7LCFCkOSHfBRDFDJ4iG7KIfFxv90lTTbry hWhnrx2uWAOJtUXDhhQJj5VaaZZGRMME1Lv9BF38Gl+x5Ysh5Iu9JpFLQj407+onKKG2 mvlQBc1ZijPc4uFgYRmX00czPka/MYCaZJeVxXZM0W+ESv4ZaFjEdcpCoHrBcKnyz3Cz PS2DVNM6jRGZ9Eq7/E6ro9xZJAaigMSGyGlM6idWvzJ0TpYQMVIqvNDlcesnbXG7fh1W 5Sjw== X-Gm-Message-State: AEkoouvbENZVs+uzTpUwcCq813m5Be2HHa7C9vyP04E5igAh6mJKZoPdr6Ntv2XiYuZ/ww== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160818_113221_885224_1A776CCB X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux@arm.linux.org.uk, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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"; +};