From patchwork Thu Jun 1 05:45:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 101739 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp75700vqr; Wed, 31 May 2023 23:00:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mv7G1YPlYz64sMY7rRuQUi1eNDoejb7tf2J3PKKPdrznkxY7Gc/+oz1ApkQ/Sq27y9RDv X-Received: by 2002:a92:d0cd:0:b0:33c:b80e:4599 with SMTP id y13-20020a92d0cd000000b0033cb80e4599mr2697671ila.9.1685599230354; Wed, 31 May 2023 23:00:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685599230; cv=none; d=google.com; s=arc-20160816; b=KghvH1ROuwYwV5BGX/dOoM409PDbh3BTZIkmA51pWwj2oNrYXbm/LD+p3hPwnhGW8O lB3TWhE2Hk8I/09X0jVvSY+H1sazqMe3i+3yfKH7y0T7E6a/F33hWHi345zxQinGelFx 1uqE9ed1V/pL8GhbSH2c22J4Gx4BwDVviK7nM5yrYx4/V0Y/JU595RU193TSibx0zeUM H4iI0Enx0NcDqvYZrIfgca7PeClR6bFM4GihT36rjQh8MCOIQQZsIKiVESU0zq7CRi8b NvrUYSdypB5mD9MgvcwrlHSD5x+BWL2cSK8xhrWSdBAQ7L2N5bfkTNtwrGOrUMBnxQSW KWnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HA7oFSENkffqTFoqLZaGhaCPiEmPYmrd6eret2C2pWE=; b=WOg7RzyNmmj6+IMfIxtYlzJCwAuG73qJjZnooxdbhrfMJyOF76VtDVXhV1KnJojDWS Ri8umCft0OOkdYM3Sb9WNyuoL3E8hspsLp05ZxHtktnlzcCj2dFfALvIMnJvqBsGAszn AwolIKcing83n5DcE1uV3IoO7iPkIIeyP0gzSVuQxHex/YZyRIpkoJhlxvx+06Qf1roF Svugi+o6RUbtG6APxh09N7x4ruiBI/cHUWOc4rTf8iKviJMqGFWslSss5gqMLsQTeGIA cdLApQZpDNRZKxPf35or11jIgiEi8CqFCyXDrLm4zqN2vyQC5DgQu03jg/MwN+s7XGY3 p38w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=ZoaPv1W1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020aa78ecd000000b0064d5a66dd06si4907326pfr.374.2023.05.31.23.00.14; Wed, 31 May 2023 23:00:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=ZoaPv1W1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231373AbjFAFqu (ORCPT + 99 others); Thu, 1 Jun 2023 01:46:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231560AbjFAFqd (ORCPT ); Thu, 1 Jun 2023 01:46:33 -0400 X-Greylist: delayed 583 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 31 May 2023 22:46:16 PDT Received: from forward101a.mail.yandex.net (forward101a.mail.yandex.net [178.154.239.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 798B813E; Wed, 31 May 2023 22:46:16 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:5e51:0:640:23ee:0]) by forward101a.mail.yandex.net (Yandex) with ESMTP id BDDD246CCD; Thu, 1 Jun 2023 08:46:14 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id pjGDMhnDduQ0-kvQTlySg; Thu, 01 Jun 2023 08:46:14 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685598374; bh=HA7oFSENkffqTFoqLZaGhaCPiEmPYmrd6eret2C2pWE=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=ZoaPv1W1N57wNyCfJtxkTOYMEVVFNMqdDRfLjDwwKPuYIWJPC8HIpGAIyUPKFJkoE FLos543TQIlWhM2sNQ2KFg+9Ur6bTdQ/Mioh3VAvW8oC5TgWpuCet1kwEy2Z8ipX12 1zQ6H1aTMabvZLArYO5UKuiMsRiM5km9Nfa1m/Qw= Authentication-Results: mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin To: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski Cc: Nikita Shubin , Michael Peters , Kris Bahnsen , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 27/43] dt-bindings: input: Add Cirrus EP93xx keypad Date: Thu, 1 Jun 2023 08:45:32 +0300 Message-Id: <20230601054549.10843-9-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20230424123522.18302-1-nikita.shubin@maquefel.me> References: <20230424123522.18302-1-nikita.shubin@maquefel.me> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767478897343960360?= X-GMAIL-MSGID: =?utf-8?q?1767478897343960360?= Add YAML bindings for ep93xx SoC keypad. Signed-off-by: Nikita Shubin --- Notes: v0 -> v1: - remove almost all but debounce-delay-ms and prescale - s/ep9301-keypad/ep9307-keypad/ it's actually only for ep9307, ep9312, ep9315 Krzysztof Kozlowski: - renamed file - changed maintainers - dropped quotes - dropped clock-names - use fallback compatible and list all possible compatibles - fix ident .../bindings/input/cirrus,ep9307-keypad.yaml | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/cirrus,ep9307-keypad.yaml 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..c7eb10a84a6b --- /dev/null +++ b/Documentation/devicetree/bindings/input/cirrus,ep9307-keypad.yaml @@ -0,0 +1,86 @@ +# 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 + + cirrus,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/uint32 + +required: + - compatible + - reg + - interrupts + - clocks + - linux,keymap + +unevaluatedProperties: false + +examples: + - | + #include + #include + keypad@800f0000 { + compatible = "cirrus,ep9301-keypad"; + reg = <0x800f0000 0x0c>; + interrupt-parent = <&vic0>; + interrupts = <29>; + clocks = <&syscon EP93XX_CLK_KEYPAD>; + pinctrl-names = "default"; + pinctrl-0 = <&keypad_default_pins>; + linux,keymap = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + };