From patchwork Tue Jul 27 09:13:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Ferre X-Patchwork-Id: 12402177 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=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 B6F14C4338F for ; Tue, 27 Jul 2021 09:17:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7BD5061268 for ; Tue, 27 Jul 2021 09:17:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7BD5061268 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date: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-Owner; bh=6MIkvWLcJjWMHtx8la7qsvzoMSf2dXwB7MoDql+BNDw=; b=Vf2OZv38SUJ330 Rvd7KhrKwbcX7mwin3Vcqwq4vJRqqNelhD4+eiKpqiRu5j5xB3otDxLjpTf0mZIbI4kys60CdcUYU oa9OGq5sdZWaPzOyiQG6QWCCkQADsdh+zgqJwRPmsl2qvDomr6Kar3Z0K1soxIlCgyLHC+aJLSKFa a5kMVfCEuh1G+6Y+7oadJDyeA9AyICtaKQTRQSLP5U7W2jyqD2i30DYS4lqq8JLQF4huUAhGlkLuD BeozsirZcg6zBO1evIGFjnxneEbY5N7AwOqMtFPXOteDmPofJFeFksh/dS9PLZt2TfPP1C4PeG9ig ggN875bI7BjXXVziq1tA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8JAJ-00EC4k-8n; Tue, 27 Jul 2021 09:14:19 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8JAF-00EC4H-I1 for linux-arm-kernel@lists.infradead.org; Tue, 27 Jul 2021 09:14:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1627377255; x=1658913255; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=pmL2u0pxNrKXvS4hIf8AmQFxND+OwrHLSSu25nKLwqg=; b=ofBoQjztAbfI3zA8EExxIxt4fo0xu1hk5sDCEVhmgapus4fBpYXj49f9 Bsea/nLkPCmgQ33WFdPYYafHKc1CunDaBr45Yus7bN3ke7J28SiwSmQ8o R92/XHVPYJffoUUSXEwxgtrK6KPmTKCh6TH0bPfbv0OvliVjQ0dIGJ0xu 3wWntm4wzms5zac82JbCCNZqjdCgJmyk2MBFz8WR2qsmY7Df2UFuaNufW 4IX5dtwKjINEn9g5qjYQzcFwhjUoyw0FiNuoUomopYu2O7r0Gbf6m49ju nByrWr5RQR8tw3s411/aFiIg4EBqAkkhnXE9X1moBRgVisOWIyUu8hz/g w==; IronPort-SDR: PVaNFV0JX0JMoala1VarmJMZl3qTf6twL1DRW++N41Qy7zyJU0Cal6plT/L1srcNvr3uAXzJGf ff/DFjyKg+gzfhyc39PXELDwJGxcCKgiXIck0J3tg6HUzY6MieBWD6etdBw7VNVNGd5uVzy6A1 bu8iMkCqc/doWcau9kKAvEnAUBKjyMSSDumf90JmXHPsO3c2dbZ7uqxvN056cDr++/kBzJPici 37F73iOGK2FKYR3+FmeB6Np/OUm3ga8K5YAtotjwyLCGtyBLbev0It0FhDuV0C8TSKmKx65wjM Hk4d8r0gjpayaPV5jA7t+HVP X-IronPort-AV: E=Sophos;i="5.84,272,1620716400"; d="scan'208";a="63715936" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 27 Jul 2021 02:14:13 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 27 Jul 2021 02:14:12 -0700 Received: from ness.home (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 27 Jul 2021 02:14:11 -0700 From: To: , CC: Alexandre Belloni , Ludovic Desroches Subject: [PATCH] ARM: dts: at91: sama5d4_xplained: change the key code of the gpio key Date: Tue, 27 Jul 2021 11:13:51 +0200 Message-ID: <20210727091351.44475-1-nicolas.ferre@microchip.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210727_021415_703495_695D3504 X-CRM114-Status: GOOD ( 11.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Ludovic Desroches Having a button code and not a key code causes issues with libinput. udev won't set ID_INPUT_KEY. If it is forced, then it causes a bug within libinput. Signed-off-by: Ludovic Desroches Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/at91-sama5d4_xplained.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/at91-sama5d4_xplained.dts b/arch/arm/boot/dts/at91-sama5d4_xplained.dts index 541779af049f..d241c24f0d83 100644 --- a/arch/arm/boot/dts/at91-sama5d4_xplained.dts +++ b/arch/arm/boot/dts/at91-sama5d4_xplained.dts @@ -7,6 +7,7 @@ */ /dts-v1/; #include "sama5d4.dtsi" +#include / { model = "Atmel SAMA5D4 Xplained"; @@ -250,7 +251,7 @@ gpio_keys { pb_user1 { label = "pb_user1"; gpios = <&pioE 8 GPIO_ACTIVE_HIGH>; - linux,code = <0x100>; + linux,code = ; wakeup-source; }; };