Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4491454rdb; Tue, 12 Dec 2023 00:24:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IG85fao+VYo9FAlWeCWMbIA0KuBI1dqCQ09USTepldG8e0Qlews3Z3s+9xZkN2vB6UEgPBa X-Received: by 2002:a17:90a:d597:b0:28a:aa82:6ab3 with SMTP id v23-20020a17090ad59700b0028aaa826ab3mr1561391pju.31.1702369478071; Tue, 12 Dec 2023 00:24:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702369478; cv=none; d=google.com; s=arc-20160816; b=MmDuIJPqzbk6SpSNcZOVXU2Ev6C/LyTlueGPu7NilmJnmDruUWKF1JhdwRDuUB64TY Y1wtBe/duu2ySEkpFbspjGYf8d2GgStH2+CFPA04KnGCotwSJIWzbMQulAIkAlTIh3j+ HkleAP3xipshYKufWVjY+aYc9QVP9ra21i5mQn/X6pc2Pj6tF3cwjAg1f0AwymjgbGQN 3TAXpbDP2PUivBGkh33a9DIPLLjxFp89MtHqhUQQF63Hb1RJi08QF2rnKjB91PhmuF8P 99EbhdWpnW1Ez9Zjcj46XrgZZ/Lumod7I21g5F+DkPsGMnJ8iPPs13akfhYTtMclqcIj 4uog== 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=YNyMMuEANkyJ5zeVMjhiUKnFdQEqv3rdlxdEnVzim0c=; fh=RdqhTARkvQ3cbdow/Fd5ZIeccv929lyTdlhgxdvpdHM=; b=jhWKVshtKaouxNeM7uWdKTanMuu0boVFq9bbw97WerZYAxp8B5Leig4GFLUjV85P7B H3LesaGTw51WihMPiNsm0AysNvmDZSRE4WqMm3+4Ybplv17hjEZv/nCA+x1xyclog622 gNiFaRHsraaMpOjNKC9HQBTnr10OeHXltp5EfVVV49DnTy+uMujVHyhQbPo4m0L8Vk/M DcHasKIEloBj70hgXWYewbh/nwy6Kiwd9J6UFJhgSFLpKzYtHOji+rCwf820b2bdcWCt 9zOKegHKDfFOyEyX7t6PUMQhpiDcT8PXYSw4YjSPPub6DP7XRQtTb3Mp5LhmGd+wIO0H cXBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u1kHQF+z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id x22-20020a17090aca1600b002887c3b5617si8830623pjt.58.2023.12.12.00.24.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 00:24:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u1kHQF+z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id B02EE8021B33; Tue, 12 Dec 2023 00:24:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346258AbjLLIYO (ORCPT + 99 others); Tue, 12 Dec 2023 03:24:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346078AbjLLIWG (ORCPT ); Tue, 12 Dec 2023 03:22:06 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9CF5EA for ; Tue, 12 Dec 2023 00:22:09 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPS id AAB2BC4AF6C; Tue, 12 Dec 2023 08:22:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702369325; bh=z8ZWhs/5zvx3G6R8b4jbvSH/4gHgw6KY8ml450z0UoI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=u1kHQF+zS6DiaVFiSgvzkRpAl/gQhz1nSgVvQKEB8aGdL3ep9qIdhqzGUe9U8ExpF K/I6ye2hbrNBl9YCKGJSKJbQTQO26NPfObVY/nv0xYEYvCMu+JLtlInnX31F9LuZWG eqHZFTtw2qP2l4JKR40/6OxepKBK1YfRIvCWi/pz+NduiuxNCT8XeEwEzH06LcBagz 6UyA0/fc3quyqJLM45QQ4MHiV81iu/j+9H1sjtHcTdMBNUihtVXY70QIISnJGIYDB5 E5pTveakOTA3Efl3ORCnJ0pTsAeJyCgn09n/X1BS3wOGVs7xOCR5/9jnYZzzqXXHyz vUTCv/cDJMmnQ== 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 9B490C4167D; Tue, 12 Dec 2023 08:22:05 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Tue, 12 Dec 2023 11:20:40 +0300 Subject: [PATCH v6 23/40] dt-bindings: input: Add Cirrus EP93xx keypad MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231212-ep93xx-v6-23-c307b8ac9aa8@maquefel.me> References: <20231212-ep93xx-v6-0-c307b8ac9aa8@maquefel.me> In-Reply-To: <20231212-ep93xx-v6-0-c307b8ac9aa8@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 , Krzysztof Kozlowski X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1702369322; l=3131; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=BmV75DVRygMtC4JmBqsWTX4r3uOQf/4IH1RLZhibCAg=; =?utf-8?q?b=3D5N8mmBxz0SCl?= =?utf-8?q?QtnBn54FQEEXMEv7iM0KMfjVC+WMYp1uqDvNXolbPg4SoNq9W12sSYkq0ALe8Gmv?= rCA6cYKkApfeeDM1zav+40FCpk7mkkKZx3K3J+/zozqeddsYatSS 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Tue, 12 Dec 2023 00:24:35 -0800 (PST) From: Nikita Shubin Add YAML bindings for ep93xx SoC keypad. Reviewed-by: Krzysztof Kozlowski 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..a0d2460c55ab --- /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.41.0