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: 154051 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4032318vqb; Tue, 17 Oct 2023 03:21:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGrQA3BQ+1zYEXrki9hHzkMyHjTi3ZgfApO9YB6J/zHxo3LNbWZSdZsYJjK/cBTqaUC93+Y X-Received: by 2002:a05:6870:b494:b0:1ea:bb5:a534 with SMTP id y20-20020a056870b49400b001ea0bb5a534mr1805002oap.5.1697538068396; Tue, 17 Oct 2023 03:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697538068; cv=none; d=google.com; s=arc-20160816; b=yn4cpW0ppklK+2b1Ytg7uJSgdDPuA9eFcU0FvvFeOtx91TxgX1ntC79Xef63NASgsN 2nZ7XmXwZxuNvR+EAbHJW8hRjqyxZX83ai0ZILOxu4BrbXD2C38+2CwaJLL9bfFRwDFG 2ffRfS3raZ1/tcjibKUl/nq+TcHQ35pJQShkeohIJn+vJVdE4zRFODLobmuQwKWBhnCf UTBROyn3+UDY0De6pWfCQDTjJgk5G28T0hCFwzLxg01fTwyD63lGIYWsevYyba4LusHS PxwoZf6+FCn1BWWtP+Ao/dNKbhFdEL0VfgUzOaq4j1rNdgUyZh8KunN86BpACXsMKNAn k2Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :date:dkim-signature; bh=tUB6w0Ph20drmiGZYYSJujiE+ggt/zuWi7AKR0FbM+A=; fh=pKgDI89O/g7pvk95mWkxwPdmV9WnS3yVP2+pEKuJ0XQ=; b=pQx7WXyl6/hd+lTXPDTDGQcLgH6GoTc49YAhGG7oIM9Q4qVokHUKAKoW71zuskzXJt Fjt/OBZel/eI98I1lrA6ZiFBZumh/kgnmQzZAd659JARyd2op5ijS6aNOSzs2yIkQC6g 8QCnFxz1/HGzfRLN/d8EWSof5Nq2bocrWkbLe+uhayvyPZGMh5R9xPH//G0ahFHXY1B4 fL0WPVMak+37q0HT9IcUE7NOJ5s4SyqAlPzy1YPEwnWvVwEpXXqti/v2vQSHPa15rsiv a2TLOhMtkZ1C26I8HdmpJpf93WyQxDK9MAh4U8YFsvRFmMvrieFrANiytQJx0rPKVfjM 6w1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=V6Gjnz01; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id z16-20020a656650000000b005641ddd0309si1407071pgv.599.2023.10.17.03.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 03:21:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=V6Gjnz01; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id BF80A80A3126; Tue, 17 Oct 2023 03:20:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235078AbjJQKUp (ORCPT + 19 others); Tue, 17 Oct 2023 06:20:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235067AbjJQKU2 (ORCPT ); Tue, 17 Oct 2023 06:20:28 -0400 X-Greylist: delayed 3437 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 17 Oct 2023 03:18:57 PDT Received: from mail-4325.protonmail.ch (mail-4325.protonmail.ch [185.70.43.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A776E113; 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 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 17 Oct 2023 03:20:55 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779997677549747327 X-GMAIL-MSGID: 1779997677549747327 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;