From patchwork Sun Jan 31 01:21:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vishnupatekar X-Patchwork-Id: 8172931 Return-Path: X-Original-To: patchwork-linux-arm@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 DB7A29F9A0 for ; Sun, 31 Jan 2016 01:28:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0BE8A202F0 for ; Sun, 31 Jan 2016 01:28:08 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 3A5E520265 for ; Sun, 31 Jan 2016 01:28:07 +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 1aPgmq-0001N2-Bg; Sun, 31 Jan 2016 01:26:44 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aPgj3-000531-4d for linux-arm-kernel@lists.infradead.org; Sun, 31 Jan 2016 01:22:51 +0000 Received: by mail-pf0-x243.google.com with SMTP id 65so5670751pfd.1 for ; Sat, 30 Jan 2016 17:22:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vx485ZkBFoiegNbWV4ybDGW5JQ5Bgt/JqhF9IWqfJJU=; b=tsABT77aiw60rcZffkq4DBtdQcpabGK/trOW4BazuZSBSY9IDHhAI00WTuqfypg8l/ oGOr5v9ViWgIvgqZMdBZOwaMXidl/ruRW0XlsjTKnSJR3Jx5haNA7cgz36oCAAdqFcQZ EKgiK1OFJyLTto87OBiuQ65ivZqnoVIVz2sar7oEBkaZ+vBD+ZdW/43SY9zyP76uaIRp 03+DNjyJgO8pC51LX0ShnLkNAbflY2iOyaQYNIsCHHycczgmBEsNHTnxe79YolWhsSFl 4saD0hv6a3JX2KgjVFnm4NfxbUlEf+XQi1oBnw7oHRxSL0W7h4FN5gQf7WAtZIBqr2tB GVkQ== 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:in-reply-to :references; bh=vx485ZkBFoiegNbWV4ybDGW5JQ5Bgt/JqhF9IWqfJJU=; b=WzGQ8waZl9hqPv3jtIzTCWzrhFcdzzujz2DUg7SKTw7H+zbwJzKoD9uqmUmLtEufIO vwpbSUS8Uvt+bGgWpU7wXZTBuIJhhKDeazFcduXe8W+Q9x25PnnCV7RISM5q23bj/UzW Ae7TlUd3eplZ2sfjTuCp/Dfiisrml8+7FOB9ve2pSQkK+KHYQl3XAopp+5ocX14eJ0LH H8yr8L8XAZASvCWOOr+AK3nZMKiuzFJiIcxDKRKTq7FZkoYhLflKgf2y+/b2J+fQxZSW gVenXRqO4MnTdxq1AduxbX6jzZwibkiMls6/AZMORnJdwHNqacSB56/+sfOwtkpgsSip PTbQ== X-Gm-Message-State: AG10YORkF6FUM5yXITudsiaDSoQPBLWvhvY7RLy05MGsJsvNfLRqxUb7boXDqEdtMD6QmA== X-Received: by 10.98.42.83 with SMTP id q80mr25752991pfq.19.1454203348790; Sat, 30 Jan 2016 17:22:28 -0800 (PST) Received: from localhost.localdomain ([116.88.131.187]) by smtp.gmail.com with ESMTPSA id o4sm32973151pfa.85.2016.01.30.17.22.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Jan 2016 17:22:28 -0800 (PST) From: Vishnu Patekar To: robh+dt@kernel.org, corbet@lwn.net, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, maxime.ripard@free-electrons.com, linux@arm.linux.org.uk, emilio@elopez.com.ar Subject: [PATCH 13/14] ARM: dts: sun8i: enable mmc for H8Homlet Board. Date: Sun, 31 Jan 2016 09:21:05 +0800 Message-Id: <1454203266-4450-14-git-send-email-vishnupatekar0510@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454203266-4450-1-git-send-email-vishnupatekar0510@gmail.com> References: <1454203266-4450-1-git-send-email-vishnupatekar0510@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160130_172249_394683_68F482A9 X-CRM114-Status: UNSURE ( 9.96 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) 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: devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com, patchesrdh@mveas.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, hdegoede@redhat.com, wens@csie.org, mturquette@baylibre.com, jenskuske@gmail.com, linus.walleij@linaro.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 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.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 This enables mmc0. Signed-off-by: Vishnu Patekar Tested-by: LABBE Corentin --- .../boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts b/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts index 342e1d3..6c1f598 100644 --- a/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts +++ b/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts @@ -43,6 +43,7 @@ /dts-v1/; #include "sun8i-a83t.dtsi" +#include "sunxi-common-regulators.dtsi" / { model = "Allwinner A83T H8Homlet Proto Dev Board v2.0"; @@ -57,6 +58,25 @@ }; }; +&pio { + mmc0_cd_pin_h8homlet: mmc0_cd_pin@0 { + allwinner,pins = "PF6"; + allwinner,function = "gpio_in"; + allwinner,drive = ; + allwinner,pull = ; + }; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_h8homlet>; + vmmc-supply = <®_vcc3v0>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */ + bus-width = <4>; + cd-inverted; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_b>;