From patchwork Thu Aug 14 21:13:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dinguyen@opensource.altera.com X-Patchwork-Id: 4725481 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 64C2CC0338 for ; Thu, 14 Aug 2014 21:19:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A07CD201ED for ; Thu, 14 Aug 2014 21:19:47 +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 B305520115 for ; Thu, 14 Aug 2014 21:19:46 +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 1XI2P8-0003b2-3e; Thu, 14 Aug 2014 21:17:50 +0000 Received: from mail-bn1blp0185.outbound.protection.outlook.com ([207.46.163.185] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XI2Ou-0003TP-Hg for linux-arm-kernel@lists.infradead.org; Thu, 14 Aug 2014 21:17:37 +0000 Received: from linux-builds1.altera.com (64.129.157.38) by CY1PR0301MB1193.namprd03.prod.outlook.com (25.160.165.24) with Microsoft SMTP Server (TLS) id 15.0.1005.10; Thu, 14 Aug 2014 21:17:12 +0000 From: To: , , , , , Subject: [PATCHv2 2/3] ARM: dts: socfpga: Add SD card detect Date: Thu, 14 Aug 2014 16:13:33 -0500 Message-ID: <1408050814-28595-3-git-send-email-dinguyen@opensource.altera.com> X-Mailer: git-send-email 2.0.3 In-Reply-To: <1408050814-28595-1-git-send-email-dinguyen@opensource.altera.com> References: <1408050814-28595-1-git-send-email-dinguyen@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: DM2PR04CA058.namprd04.prod.outlook.com (10.141.154.176) To CY1PR0301MB1193.namprd03.prod.outlook.com (25.160.165.24) X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:; X-Forefront-PRVS: 03030B9493 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009004)(6009001)(189002)(199003)(64706001)(77096002)(47776003)(20776003)(85852003)(4396001)(95666004)(80022001)(66066001)(99396002)(229853001)(87286001)(53416004)(83072002)(77156001)(107046002)(86362001)(69596002)(42186005)(50986999)(92726001)(105586002)(46102001)(92566001)(86152002)(93916002)(19580405001)(102836001)(89996001)(87976001)(76482001)(50466002)(77982001)(101416001)(88136002)(83322001)(76176999)(74662001)(106356001)(62966002)(19580395003)(33646002)(21056001)(31966008)(2201001)(50226001)(48376002)(74502001)(85306004)(81542001)(104166001)(81342001)(79102001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB1193; H:linux-builds1.altera.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; A:0; LANG:en; X-OriginatorOrg: opensource.altera.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140814_141736_713818_CFA31966 X-CRM114-Status: UNSURE ( 7.55 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: devicetree@vger.kernel.org, atull@opensource.altera.com, tthayer@opensource.altera.com, Dinh Nguyen , vbridger@opensource.altera.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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 From: Dinh Nguyen Revision D of the SOCFGPA devkit has a GPIO line used for SD/MMC card detect. Signed-off-by: Dinh Nguyen Acked-by: Pavel Machek --- arch/arm/boot/dts/socfpga_cyclone5.dtsi | 2 +- arch/arm/boot/dts/socfpga_cyclone5_socdk.dts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/socfpga_cyclone5.dtsi b/arch/arm/boot/dts/socfpga_cyclone5.dtsi index 1ee03c4..33cad8b 100644 --- a/arch/arm/boot/dts/socfpga_cyclone5.dtsi +++ b/arch/arm/boot/dts/socfpga_cyclone5.dtsi @@ -28,7 +28,7 @@ }; }; - dwmmc0@ff704000 { + mmc0: dwmmc0@ff704000 { num-slots = <1>; broken-cd; bus-width = <4>; diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts index 45de151..d7296a5 100644 --- a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts +++ b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts @@ -68,6 +68,10 @@ }; }; +&mmc0 { + cd-gpios = <&gpio1 18 0>; +}; + &usb1 { status = "okay"; };