Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp43673iof; Wed, 8 Jun 2022 14:49:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgxFZ2MGtOAQDmuWH2cKe9JUJDTzQBJa5DjtEgKzpaO9JKOS3b6CavaPaZkHQrR7m2kEbp X-Received: by 2002:a05:6402:51d4:b0:42f:b38d:dbb9 with SMTP id r20-20020a05640251d400b0042fb38ddbb9mr30420439edd.255.1654724945897; Wed, 08 Jun 2022 14:49:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654724945; cv=none; d=google.com; s=arc-20160816; b=qWf7mWtP0G8QbY+51mvQGmk97GGdmUOl0IDdhu4TSS2JO+1KRqxLaVRS1fkQCkaIJk UTN8NTS++BlA5bylVYwRcDMJ4n7IZNvFTvxbYWCqBeySB0/kArNC3KR0T5SYoOXARrEC Xb3jxKz3kb6htLJTANJzNywZdlB1qwSLrnfucxkjeSedoJIiFUBSj1PMIfw9fALdlV3E YU6i7LocaLjJAwdQLk7Po2XLfWENO5QTFQim50N6stJrJ7F9R/K0MtUNvg0AjswsdPHm vLMXhqxnqvUFOYZJ+4LXnnnoiPRxi9rtHj3EgcxQe4Rc1mGqj3HnPaUUu28rWXbEU8+Q aZhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lUXUcX8HlJTRsCH3oBuripmdE6ttwjz8kZvFmhf6Qgo=; b=mSrMPY04agrt/MHXnstYCl+06pqeva8wYcrFzrCPZThoBVlK6caWZBoIg4xnHn99pY 4+gKhc2P/uMxn3C8hq9/FR04ZxDvo89nV0ddFNgTS3n1ORkOHmLuwAq41tztI2cNYbKA SmDx5BYUlIdACrbUNXTW2s4Vd3i7qKqjtXXiVpz1h9Qn3Ibq33inpTYEiGYmIcKX5XsO dyQgftDMURWdDbXxieua1g+mnie4D4JSSlvuT71vsnUckvfMQEBIt6Y0osJanXU/UgF5 nIjotZ4m3vT0fg+ZhdM3K7Td1wC5OJ1pdBjw3Zsu4We5S+GAqbR373VeI3gtiYkEO4Tu Ci/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eTlWZj+z; 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 g10-20020a1709065d0a00b006f39645649asi14760987ejt.639.2022.06.08.14.48.40; Wed, 08 Jun 2022 14:49:05 -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=@kernel.org header.s=k20201202 header.b=eTlWZj+z; 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 S232537AbiFHVUs (ORCPT + 99 others); Wed, 8 Jun 2022 17:20:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229851AbiFHVUq (ORCPT ); Wed, 8 Jun 2022 17:20:46 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7055D18FA74; Wed, 8 Jun 2022 14:20:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2BABAB82B45; Wed, 8 Jun 2022 21:20:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFAA4C341C0; Wed, 8 Jun 2022 21:20:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654723242; bh=Jsxs9fcO7DTGXDp/Xmt0ApBO6k+WCxLLqeQHoawXuQs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=eTlWZj+zbHmYk73D6tGciRoN2u80G+3q5qH2HOw+GBxcHd7IIs88qx0wynWdhe+GU G9H7+NcD2ai2RpifLfyA+ifHUM71K06CGqaEBMeyk5HQqNrVVxy+PPCKh01Jz437qh og67Euuq/OjYibaeS1GBVJMuA8j/6fpK/KHLgHf+Fof+PAqGCYCbQ4o9qtJrY+IA6k 6xQ/mUGArQj2X60x+PXKIDKMyaEEQnHy7gngDmJY54aCnFdxyXz0Qh4y+63ii+mTrA Iw01SgVQmgGJIWXYzRqIwKjj+xhHEonZZh+c3zU9sNmEnB9rYCbYZlGYEIxON5bFDy 00+0axHz078PA== Received: by mail-vs1-f44.google.com with SMTP id e20so1086590vso.4; Wed, 08 Jun 2022 14:20:42 -0700 (PDT) X-Gm-Message-State: AOAM533crxmp/B60Zd5Om7vx0KeG87Cccxy7Rbn6vhki0RkpTluovxQa x1Ehb3Ru02CSZJ24xn6xT3gRTte2ULDaqDmfoA== X-Received: by 2002:a67:d38c:0:b0:349:d028:c8ea with SMTP id b12-20020a67d38c000000b00349d028c8eamr16162915vsj.6.1654723241803; Wed, 08 Jun 2022 14:20:41 -0700 (PDT) MIME-Version: 1.0 References: <20220603101601.542054-1-krzysztof.kozlowski@linaro.org> <20220603101601.542054-3-krzysztof.kozlowski@linaro.org> In-Reply-To: From: Rob Herring Date: Wed, 8 Jun 2022 15:20:30 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 2/2] dt-bindings: input: gpio-keys: document label and autorepeat properties To: Krzysztof Kozlowski Cc: Dmitry Torokhov , Krzysztof Kozlowski , Linux Input , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Stefan Hansson , Andreas Kemnade Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Sun, Jun 5, 2022 at 9:15 AM Krzysztof Kozlowski wrote: > > On 03/06/2022 18:43, Dmitry Torokhov wrote: > > On Fri, Jun 03, 2022 at 12:16:01PM +0200, Krzysztof Kozlowski wrote: > >> The original text bindings documented "autorepeat" and "label" > >> properties (in the device node, beside the nodes with keys). > >> > >> Signed-off-by: Krzysztof Kozlowski > >> --- > >> Documentation/devicetree/bindings/input/gpio-keys.yaml | 8 ++++++++ > >> 1 file changed, 8 insertions(+) > >> > >> diff --git a/Documentation/devicetree/bindings/input/gpio-keys.yaml b/Documentation/devicetree/bindings/input/gpio-keys.yaml > >> index 49d388dc8d78..b1c910a5e233 100644 > >> --- a/Documentation/devicetree/bindings/input/gpio-keys.yaml > >> +++ b/Documentation/devicetree/bindings/input/gpio-keys.yaml > >> @@ -15,6 +15,14 @@ properties: > >> - gpio-keys > >> - gpio-keys-polled > >> > >> + autorepeat: > >> + type: boolean > >> + description: > >> + Enable operating system (not hardware) key auto repeat feature. > > > > Should we refer to the generic input device property here instead (one > > on described in input.yaml)? > > You mean copy the description from input.yaml or say something like: > "see input.yaml"? No, just: $ref: input.yaml# properties: autorepeat: true And 'poll-interval' needs its definition removed. It's a bit strange for input.yaml to be referenced in both the parent and child nodes, but that's the nature of the input bindings. Maybe input.yaml could be split? Doesn't really look like it to me. The main issue with one file is the users need to list out which properties they use (not a bad thing). Note that this series (patch 1) is going to conflict with what I just sent out[1]. Rob [1] https://lore.kernel.org/all/20220608211207.2058487-1-robh@kernel.org/