Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4419809rdb; Fri, 15 Sep 2023 01:16:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0ZRANLMD4bI6hbne1WFg44rmWNO4c1QPdSel+hj+6nbNCaoShUXPf5YISzl+RRyOun2Rq X-Received: by 2002:a05:6a20:5488:b0:14d:16c:2d20 with SMTP id i8-20020a056a20548800b0014d016c2d20mr1314266pzk.44.1694765811727; Fri, 15 Sep 2023 01:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694765811; cv=none; d=google.com; s=arc-20160816; b=nKX6e0MqK98pb5MxbsErJ0cwl2DbuEc7cMVjiko6AG9NPFKMrAwSviro21yBbr3f6E qP9CUZd5sMDgKiSCsbPLxvbWp9leEASSVnfSW/tFk2SuzGciwQSJ6tmDpL/ztjsDBt4O t5kS3tHsZhuRtTGX3ZvXPcWQzoYnKjkxGLhLQC4i5XLjmOKIInR12tjRXz4v9alsKV9N L0Pe/t2AVXKIt7zz/aDQbdMRa5ui1KgmSj/3IoZ00NwS8plB+psVuShj6fLXx7bSlULw jQOukrl8Qkh1SK0NlNeAXGrcaoWM+pqnt6SMbHhkg6ZeQwQiMvgqhuADdskW2nqPdMfy Nm2Q== 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 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id iz11-20020a170902ef8b00b001b8690d7181si2815658plb.550.2023.09.15.01.16.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 01:16:51 -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=@kernel.org header.s=k20201202 header.b=CRlSLx3W; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A2157820BDC7; Fri, 15 Sep 2023 01:15:00 -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 S233235AbjIOINe (ORCPT + 99 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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]); Fri, 15 Sep 2023 01:15:00 -0700 (PDT) From: Nikita Shubin Add YAML bindings for ep93xx SoC keypad. Signed-off-by: Nikita Shubin --- .../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 = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; -- 2.39.2