From patchwork Mon Feb 16 23:00:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 5834791 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 90956BF440 for ; Mon, 16 Feb 2015 23:02:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C0FA8201E4 for ; Mon, 16 Feb 2015 23:02:48 +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 CD7ED2017E for ; Mon, 16 Feb 2015 23:02:47 +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 1YNUf0-00027u-Sa; Mon, 16 Feb 2015 23:01:02 +0000 Received: from mail-la0-f42.google.com ([209.85.215.42]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YNUex-0001zd-8J for linux-arm-kernel@lists.infradead.org; Mon, 16 Feb 2015 23:00:59 +0000 Received: by lams18 with SMTP id s18so32592124lam.11 for ; Mon, 16 Feb 2015 15:00:37 -0800 (PST) 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:content-type; bh=lDGm4qBCwuNRlaLcmXIkcKmmLVwOv8ARr0vB0eaVNfc=; b=C0w6uVNZakNY1744+p31F2E7YuBYpwA9Jy7uSyCVncrCcsqPhG6XGLpTnNo5pykngY vkmgAvBL4HBzubHpImhp3BLxJ6ArmCyXFuVxx4RlR43UJsTCJrEh6s7M+HpaWAo7RFNd sx4OqUyEGbz5oc9kKUEr5dgOJC0TKe91+hmPUQR+rtItS0FkQY0TgkaICBS46zzcarCM xk2WXG/FdOb82GOG3G2FgSTr8L1DZFXtOuE56stfGTngcSdzhYnxDUXWahoN9fm7Ha6t Ye/H+RbuuWFkzd4ASYVeCvogm1HgmiZiQoadJ6cCIE8o7Byw3jrSI8oWUmjVAgGet2PJ RzrQ== X-Gm-Message-State: ALoCoQk0CPbbO50M9slW/OKv9/xyYzxan4qM3cOVaJNR6IezOiDb3TXY+rRuVDNYV3f4JFRc7Giq X-Received: by 10.152.4.136 with SMTP id k8mr24257445lak.103.1424127636967; Mon, 16 Feb 2015 15:00:36 -0800 (PST) Received: from wasted.cogentembedded.com (ppp83-237-56-86.pppoe.mtu-net.ru. [83.237.56.86]) by mx.google.com with ESMTPSA id ba1sm2294027lab.34.2015.02.16.15.00.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Feb 2015 15:00:36 -0800 (PST) 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 Subject: [PATCH 2/2] ARM: shmobile: silk: add eMMC DT support Date: Tue, 17 Feb 2015 02:00:34 +0300 Message-ID: <3003389.IFU7VXDVjL@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.4 (Linux/3.18.5-101.fc20.x86_64; KDE/4.14.4; x86_64; ; ) In-Reply-To: <29687119.ELU9MoH02q@wasted.cogentembedded.com> References: <29687119.ELU9MoH02q@wasted.cogentembedded.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150216_150059_493093_A2D6A565 X-CRM114-Status: GOOD ( 10.21 ) X-Spam-Score: -0.7 (/) Cc: linux@arm.linux.org.uk, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 MMCIF device node (the board has eMMC chip) along with the necessary voltage regulator (note that the Vcc/Vccq regulator is dummy -- it's required by the MMCIF driver but doesn't actually exist on the board). Based on the original patch by Vladimir Barinov . Signed-off-by: Sergei Shtylyov --- arch/arm/boot/dts/r8a7794-silk.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) 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 @@ -30,6 +30,15 @@ device_type = "memory"; reg = <0 0x40000000 0 0x40000000>; }; + + d3_3v: regulator@0 { + compatible = "regulator-fixed"; + regulator-name = "D3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; }; &extal_clk { @@ -51,6 +60,11 @@ renesas,groups = "intc_irq8"; renesas,function = "intc"; }; + + mmcif0_pins: mmcif0 { + renesas,groups = "mmc_data8", "mmc_ctrl"; + renesas,function = "mmc"; + }; }; &scif2 { @@ -75,3 +89,14 @@ micrel,led-mode = <1>; }; }; + +&mmcif0 { + pinctrl-0 = <&mmcif0_pins>; + pinctrl-names = "default"; + + vmmc-supply = <&d3_3v>; + vqmmc-supply = <&d3_3v>; + bus-width = <8>; + non-removable; + status = "okay"; +};