Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp825008rwd; Thu, 8 Jun 2023 08:13:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ePCOBWmzN8odPBeoFOLjIZ/dDCpqFuqlzLOehP0x0U0AKDO5vzPq85ULMWKgqTYCjL4yV X-Received: by 2002:a17:90b:3142:b0:256:2ee5:aebc with SMTP id ip2-20020a17090b314200b002562ee5aebcmr3986243pjb.18.1686237198291; Thu, 08 Jun 2023 08:13:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686237198; cv=none; d=google.com; s=arc-20160816; b=C8ji+STAayv29uhn6iyWE9MQH6wEYDrB6wj7igaW03n9tQ4+l5xWnGOM8NB4W5fBbV 07bZCwYHBxY227WYFd0IkmeaS0B5f2gNSGqwV8pT1pHBwWjlIuttNHMddlAk9yxa/aQ2 Li868oJahZDOHHhJlKg7JzXV5yfivJLo+xoRlO/oHZ9JcoKf3RXedXBNo+C3kDSS0l/9 vU5cRZjIi9Mga/CxU2bN1VR7ZLNprVKTh3QrN1ORJZUWBIntxpbUkQWctio/YAwmVTas tzyOcpo6pZP34NPYVZh+GICzTodSSk/cdeKj5hXC8BgyiEZzGqCp9ZlFLJ75mK26UyvA wX6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=W2HO+Cce6dz6N2YsSHeGk4YtxY8g0B2gxVxKGt9RYO8=; b=pMaAmu3qjSFyCEa/XWZ+qEW4gDL+/bE6m1LhELnODFwrKBlwr5plkLeBrZ3csd84Wb yl4PMT05vfdgT+jI55K8cRDOr1qPplNkmy4HCSRB+7a2iN9q8ya88ezE/KJy7j+inDil 84SEc/lG8DSlTz0MzTJq/l0IYJtz8MZddAfWkwL+4+AkAQzcE25cZRd90qzmNpvbriLP kU6Rj/C/ndhWl1TWOBzOrMl+9thMbJCjBZRU81+9yRjIph22hS2qhHFEqIbWPqmUNa2M 43Bh7Yz72ANAGA5aQxaVs8k9IFcIHUx83T+kQxoC7NB3K4Q4UET7RyDEgPAC44K3LiQh aXjw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a17090a9a8b00b002527ec91a2csi1164394pjp.98.2023.06.08.08.13.05; Thu, 08 Jun 2023 08:13:18 -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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236705AbjFHPBd (ORCPT + 99 others); Thu, 8 Jun 2023 11:01:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230033AbjFHPBa (ORCPT ); Thu, 8 Jun 2023 11:01:30 -0400 Received: from mail-il1-f175.google.com (mail-il1-f175.google.com [209.85.166.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B0891FFE; Thu, 8 Jun 2023 08:01:29 -0700 (PDT) Received: by mail-il1-f175.google.com with SMTP id e9e14a558f8ab-33c37f62e24so2283115ab.3; Thu, 08 Jun 2023 08:01:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686236488; x=1688828488; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=W2HO+Cce6dz6N2YsSHeGk4YtxY8g0B2gxVxKGt9RYO8=; b=KuCMfxonJNTi5eg/6XuoqlZTX66r1A0BRY+89OyyIuoiRKTdtU4JhOrhwibLdf5os1 YSXCGEuSkKzvxTYaprALs9qXSbw3Txl7FizQURId+gIBxqPMXLP8qj/3tx9INdGUi4V5 M10lXoTG5ECBzImR52VKoSVjjgJTOETubn8/vKAfDRhFq+58kvEK9U4GdLDKGi/JknfA rBFV2pRtkAZ15dQZE4hvoXsRiwaq3KU/ZEccMsmFMO80stjN09yjdQjFqyjYfR5ZZ8RM mH1ND5IKvZR2g6+fMrNFOUPS7fnztHAnFV2kPYCeXvtg9l+9+Rj/gZNnvAgQIiCNX0s/ lNqg== X-Gm-Message-State: AC+VfDwyLW5T017+9Px5wOHfHqn979Hq1u2hcrwa8Koy73+sFRF0Vwf1 xa0+/oQM6AaMnd0ey7Chyw== X-Received: by 2002:a92:da8c:0:b0:339:f9d:9f6b with SMTP id u12-20020a92da8c000000b003390f9d9f6bmr8567944iln.1.1686236488619; Thu, 08 Jun 2023 08:01:28 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id x9-20020a92dc49000000b0033d2b3928d1sm449911ilq.51.2023.06.08.08.01.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 08:01:27 -0700 (PDT) Received: (nullmailer pid 2625861 invoked by uid 1000); Thu, 08 Jun 2023 15:01:26 -0000 Date: Thu, 8 Jun 2023 09:01:26 -0600 From: Rob Herring To: Nikita Shubin Cc: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Dmitry Torokhov , Krzysztof Kozlowski , Michael Peters , Kris Bahnsen , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 27/43] dt-bindings: input: Add Cirrus EP93xx keypad Message-ID: <20230608150126.GA2621694-robh@kernel.org> References: <20230424123522.18302-1-nikita.shubin@maquefel.me> <20230601054549.10843-9-nikita.shubin@maquefel.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230601054549.10843-9-nikita.shubin@maquefel.me> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Thu, Jun 01, 2023 at 08:45:32AM +0300, Nikita Shubin wrote: > 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: | Don't need '|'. > + 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: Use the somewhat standard '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 Constraints? > + > +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 = , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + }; > -- > 2.37.4 >