From patchwork Thu Apr 20 21:03:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Patchwork-Id: 86072 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp665981vqo; Thu, 20 Apr 2023 15:48:44 -0700 (PDT) X-Google-Smtp-Source: AKy350YLW2ppPKNgntlXSHiiJsi7V/aWXozvQObNmaLUE5hROTzQicg9aPfiX/xMJCg/mbifb4oQ X-Received: by 2002:a05:6a00:1305:b0:63d:a0d:6fa1 with SMTP id j5-20020a056a00130500b0063d0a0d6fa1mr3251744pfu.21.1682030924609; Thu, 20 Apr 2023 15:48:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682030924; cv=none; d=google.com; s=arc-20160816; b=rgOFufji4SUVvH9Ra3diuPdbYy/hexj6Jb2lORsaTxBaVns7Wsu0HhjRa5BmNkrLu6 dVef8myfufnnYQ7xNVWT6IqyrgnjXxwO7K5KegkyiblU8BK5dP+R+OPQZzGyDEmZADjq zh5SxMHX0Ze7onLVP4ydpJTGJk7O7fTtM+EsU2S5hm6ls+21jG5/AKk6/XQDK4r09prp V03dc1/g0K3748qZRrSX3i39vI6NJDPtMIkZk46imIE2nLkwy4viZIGsOfv577ye96fN R7T56itqRFcSug1y1VHkTKCjiYj3JLoLN3Q1WOkAThPFASIdMoAmLGXfj0k83tmRmG77 YL0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from; bh=CtcE/NvBRcdNBusvMeCn2jEShLCbh8MSJh/lpl1iAy0=; b=cAx8ckFLiyF58GG4IyBEcx5KIGOV24SMRSyV4Ue6qpxxEk/aSMb8sDxT5gBFkb1Vpb YtYjyiBvae2nwj84b09TfznNguN1gQ5kH0bwe5vIgQWHqKYBRhck5cEldXvh98H8cUvO T9m6iQjgG/bwLRASUct8kkcEycUnm6lEvisyE+0B/IDV91s54BTuXitbRFsqfxJgBozM ZXltcWqoQP1rqENTF2A8ttyWTfIotQmQlEiZzvrSOOcEXaD9KuwBazQ7apUuVHfBTRbh n+Rni3qOEZuO0r1zUrCdIPgx0SjdwKkQTKesP6+M8pAVU933L9d12G/vmHvGObgZbJxX +FhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z23-20020a630a57000000b0051b6c5e0fe0si2659567pgk.570.2023.04.20.15.48.29; Thu, 20 Apr 2023 15:48:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232721AbjDTWiR (ORCPT + 99 others); Thu, 20 Apr 2023 18:38:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231302AbjDTWiP (ORCPT ); Thu, 20 Apr 2023 18:38:15 -0400 Received: from smtprelay06.ispgateway.de (smtprelay06.ispgateway.de [80.67.18.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 599F213E; Thu, 20 Apr 2023 15:38:14 -0700 (PDT) Received: from [92.206.161.29] (helo=note-book.lan) by smtprelay06.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ppbRm-0006yb-79; Thu, 20 Apr 2023 23:04:06 +0200 From: =?utf-8?q?Andr=C3=A9_Apitzsch?= Date: Thu, 20 Apr 2023 23:03:50 +0200 Subject: [PATCH RESEND v2 1/2] dt-bindings: input: atmel,maxtouch: add linux,keycodes MIME-Version: 1.0 Message-Id: <20230407-atmel_keys-v2-1-e7b016886109@apitzsch.eu> References: <20230407-atmel_keys-v2-0-e7b016886109@apitzsch.eu> In-Reply-To: <20230407-atmel_keys-v2-0-e7b016886109@apitzsch.eu> To: Nick Dyer , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Linus Walleij Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Apitzsch?= , Krzysztof Kozlowski X-Mailer: b4 0.12.2 X-Df-Sender: YW5kcmVAYXBpdHpzY2guZXU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763737258933734172?= X-GMAIL-MSGID: =?utf-8?q?1763737258933734172?= In some configurations the touch controller can support the touch keys. Document the linux,keycodes property that enables those keys and specifies the keycodes that should be used to report the key events. Reviewed-by: Linus Walleij Acked-by: Krzysztof Kozlowski Signed-off-by: André Apitzsch --- Documentation/devicetree/bindings/input/atmel,maxtouch.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml b/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml index 3ec579d63570..c40799355ed7 100644 --- a/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml +++ b/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml @@ -14,6 +14,9 @@ description: | Atmel maXTouch touchscreen or touchpads such as the mXT244 and similar devices. +allOf: + - $ref: input.yaml# + properties: compatible: const: atmel,maxtouch @@ -60,6 +63,10 @@ properties: or experiment to determine which bit corresponds to which input. Use KEY_RESERVED for unused padding values. + linux,keycodes: + minItems: 1 + maxItems: 8 + atmel,wakeup-method: $ref: /schemas/types.yaml#/definitions/uint32 description: |