From patchwork Mon Sep 9 08:10:47 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: 826734 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 B8E831B251A; Mon, 9 Sep 2024 08:12:16 +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=1725869536; cv=none; b=KlIFd34y7RDUKZCQqiyTiQn9kVvP614YEWE6EFohbnc6xudiXjCG/2H/mPyAgfgW+r7igC2oEMa1SiV3hAXHurl5hzRxzm8IckCo485JYAV8sX0CgaPYGMJAuaokDtpjXm2uvBv3YzP5/V+CLdg5qdT1brUf0fEBds4HJ/1CxUg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725869536; c=relaxed/simple; bh=985+UlFULic6LgAh253V4PgK2g0KvpjtDw3UMIKIEeA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=I/SPfqIG3+L72dsq2e68WswM9PS7G1QRRZQeU81P6DiyTSvACFaJokYfBlOdSZHrxW4zqUzJxTXaVnWpvOVXPWTnUdydVa4vk8VoZUtE60Wp1qrJ6tQlrE9znexN+7WEZJvxSG+ANDj0BJzl61ktG+RF0aMrj8XNkxbkVmfLDy0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ejhpkQnC; 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="ejhpkQnC" Received: by smtp.kernel.org (Postfix) with ESMTPS id 91C26C4CECC; Mon, 9 Sep 2024 08:12:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725869536; bh=985+UlFULic6LgAh253V4PgK2g0KvpjtDw3UMIKIEeA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ejhpkQnC6+CQ6QqhbHrUGXJhL2vTU8PjcGIdKLc5jPb547l4owmEnrFDnSq7a1ECc INkvIdj8KcfjBM2XPvjQrTUpij2IkIOluPq1tC5BE7XHXXD1DJv9Y6cqd3fN+vnZXy 3h79cy8VDHhOFrOSD+mpnyY04SWkixlYbKhAfHeXlA1FhaF8wTaIdXzzzOwhoFdJ9W dVs/ZUOltDtg8HbqJwHBDVLZ+jIS09QvWn15e0fEYVw47/tffnFxl+yWL1rflZqZlB n3xBSfwvVaD6TGXS2xE3cv5s9emAICgvGsI7zl30jcggPT5P6iVbxjs0NE5liydSBj s2e/7/9qJ4S6w== 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 8C1F1ECE581; Mon, 9 Sep 2024 08:12:16 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 09 Sep 2024 11:10:47 +0300 Subject: [PATCH v12 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: <20240909-ep93xx-v12-22-e86ab2423d4b@maquefel.me> References: <20240909-ep93xx-v12-0-e86ab2423d4b@maquefel.me> In-Reply-To: <20240909-ep93xx-v12-0-e86ab2423d4b@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=1725869532; l=3131; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=ArW40vHeN5DKryw3IpGISVSZUOgIwSTy8lnGeu9e4oI=; b=7wbnohTwtyZLeZcb6669UPAGH1p6i5N+sFLAO3V3q+k00nwMyt02B1FIGKVubmhiTiX5bIf86S3Z C5aJTlWFDv2rX9RXu9qeZT5Eit37d/uAeLUwSKgju1OWyW37hkJ5 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 = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + };