Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1724787ybv; Fri, 14 Feb 2020 05:01:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxEoRwJL/DMc6vwPps7rHVfsiD0ABEXmdcKZ8DJtcc0LeaZwsgTwb8tVH5pTvx3Qjc+H10p X-Received: by 2002:a05:6808:b23:: with SMTP id t3mr1795974oij.88.1581685297462; Fri, 14 Feb 2020 05:01:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581685297; cv=none; d=google.com; s=arc-20160816; b=zMmvlph5MOny8QZs5xsQE3gwjDbGu43DaVBLH8yRaj5tJWHjfuj6s46thcl9rLFT8a kSLgSn/9wZmHPPyAGq106BmxK06ZDXI5XmZuOFiE3+sM+7oRYSztTMVNWVGbSagpNEIL qYzD2+4XSauWqi6buk3PDqNpiAtnf5Eg4nBwm9TNvdPBIwiAsTD3yEEpFEmFTJ5G++xh 4aLcxjy3B3rKWVrg+xAoD0bwUKTsKtV7y/ZYXDQ6paVQ0cdn+x6xqzgAagx5VNLK2D56 ljwB1zzVwur0CDCzAqsQ+ACXWbvDQCRn0sb8U6yvH6vqzOLxUXbMfyXJVOMbfPtnv+Ft IFaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZstIGWVDJVfKLbnwGou4mM1u+YojrQNl9t84LNG+qvs=; b=E2iHEwI57iPI6db+LoWCGimWhkLqv3nEKPRRgpogBPSxH+4wWDeCXXjg9KFjxi+QvQ lvUAV2SQu9uSHuYvXi2I/aaclJX4xsZ3I6pHvbWCucAA/9EOCud5UAXga2cWITaquar4 1+ctZvIuS+ZA87AzEk0vCb0jG/9mgTpBdLO38sY2M1Q83y3gauu4RIjBHzigvEh6w5A3 8raj47/b7FGDFm/VOlWVLUv342LYK1ni2WR+VNV645Im7pPSjgoL8vgi7ev0vxdZLohk x1hu5ehOUOuT6HpxMWxQUOdfjhp3fukCFqAv9ihXB1bA/oazgHpEaToxiuxbpHLsUsVW 8VVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wizzup.org header.s=mail header.b=YyqWrLlO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=wizzup.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j15si2755075oii.163.2020.02.14.05.01.24; Fri, 14 Feb 2020 05:01:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@wizzup.org header.s=mail header.b=YyqWrLlO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=wizzup.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729262AbgBNNBK (ORCPT + 99 others); Fri, 14 Feb 2020 08:01:10 -0500 Received: from a80-127-99-228.adsl.xs4all.nl ([80.127.99.228]:59484 "EHLO hetgrotebos.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726191AbgBNNBK (ORCPT ); Fri, 14 Feb 2020 08:01:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=wizzup.org; s=mail; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ZstIGWVDJVfKLbnwGou4mM1u+YojrQNl9t84LNG+qvs=; b=YyqWrLlO4Pw1Bo1BPrPfJahbn4 FWoAFeV0G9lBis41bm4fI2izTEumjDwgwRB/TSUFdf3bNpPm8gk6pOp4uoBHRoViSSJEeRxlTorA/ eBLiFr6ERintYnJl+FoeYzms2Y4RRm3YQfn1MwJMSYULlC2inJNlnC5O5tMaT0jBIB8etuBLJwLkH uq7w9nrQf8aaRuLypz/f7QZUfbdPbJBRYelsyR8JS2YfIC82SFao0fl98UJzhaogZhkSu30RtCl6r cKF4IlQq/O9wtG1RBTR7ciSMs83mfD3XXJgFK9rjFYHImTjd129i0VIrqOlhuZKJnZTVijMv7d8yI BujPJoLA==; Received: from kgpe-d16.fritz.box ([192.168.178.22]) by hetgrotebos.org with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1j2aac-0002df-6c; Fri, 14 Feb 2020 13:01:02 +0000 From: Merlijn Wajer To: merlijn@wizzup.org Cc: =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Rob Herring , Mark Rutland , Dmitry Torokhov , Mattias Jacobsson <2pi@mok.nu>, "Darren Hart (VMware)" , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: [RFC PATCH 2/2] ARM: dts: n900: remove mmc1 card detect gpio Date: Fri, 14 Feb 2020 14:02:48 +0100 Message-Id: <20200214130249.6845-3-merlijn@wizzup.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200214130249.6845-1-merlijn@wizzup.org> References: <20200214130249.6845-1-merlijn@wizzup.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead, expose the key via the input framework, as SW_MACHINE_COVER --- arch/arm/boot/dts/omap3-n900.dts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 7028a7cb2849..ed773e1609a5 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts @@ -108,6 +108,14 @@ linux,code = ; linux,can-disable; }; + + machine_cover { + label = "Machine Cover"; + gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; /* 160 */ + linux,input-type = ; + linux,code = ; + linux,can-disable; + }; }; isp1707: isp1707 { @@ -805,10 +813,6 @@ pinctrl-0 = <&mmc1_pins>; vmmc-supply = <&vmmc1>; bus-width = <4>; - /* For debugging, it is often good idea to remove this GPIO. - It means you can remove back cover (to reboot by removing - battery) and still use the MMC card. */ - cd-gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; /* 160 */ }; /* most boards use vaux3, only some old versions use vmmc2 instead */ -- 2.23.0