From patchwork Mon Jul 15 08:38:26 2024 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: 812707 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 C6FF6186297; Mon, 15 Jul 2024 08:40:04 +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=1721032804; cv=none; b=eyYiJw1ulOmdN8P+QkDKNfARMTheBOdHCgkGDsqVtt11cXnpRv8iCHmy2W0FRVXlvCY/IaH9VYxSidnpdMt2fVZrMx90cDlFWpFmpfqsfKAMbfME3pTwevXbp7JSu52WmJieF6RwJOBXt6ui/Vq6xDUF/XM81JQQLH+o2XfW4FQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721032804; c=relaxed/simple; bh=985+UlFULic6LgAh253V4PgK2g0KvpjtDw3UMIKIEeA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DqHEiLhii1YxtkURaEFIo6EEfGo8SWuDUOpbAXr+kzmjCW5ff5JPF7W18QlOlQZzfdJnCKt7u42tvCIopKQTqHNL1JSDWv8yM/gxWkBbN2w+llzvMNy54TqnYs4h8EAI8gf+YvaXwm2+aCMQ1LOS74TmGWnPboK49jhZcY7p/1g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=t4B0CXpN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="t4B0CXpN" Received: by smtp.kernel.org (Postfix) with ESMTPS id 2F69CC4E673; Mon, 15 Jul 2024 08:40:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721032804; bh=985+UlFULic6LgAh253V4PgK2g0KvpjtDw3UMIKIEeA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=t4B0CXpNFlT20mB3vC7b5emlNXqBggTxoyr3sl7sFTjsan1BJ4+WySRRZem0pDDcv 9/+VoF8lS76vIqX3fuytO7J4BWHX3B5Fq2nm1rYSYIzQMN3aMVoYLOuyY2xPA6jIAr PUHraL/exGPef9FwmNGLDdMAHBOA2A0U07wUbAcrql7DFXDdhPe3R/Vlr3wpXRVATk 7wkmiPPNx7krGBGfKA+RGikHlI59Psj+dq/3AJJLOKpPI10hWwxPMQTjJcv0gWwC8K wNJwHV9/3CjA6XF2y49H5JIbFBKEC98kKz2F2Gkl5USSwngtLpjikEdFRy2wyiLmqf YcrFCIYTT2fJw== 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 26F95C3DA50; Mon, 15 Jul 2024 08:40:04 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 15 Jul 2024 11:38:26 +0300 Subject: [PATCH v11 22/38] dt-bindings: input: Add Cirrus EP93xx keypad Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240715-ep93xx-v11-22-4e924efda795@maquefel.me> References: <20240715-ep93xx-v11-0-4e924efda795@maquefel.me> In-Reply-To: <20240715-ep93xx-v11-0-4e924efda795@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, Krzysztof Kozlowski X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721032799; l=3131; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=ArW40vHeN5DKryw3IpGISVSZUOgIwSTy8lnGeu9e4oI=; b=LGSUhrFMJXOAO6skqmd1bnj4eoDbAIMRVsdzRob4VlvJ0sLShvf5RBYl8m8sQoGTxvHjslgjZzZG jl8Rzi0ACxpXV5IrDgbewB02QXnUyPyXSUxud5FeDt3Ap0Kcm+qj 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: nikita.shubin@maquefel.me 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..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 = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + };