Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1153405rbb; Sun, 25 Feb 2024 23:36:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVP8LXMOAmvIutpRZSa5YWXLd3kNbqaGZCBS4Sk5HxErh4QSnZCG69iFRoHo5qwbmxgAJNzLJg7jG3cN8doYu1irDddJizYDm/bWyryDw== X-Google-Smtp-Source: AGHT+IG2oH0rxEvu2T4SuoDIKZ1DAtuZmK9KlTC2w3GSdFwQA2Ukb+AzBOc7soeg/R9JH2GH98Af X-Received: by 2002:a17:906:3482:b0:a40:189d:c5b5 with SMTP id g2-20020a170906348200b00a40189dc5b5mr4110099ejb.38.1708932981983; Sun, 25 Feb 2024 23:36:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708932981; cv=pass; d=google.com; s=arc-20160816; b=IZU/whX8OOZgpWjR3zJsPWgNA7vx+SR1cW1dvCexWyMGRGKJtfqw0c9eMzQDamGqdt N6H9fF2MwhPmj8+FZV+zJXPbH8v+s6i8LUWr6WeGDhUq7Tl/BcVqsc+spjBRgYsCIHOQ 323uJkMtX87BzkcDvRWH5i8XGdGUTAG289hNLKcfNK2QbbB7HpGgdbuWXigopSLy/cjQ QUc9HZv2wtuumhCdC6KbkWiGjz5VIuWVZ7qx+Fe/FNqmCoLr5XcihzX1Ia0vqJhYkx/B penpGXaN1RcCwFTIIZ76Ep+yrphcUMBMGGZnQ3SjVsBxVyZsaNhy+IhrUv6JbtJHCSUQ Jmeg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=YNyMMuEANkyJ5zeVMjhiUKnFdQEqv3rdlxdEnVzim0c=; fh=RdqhTARkvQ3cbdow/Fd5ZIeccv929lyTdlhgxdvpdHM=; b=FiaKuLT3dcjPFoMwRD3fm0vsJx+CAyyMnKvyQI7uOH8rMMPbI0sLgeFU2h1P8CMvps NzjESCAfiyvgps1KIe6Szv2yBWp4se/DPMzDBnMW026NsFD+0VcjIEHHQKALqHpRk9d/ t04HbReSqYlcrpuiXiXtwNUSWWcQnrk7Pf/57YYKYHEaWBxBnc4obkUzgkYnNkSBTG7s bwILayc9xiTuZ9oSItKC3RVjPgc4OQjYrdfvfNblqVMQQcSLOW2OmwXMxjZgkmzOGvLH X750UYSXaFgQwcaRKOgrkyzEfGDfS+iPzi4BqDBQmsOJQYHSahQTPiCkkQ7vTtFD0R8i wiyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l17XN1QT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ga35-20020a1709070c2300b00a42f1491563si1860718ejc.112.2024.02.25.23.36.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 23:36:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l17XN1QT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BAF771F2142C for ; Mon, 26 Feb 2024 07:36:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BC3150277; Mon, 26 Feb 2024 07:31:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="l17XN1QT" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FA761CD12; Mon, 26 Feb 2024 07:31:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708932683; cv=none; b=VezEHIcaP12IjHsW8HEKZqOdgjbOWV8W8vNI6NxtwnFOTcIHjgSvjoee7lx9A7Mjc1Vei2nHiTekiSMUGdFVP6wF84YksFAGsnY3VDRCHAjlQBzutyPwz4agHVCJB8ZJ19fJfPT0vfGdch3NsWqurQYxlORJnhWmqdTRpVMeWPI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708932683; c=relaxed/simple; bh=z8ZWhs/5zvx3G6R8b4jbvSH/4gHgw6KY8ml450z0UoI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lbVhd5l69WUX+mrJok8va9xowmsnF3BSn017/spyjgn2pJQQ5hlmS8HzcpFg9wK/mncSTCDrXiiDzyN7h3HsODBRRv15q9ya3OIpZlficQOpqhH7zKw80qqq1heh+wdCTIh/ZQc5ZLSebrF0sip3KUCAFryBdD9MqohNxN9FxQQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=l17XN1QT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 1F6F1C4E662; Mon, 26 Feb 2024 07:31:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708932683; bh=z8ZWhs/5zvx3G6R8b4jbvSH/4gHgw6KY8ml450z0UoI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=l17XN1QTljFgwfNFkCePHz0zspFzw6QsibJLORYK4uqPFU4IZVU3AxEodCOzO36jG gaEj98tsxwjqEeC+6VsDc7z63+I0NiN4d6Z+4bfiiEGOE3SqmcvaonGHlMV6apDLIC /QGXyD39UANrLZznGiONGCBebuqB8b9jDA0gY7JdQ5RfhVbgiPJCHUffjZbAf9G1AT +Pyg5BBB1xwwXCCx72jYvW3gvN7/22gzxYsOdIm/ol8BCX0IFL9A42TNxaHrUwkE1H vCESRIbbYEBVMsxRYWXdoNuZduA9w89/gL5bK1Q2XmIKU09lHmVE6LUzueQy3vDPWV eWoSh+FC4aQyA== 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 0CC9CC54E49; Mon, 26 Feb 2024 07:31:23 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 26 Feb 2024 10:30:18 +0300 Subject: [PATCH v8 22/38] dt-bindings: input: Add Cirrus EP93xx keypad Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240226-ep93xx-v8-22-3136dca7238f@maquefel.me> References: <20240226-ep93xx-v8-0-3136dca7238f@maquefel.me> In-Reply-To: <20240226-ep93xx-v8-0-3136dca7238f@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=1708932678; l=3131; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=BmV75DVRygMtC4JmBqsWTX4r3uOQf/4IH1RLZhibCAg=; =?utf-8?q?b=3DLYxd2sulUikn?= =?utf-8?q?SIE3JxEzX0WpXZ4vf0Dv2qRC2aMBKtgqi7k8o2CE2PmiMib2JVFEc2Y469oG37sO?= DJkxPc67A33Pus9EJt6SkxFnLsFIY1bE0Qu/dgTEGjhHGtSxglU5 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: 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