From patchwork Thu Sep 15 19:34:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Brandt X-Patchwork-Id: 9334665 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 A0CE360839 for ; Thu, 15 Sep 2016 19:35:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91EBD28FD0 for ; Thu, 15 Sep 2016 19:35:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8629829030; Thu, 15 Sep 2016 19:35:10 +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,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 F0F4B28FDA for ; Thu, 15 Sep 2016 19:35:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754106AbcIOTfI (ORCPT ); Thu, 15 Sep 2016 15:35:08 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:63740 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751627AbcIOTfI (ORCPT ); Thu, 15 Sep 2016 15:35:08 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie3.idc.renesas.com with ESMTP; 16 Sep 2016 04:35:04 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 0655F3CB6D; Fri, 16 Sep 2016 04:35:05 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id E624E8002D; Fri, 16 Sep 2016 04:35:04 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id E5AA78002F; Fri, 16 Sep 2016 04:35:04 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac1.idc.renesas.com with ESMTP id EAH13027; Fri, 16 Sep 2016 04:35:04 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="219846726" Received: from unknown (HELO rtamta01.rta.renesas.com) ([143.103.48.75]) by relmlii1.idc.renesas.com with ESMTP; 16 Sep 2016 04:35:03 +0900 Received: from localhost.localdomain (unknown [172.27.49.104]) by rtamta01.rta.renesas.com (Postfix) with ESMTP id F2651449; Thu, 15 Sep 2016 19:34:57 +0000 (UTC) From: Chris Brandt To: Geert Uytterhoeven , Simon Horman , Magnus Damm , Rob Herring , Mark Rutland Cc: devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Chris Brandt Subject: [PATCH 4/4] ARM: dts: rskrza1: add mmc DT support Date: Thu, 15 Sep 2016 15:34:05 -0400 Message-Id: <20160915193405.26943-5-chris.brandt@renesas.com> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20160915193405.26943-1-chris.brandt@renesas.com> References: <20160915193405.26943-1-chris.brandt@renesas.com> 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 Since the MMC and SDHI1 on the RSK share the same socket connector (CN1), you cannot enabled MMC and SDHI1 at the same time. Therefore the status has been set to disabled because SDHI is more popular with this board. However, keeping this code in here serves as a good way to document how the MMC on the RZ/A1 has been known to work for someone that does want to use MMC instead of SDHI1. A fixed 3.3 regulator is included because it is required by the mmc driver. Signed-off-by: Chris Brandt --- arch/arm/boot/dts/r7s72100-rskrza1.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/r7s72100-rskrza1.dts b/arch/arm/boot/dts/r7s72100-rskrza1.dts index e5dea5b..9228b04 100644 --- a/arch/arm/boot/dts/r7s72100-rskrza1.dts +++ b/arch/arm/boot/dts/r7s72100-rskrza1.dts @@ -33,6 +33,15 @@ #address-cells = <1>; #size-cells = <1>; }; + + d3_3v: regulator-d3-3v { + compatible = "regulator-fixed"; + regulator-name = "D3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; }; &extal_clk { @@ -56,6 +65,14 @@ }; }; +&mmcif { + vmmc-supply = <&d3_3v>; + vqmmc-supply = <&d3_3v>; + bus-width = <8>; + non-removable; + status = "disabled"; /* shares CN1 with sdhi1 */ +}; + &scif2 { status = "okay"; };