From patchwork Mon Jul 22 16:21:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2831492 Return-Path: X-Original-To: patchwork-linux-sh@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 36F89C0319 for ; Mon, 22 Jul 2013 16:21:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 011F2202EB for ; Mon, 22 Jul 2013 16:21:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D3CA520276 for ; Mon, 22 Jul 2013 16:21:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932676Ab3GVQVt (ORCPT ); Mon, 22 Jul 2013 12:21:49 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:54150 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932561Ab3GVQVr (ORCPT ); Mon, 22 Jul 2013 12:21:47 -0400 Received: from axis700.grange (dslb-178-009-251-173.pools.arcor-ip.net [178.9.251.173]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0M15IK-1U8MrZ45O4-00tDnt; Mon, 22 Jul 2013 18:21:46 +0200 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 8A6FB40BB5; Mon, 22 Jul 2013 18:21:45 +0200 (CEST) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1V1Irp-0005i9-At; Mon, 22 Jul 2013 18:21:45 +0200 From: Guennadi Liakhovetski To: linux-sh@vger.kernel.org Cc: Magnus Damm , Simon Horman , Laurent Pinchart , Grant Likely , Guennadi Liakhovetski Subject: [PATCH v2 3/3] ARM: shmobile: kzm9g-reference: use GPIO for card detection on SDHI2 Date: Mon, 22 Jul 2013 18:21:45 +0200 Message-Id: <1374510105-21896-4-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1374510105-21896-1-git-send-email-g.liakhovetski@gmx.de> References: <1374510105-21896-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:eofYO/QTXMEocoWDMtVDIJwbzuL/c9dTjhuto9BPD4/ JgeLa6+0S0ERTAIjzN5pXkZgF78jvPkX2Pyj2hvYX20b9+iW04 kPPUxVCFLNgQ/M7jSxe3o07XEoIMZw+8A4aM4ABDgSjEEziydw 6QJvB9b8FQ5kbZD+mdCyMsN4mJp4BeWfhTUVtK9VJ8p376Z1Qe kOhcUuMnbnGrTbWZv8xwbWvKJ+YrgqpHpiH9QuT6Mx35oAFR8K t8B7gQ4ScfHeSc7UA4ekWZ1cecatoUU4EK3z0IujM+KtJvKL36 v3dKLuFiKvhJq5omJd364aZKENphhb8XYzIRmbkaY7yq5gj/At ey1gFvcQTYpkJ4Nw6cBffstsoxVfWqml/Y38XL7fMz5MmWGNAO pMIFy9UVnH9kA== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, 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 On kzm9g GPIO 13 is connected to card detection on the SDHI2 slot. Add it to the device tree node. Signed-off-by: Guennadi Liakhovetski --- So far this only enables polling of the GPIO, because irqpin GPIO-to-IRQ is currently not functioning on shmobile in the DT case. The reason for the problem is, that shmobile currently uses a static GPIO-to-IRQ mapping with a fixed offset, whereas with DT the mapping is dynamic. As soon as this problem is fixed, this binding will enable the use of a card-detection IRQ instead of polling. arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts index e5b84d1c..c9976af 100644 --- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts +++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts @@ -252,7 +252,7 @@ vmmc-supply = <&vmmc_sdhi2>; bus-width = <4>; - broken-cd; + cd-gpios = <&pfc 13 GPIO_ACTIVE_LOW>; dmas = <&dmac 0xcd &dmac 0xce>; dma-names = "tx", "rx";