From patchwork Fri Jan 8 23:09:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Russell King \(Oracle\)" X-Patchwork-Id: 359182 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D13EEC433DB for ; Fri, 8 Jan 2021 23:11:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 94FA823A60 for ; Fri, 8 Jan 2021 23:11:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725792AbhAHXK6 (ORCPT ); Fri, 8 Jan 2021 18:10:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbhAHXK5 (ORCPT ); Fri, 8 Jan 2021 18:10:57 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBB1AC061757 for ; Fri, 8 Jan 2021 15:10:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Date:Sender:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Subject:Cc:To:From:Reply-To:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=SCEe2o5k7lfVIyaxuoL9kB2sBsf0VRcVP3w4WZYu07Q=; b=s/5RazLgsAP+2ixf62/ziDXr22 Ta3v+q72SzbvzNXZ1GW/qbRco1IJ2tFZikezCte0Dy/PYuweAVPUmVASdKpxVfByWG3o0H99kFA4p Fymipv2EyKvHND/kUq9cwjijXuR4dQhxXi90RWaDYO24SP8VvDMaHl23Wcvq5LBW4JALCvbSVZVl/ YBSghjVs6Qg5mEWGAyfIr4v5eL4bsE1by0m+LPZbOC3VxMAYZvPnsU9Qk6tkKC2sZsrxm/4yOpfqO /aDXsaFXG6a+QvbLpVhx2iXIO55D3Smo5LnKdHBjuH9ygVWXqleXTqzkVryvo0ryu3W+NfZEcZ6Na 5zy72yTA==; Received: from e0022681537dd.dyn.armlinux.org.uk ([fd8f:7570:feb6:1:222:68ff:fe15:37dd]:40282 helo=rmk-PC.armlinux.org.uk) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ky0tK-0004Y6-ET; Fri, 08 Jan 2021 23:09:58 +0000 Received: from rmk by rmk-PC.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1ky0tK-0005Js-78; Fri, 08 Jan 2021 23:09:58 +0000 From: Russell King To: Shawn Guo Cc: Li Yang , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH] arm64: dts: lx2160a-clearfog-itx: add power button support MIME-Version: 1.0 Content-Disposition: inline Message-Id: Sender: Russell King Date: Fri, 08 Jan 2021 23:09:58 +0000 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support for the power button. Signed-off-by: Russell King --- I see Rabeeh has added a similar (identical) patch to the one I've been carrying in my tree since 14 September 2019 to the lx2160a_build repository, so let's mainline this. .../boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi index f3741a32e868..2b63235ca627 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi @@ -8,6 +8,7 @@ /dts-v1/; #include "fsl-lx2160a-cex7.dtsi" +#include / { aliases { @@ -18,6 +19,17 @@ chosen { stdout-path = "serial0:115200n8"; }; + + gpio-keys { + compatible = "gpio-keys"; + + key { + label = "power"; + linux,can-disable; + linux,code = ; + gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; + }; + }; }; &emdio2 {