From patchwork Tue Oct 17 10:18:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raymond Hackley X-Patchwork-Id: 734912 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 165A1CDB483 for ; Tue, 17 Oct 2023 10:26:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234153AbjJQK0I (ORCPT ); Tue, 17 Oct 2023 06:26:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234833AbjJQK0B (ORCPT ); Tue, 17 Oct 2023 06:26:01 -0400 Received: from mail-4319.protonmail.ch (mail-4319.protonmail.ch [185.70.43.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AD6310E2; Tue, 17 Oct 2023 03:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1697537934; x=1697797134; bh=tUB6w0Ph20drmiGZYYSJujiE+ggt/zuWi7AKR0FbM+A=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=V6Gjnz01qj1zOsx8nMnmQ/Lv3GWM6nWGfm7XYVW+6btRn5s2Bo5PZ5kEDmb1As0S0 Jdmk0vlWoPgXaecCPSnPb377l0AAe9UEWbvKK3/b+SraHsqe19SyJ0vRVd1EO99xzM oXzdYulZ+FtDY1Z+djG/zy9rDQv7oCFs6KimbdDyUlK+Bk8SxTiMWGQ0MlkcvSNFgw 5ilsEZypHC/wYfWMdkBj/zxLCXeId1TQ3HoSHWkDtmFUegFpHqZntlLgnT1cgVBfAV wYNyywMEZ1sYmp7nhquxwT/AmIFEa/9Ha64ruvNfHig21KGIhkZWd9ekK0r6uGpvZC F/QSmuCfaxijA== Date: Tue, 17 Oct 2023 10:18:14 +0000 To: linux-kernel@vger.kernel.org From: Raymond Hackley Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Raymond Hackley Subject: [PATCH v2 2/2] ARM: dts: samsung: exynos4412-midas: use Linux event codes for input keys Message-ID: <20231017101647.62770-1-raymondhackley@protonmail.com> In-Reply-To: <20231017101402.62740-1-raymondhackley@protonmail.com> References: <20231017101402.62740-1-raymondhackley@protonmail.com> Feedback-ID: 49437091:user:proton MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Use event codes with linux-event-codes.h included for input keys on midas. Signed-off-by: Raymond Hackley --- arch/arm/boot/dts/samsung/exynos4412-midas.dtsi | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/samsung/exynos4412-midas.dtsi b/arch/arm/boot/dts/samsung/exynos4412-midas.dtsi index 3c1ae3c19828..d00b500254ab 100644 --- a/arch/arm/boot/dts/samsung/exynos4412-midas.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4412-midas.dtsi @@ -15,6 +15,7 @@ #include #include +#include #include #include #include "exynos-pinctrl.h" @@ -137,21 +138,21 @@ gpio-keys { key-down { gpios = <&gpx3 3 GPIO_ACTIVE_LOW>; - linux,code = <114>; + linux,code = ; label = "volume down"; debounce-interval = <10>; }; key-up { gpios = <&gpx2 2 GPIO_ACTIVE_LOW>; - linux,code = <115>; + linux,code = ; label = "volume up"; debounce-interval = <10>; }; key-power { gpios = <&gpx2 7 GPIO_ACTIVE_LOW>; - linux,code = <116>; + linux,code = ; label = "power"; debounce-interval = <10>; wakeup-source; @@ -159,7 +160,7 @@ key-power { key-ok { gpios = <&gpx0 1 GPIO_ACTIVE_LOW>; - linux,code = <0x160>; + linux,code = ; label = "ok"; debounce-interval = <10>; wakeup-source;