From patchwork Wed Sep 11 06:12:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koen Kooi X-Patchwork-Id: 2870971 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3553E9F485 for ; Wed, 11 Sep 2013 06:13:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5715C20381 for ; Wed, 11 Sep 2013 06:13:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 686DE2039B for ; Wed, 11 Sep 2013 06:13:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755029Ab3IKGNU (ORCPT ); Wed, 11 Sep 2013 02:13:20 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:42152 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752930Ab3IKGMl (ORCPT ); Wed, 11 Sep 2013 02:12:41 -0400 Received: by mail-wg0-f42.google.com with SMTP id b12so1446826wgh.5 for ; Tue, 10 Sep 2013 23:12:40 -0700 (PDT) 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=3HSwZZjFVdP67O2vLCovzy9LRM7j7q8jOczmJHCebU4=; b=WzKGm6QbnwxqRdHKPlw0mefFFL0x3ljqRl49fU2tYpjk6UlJkZ6wdpZE579FFfOeVK mCwhc41knzZeXcUKW9POTf14AYPKJo+KfJ7q/Y7JYfO0HE/8POyae4kZ2ihLGdLUVllK amn2gVaeY2K2DtIdMUOgByZgbXIzFQ1/tR1l0Udx6+wXNi7hoI5HB3Mpiok7u0gF3AdD t8IlUj972SpHry+MFHl+DCOGtVEVNv3EsO3ggRv5X6YAwc2f+lod6jqn8/Hr8QU3BXHI 7x6DGD+u31NNKKh1gA1KM2SE5qpogH6un2ecr6BSZNxaoR1UxcAlwv6ZC0T0x+EoK4C5 l1Ag== X-Gm-Message-State: ALoCoQnGZFCm3PdKvL/6JO2y1gQ7XHWwLkm7PU4PeYkoLZxNU3TEJ1yCPNCBXE6NipiULiOkanR1 X-Received: by 10.180.189.17 with SMTP id ge17mr13526953wic.53.1378879960240; Tue, 10 Sep 2013 23:12:40 -0700 (PDT) Received: from localhost.localdomain (ip4da2a5ae.direct-adsl.nl. [77.162.165.174]) by mx.google.com with ESMTPSA id fz8sm8072675wic.0.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 10 Sep 2013 23:12:39 -0700 (PDT) From: Koen Kooi To: linux-omap@vger.kernel.org Cc: bcousson@baylibre.com, tony@atomide.com, rob.herring@calxeda.com, pawel.moll@arm.com, mark.rutland@arm.com, swarren@wwwdotorg.org, ijc+devicetree@hellion.org.uk, linux@arm.linux.org.uk, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alexander Holler , Koen Kooi Subject: [PATCH 1/2] arm: bone: dts: add CD for mmc1 Date: Wed, 11 Sep 2013 08:12:25 +0200 Message-Id: <1378879946-13037-2-git-send-email-koen@dominion.thruhere.net> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1378879946-13037-1-git-send-email-koen@dominion.thruhere.net> References: <1378879946-13037-1-git-send-email-koen@dominion.thruhere.net> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 From: Alexander Holler This enables the use of MMC cards even when no card was inserted at boot. Signed-off-by: Alexander Holler Signed-off-by: Koen Kooi --- arch/arm/boot/dts/am335x-bone-common.dtsi | 14 ++++++++++++++ arch/arm/boot/dts/am335x-bone.dts | 4 ---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi index 2f66ded..ced256c 100644 --- a/arch/arm/boot/dts/am335x-bone-common.dtsi +++ b/arch/arm/boot/dts/am335x-bone-common.dtsi @@ -107,6 +107,11 @@ 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7) >; }; + mmc1_pins: pinmux_mmc1_pins { + pinctrl-single,pins = < + 0x160 (PIN_INPUT | MUX_MODE7) /* GPIO0_6 */ + >; + }; }; ocp { @@ -260,3 +265,12 @@ pinctrl-0 = <&davinci_mdio_default>; pinctrl-1 = <&davinci_mdio_sleep>; }; + +&mmc1 { + status = "okay"; + vmmc-supply = <&ldo3_reg>; + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; + cd-inverted; +}; diff --git a/arch/arm/boot/dts/am335x-bone.dts b/arch/arm/boot/dts/am335x-bone.dts index d5f43fe..d34469c 100644 --- a/arch/arm/boot/dts/am335x-bone.dts +++ b/arch/arm/boot/dts/am335x-bone.dts @@ -16,7 +16,3 @@ regulator-always-on; }; -&mmc1 { - status = "okay"; - vmmc-supply = <&ldo3_reg>; -};