Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp205154rdb; Thu, 18 Jan 2024 00:36:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGjXlMopZS42E0zKmuX+7vh8vr2a91HpckZbrx47ONDR933kdNN+Jk86S4fGyrd3lZRfsGC X-Received: by 2002:a05:6a00:1c97:b0:6d9:ac04:ceea with SMTP id y23-20020a056a001c9700b006d9ac04ceeamr388496pfw.64.1705567017242; Thu, 18 Jan 2024 00:36:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705567017; cv=pass; d=google.com; s=arc-20160816; b=CoIxtbhyd2bs5SbFg51st9cI1iOvQR9ll/eEMRM/huRO9DNtdx+0zuQtDUmWtcfH9b TKJPyKDVNETtgbgXJhIp0MHZZNp/7BYctEOrsP9UJAk+ttIpsldNeMrdl/Lr8YEMmgI7 OVp0NkKHpDS0ukMWXVNocQRPTlpqbR/JDtdbTJJrAvUISCAqungcaIJHILQq3gm7jXHw /gAChyBd8kwKg/KWjoFZ0A7+735GuyHB7QafKSGxerjrtNCNEM12h8nGJdelHTWEw30M nrQL8nlIbI6n7r0mm+PTzjqltCXYAloi3U5zMPjw6ofQ0QawIaQ6Z/qkLCBR/b1Q2gS2 WjVA== 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=SV714JETNJrMAKz1qBYVYoYXI3pdKr54QPJjaiKUJIIto/sxKvhZkWbhuDoY6mzOfG j1Rgf/GnS1hiAq8WgkZyy64vJTVALpxaGrkOl207ffjoaeyLlYYEenNsSY2PzPr/1j9c Zo8oXEKtVkCZIjLLUjpw+crRs720yRuNO6qc7XGx7Y7c9Xrtf9+RZx4tPCYqC7GA1RdR /CU5CnDYkcoJnMgb2DBqWq/7f8EFjMRjUQhiobS3ROpE2tMrZTimi181d/TOiKW8g8Ow lKFgvcQuG0TrNav7YKVd+l97Ljto1jwBWUx54ZqGFyd2FwrVosLb2z0wSyCXlmf2WJ4Z TNQA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZXc38j1v; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-29873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29873-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t18-20020a62d152000000b006db8a94e4ecsi3196258pfl.75.2024.01.18.00.36.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 00:36:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZXc38j1v; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-29873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29873-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 38C8CB24282 for ; Thu, 18 Jan 2024 08:29:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8ABB2D797; Thu, 18 Jan 2024 08:23:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZXc38j1v" 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 EA1051D53B; Thu, 18 Jan 2024 08:22:59 +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=1705566180; cv=none; b=irG1SKnxDGVsg5fbnngRd/2DMbKPF+v0p4a3EubzcNSIw/3wUP+7uUxc8PryYCUUCs/F8P3vKsEeEBDIJA2fydY8tBmKE0zhfW0VzYbpLNWIQzSbXdN6ISX3JfymwBHTZpM7W0Gy89tCUiDAJ3vEYPb/v0gHYjOCTJpjg6aMRk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705566180; c=relaxed/simple; bh=z8ZWhs/5zvx3G6R8b4jbvSH/4gHgw6KY8ml450z0UoI=; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; b=ok1srWmVEUf7Qmjcqq8gxvB+LlDk/CcUi4E5VxbKFvspY0ayWzJ9aO3IzEvkZS38zYsjuCid4dzgm1m89xS2NQQNTb6eyt1Rn0KklvIB7N3J9YuGqNs4z2KlYC8ad/RGHP6YNRvcU1MlC84nVru9vcOUDFV2gZp9xgG1uSV+MgM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZXc38j1v; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id C532FC4AF69; Thu, 18 Jan 2024 08:22:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705566179; bh=z8ZWhs/5zvx3G6R8b4jbvSH/4gHgw6KY8ml450z0UoI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ZXc38j1vrJJgeg/2Z50HDuv7OfUkCYRnOx91SzVe00S423JHJtIoRbXQ2fgYKT2lB /JR67prOkaZcXN/jBzD9zVT3571LxAhbb86tBPYfVYlhhLyUt1Sg1/f90OiDHPNolb OC2Fl4PCC7CaUA/2OPMwVaJK0u08tz3h0Tl13TRFfDzwZ61bkN9aSRYkm4Pi+vGKp4 5wIIW/+1c7w+GqeHdoKk69NsW9LLPHbbQOzCHfH/sGkP1q52BWnVetcjAlWVa/ZEv8 DBHFAMewvPTiiRE722j2vYCeJ0DG0nfzpPYfe81A8fjAcXbvVqoz4OBbrbXERx1I8R BkSfFmUMueyhw== 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 B61DDC47DB3; Thu, 18 Jan 2024 08:22:59 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Thu, 18 Jan 2024 11:21:06 +0300 Subject: [PATCH v7 23/39] 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: <20240118-ep93xx-v7-23-d953846ae771@maquefel.me> References: <20240118-ep93xx-v7-0-d953846ae771@maquefel.me> In-Reply-To: <20240118-ep93xx-v7-0-d953846ae771@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=1705566176; l=3131; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=BmV75DVRygMtC4JmBqsWTX4r3uOQf/4IH1RLZhibCAg=; =?utf-8?q?b=3DOBawJ32qPb0E?= =?utf-8?q?pmaY5WJpsBDFeavQvwN3PHyH+NIqjt/H1+PnPgIJ/GBO3Bb5/hICNfBlEkSZyFqi?= xZdjr1jjCselO2y/Rqr1RLoqITzCOf24ZseR7VbjkoS2DE9XPipk 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