From patchwork Fri Sep 15 08:11:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin via B4 Relay X-Patchwork-Id: 140212 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp886897vqi; Fri, 15 Sep 2023 01:19:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQDlbNy+2UOHOsW869hafTvMg8Xr8uMHZ4prQ7C4p0FqAPHjEhniuF9QVV8k6yFyiQseaT X-Received: by 2002:a05:6358:e4a9:b0:142:ffb4:74ea with SMTP id by41-20020a056358e4a900b00142ffb474eamr861051rwb.2.1694765994734; Fri, 15 Sep 2023 01:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694765994; cv=none; d=google.com; s=arc-20160816; b=Ey9Cc/JLrHny9zkqhYSAyJvShfrj7eCTN99RcD68ZWiC+mbrkqoim5XtiDtmDvJSsR bECtcxEE/1Myo2aYVw/FPamUY6Id1tqwJFlh8z3iBeS0AdzUtsCWE+wpodTkfwnpkBre 8jMPO4QLOPa64ZQtvmhNjyXP/kebkDAq9ChXHLUKDsMYbM3kLdCL4FlkW4d5OpZKV66D eSBCPiCfEE5fQK6KPu0U8NHQH9pF/wquLgps2ybYs8/VbXrI7I3ruayjltEs9d6eqZ+m U3sxqTlqlU6fpkRhBgEUyCOqQNMbj6uY8TSIO1ngKmz+laTWBmf5tSJ1Rlm1rP4hL0os Qi0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=ahTQll/xCH5OX6ucyxzbHRq9lQs9wtIyDKxawDP+tJY=; fh=bPnQeWJvUO6SEiy498Et8pEsDqF5MBu0+/n1ZmEoPF0=; b=uRT9gr8UPpXeH5RIl8Y+qkE62MXQhWpjbmDWJsI5N/03drYgmezRMTaDRbxg+2nudP O0+r+4Vo6EXUwYyOAy3NEBNjLcTflcEMIWRKw/+swqy/2VTwbDCyFil/HCFa1y1lvSMR x75E0jKvTGY3NdgJEk+Q+3Lp2zLrtycfizbAIt+7Plw7wXor5nOORUY+m+1w4hlR22ot ULlybLvi5AXZQj2iFeQkGobqdCT1/wX6yPIIULeLbXuljk+6xTCbLqRuRtSzcXDMUQYP nX/uidqAiH45nXh7Re7ijPDmC02WIkeDTYHRtIsEx6CniifiTdZLsj7O8/F28pRpBLL9 KBnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CRlSLx3W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id v2-20020a655c42000000b00577561158b3si2860727pgr.411.2023.09.15.01.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 01:19:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CRlSLx3W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 865FB8328FD5; Fri, 15 Sep 2023 01:13:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233032AbjIOINe (ORCPT + 32 others); Fri, 15 Sep 2023 04:13:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232915AbjIOIMz (ORCPT ); Fri, 15 Sep 2023 04:12:55 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 929632736; Fri, 15 Sep 2023 01:12:14 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id D0B83C116CB; Fri, 15 Sep 2023 08:12:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694765529; bh=2sLaAM08Lq0Fk6ohpWElrDVaYktl+uEeUR1wxQKRxQ8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=CRlSLx3WZbUEA40Bt9EQiAKfBPcAMBohiMFvqe8qifcTSadvoBKVk+BsOaP92sJgH dSca+wicdjN5FZ+pVlfxVNdnNdnoevlMHpjt/+j1xq46wqlZxjg3b31t7CYote7eaj +kDBvUggYuJmfLZdHIZ54RI2yYwVafOqZfIBXryzrB2X8+TrbzPXB/OjV44I44r/1q n7ImOCS5U4kUmUdTBlOYGQcUnFVHCTKyvwOwYbtQ0TMUk7kAM5i/HYGkl6odAtSAC9 8prwCifDX9OdC4jpaIK6i5nTp2+LZEJ1fYr8all6702ZebMJ4uCyAsPz91rc9QtDhI BouSiutggk/Zw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFA49EE643F; Fri, 15 Sep 2023 08:12:09 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Fri, 15 Sep 2023 11:11:11 +0300 Subject: [PATCH v4 29/42] dt-bindings: input: Add Cirrus EP93xx keypad MIME-Version: 1.0 Message-Id: <20230915-ep93xx-v4-29-a1d779dcec10@maquefel.me> References: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> In-Reply-To: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexander Sverdlin Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Alexander Sverdlin X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694765525; l=3061; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=ve2e5F0g70RfE/6B2/FS3EP+LokDIWTupNzihy2bKmw=; =?utf-8?q?b=3D+AhS61aOPD/7?= =?utf-8?q?neI8lBvUbLxR2sktumNE49UYXTCMecplOg9z2NlfZbJjiUXH5vsxzoGszxCbwPlI?= aqNRNejVBz3UNYWUR57GAaBtQP6x38xkBLZEsdXNmrIvnTSXffPl X-Developer-Key: i=nikita.shubin@maquefel.me; a=ed25519; pk=vqf5YIUJ7BJv3EJFaNNxWZgGuMgDH6rwufTLflwU9ac= X-Endpoint-Received: by B4 Relay for nikita.shubin@maquefel.me/20230718 with auth_id=65 X-Original-From: Nikita Shubin Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 15 Sep 2023 01:13:47 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777090947809990169 X-GMAIL-MSGID: 1777090947809990169 From: Nikita Shubin Add YAML bindings for ep93xx SoC keypad. Signed-off-by: Nikita Shubin Reviewed-by: Krzysztof Kozlowski --- .../bindings/input/cirrus,ep9307-keypad.yaml | 87 ++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/Documentation/devicetree/bindings/input/cirrus,ep9307-keypad.yaml b/Documentation/devicetree/bindings/input/cirrus,ep9307-keypad.yaml new file mode 100644 index 000000000000..ac020c9f564a --- /dev/null +++ b/Documentation/devicetree/bindings/input/cirrus,ep9307-keypad.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/cirrus,ep9307-keypad.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus ep93xx keypad + +maintainers: + - Alexander Sverdlin + +allOf: + - $ref: /schemas/input/matrix-keymap.yaml# + +description: + The KPP is designed to interface with a keypad matrix with 2-point contact + or 3-point contact keys. The KPP is designed to simplify the software task + of scanning a keypad matrix. The KPP is capable of detecting, debouncing, + and decoding one or multiple keys pressed simultaneously on a keypad. + +properties: + compatible: + oneOf: + - const: cirrus,ep9307-keypad + - items: + - enum: + - cirrus,ep9312-keypad + - cirrus,ep9315-keypad + - const: cirrus,ep9307-keypad + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + debounce-delay-ms: + description: | + Time in microseconds that key must be pressed or + released for state change interrupt to trigger. + + cirrus,prescale: + description: row/column counter pre-scaler load value + $ref: /schemas/types.yaml#/definitions/uint16 + maximum: 1023 + +required: + - compatible + - reg + - interrupts + - clocks + - linux,keymap + +unevaluatedProperties: false + +examples: + - | + #include + #include + keypad@800f0000 { + compatible = "cirrus,ep9307-keypad"; + reg = <0x800f0000 0x0c>; + interrupt-parent = <&vic0>; + interrupts = <29>; + clocks = <&eclk EP93XX_CLK_KEYPAD>; + pinctrl-names = "default"; + pinctrl-0 = <&keypad_default_pins>; + linux,keymap = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + };