Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp352279iol; Thu, 9 Jun 2022 05:18:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6HdZ4UErIDCGw9g4a7bdEylg9f9rjpAHwO4+yjCxDKGbetYZyf8F3DWRmepg93X3MEwJf X-Received: by 2002:a17:902:a5c3:b0:168:9ef1:6ed7 with SMTP id t3-20020a170902a5c300b001689ef16ed7mr6162681plq.123.1654777083946; Thu, 09 Jun 2022 05:18:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654777083; cv=none; d=google.com; s=arc-20160816; b=KUQDQMvDy15jhBjSX46yuX+7jU5jO++4+IM0RCOkEbp1rKVA1LsglSFJjmsSiMh/GQ O8JuvV9dbQLyJ90dhCG6jBgmRgI8hgwuJ4w7+galJ9h8M1KhjaJj854lLavHuy3/2RcF BKjJvNcz3RR6VMG++DUsLYJztNmhkMUNUcHzDPg6OreBlP2fkkZNqQWZPSmdAbYLTZqg 30Ffs6KeFndU4s+laAldaD1zP1KKAKUMVxfdRB1OABl06QvtMm7uYIWPXwmHo4MyXXyU MotrtHd0SHIEsIfsH/Pc1fk/akDcomMQVuZKtRWpv4Hicdrk5Te3YO6v2EHceTKqe+aP P7Qw== 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=yoi+zPkWqTTvlN+wO0cy6XLBUH8069tfMWIB3LL7MAs=; b=pbtVam6XDo9xo+NMfjyfWN8T3rsQrXcO+YTxiaYkMZFOaxunQ2Z+0y5YxSMtDIp9xb XY8puNb6Ku0RKfaYYuhLPUFtSahIRiy7XMCErcaQwV2Yi++W6H8QG3Zb5o+84y+7dB3p XREq8i/KAYwvyAy22SeNZbry2+/Z5nVo7+QOgvJB7bCG+3P5q7Ce0PauNSoW2qrk+tPF Rvi/9yQcy3rYHhCYaheE6MJGY22e6X7TzrVte2tmePDTnI6Hlcm9373xGlrGTVZYhPyS r7Hq7bjxHcQnT/+84L1zNfhXlUFHui1DW8JvdsRcgMWLYH1Tr7U9tgmrxw17jW9BCCsc x1Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jiHkLK2k; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 132-20020a62158a000000b0050aba90702dsi29473887pfv.324.2022.06.09.05.17.51; Thu, 09 Jun 2022 05:18:03 -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=@linaro.org header.s=google header.b=jiHkLK2k; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241266AbiFILjV (ORCPT + 99 others); Thu, 9 Jun 2022 07:39:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236946AbiFILjT (ORCPT ); Thu, 9 Jun 2022 07:39:19 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54B6A47054 for ; Thu, 9 Jun 2022 04:39:16 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id o10so30786828edi.1 for ; Thu, 09 Jun 2022 04:39:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yoi+zPkWqTTvlN+wO0cy6XLBUH8069tfMWIB3LL7MAs=; b=jiHkLK2k0V/g9+AU3CbOGfidj6TqBsk4kjV64geDER1L1xv+kpMA6vTWnvPc0C3HcS g8yVvr7jLk/na3LS/SGySvcKJPqXFiUPI7S/5y6LUCElhUncPQWSccSD+hLN4lryu3Mu LUnNeC5yPeRjldMXzw++Sohz1TSconnBpYNnZbZw+aJ18630ydwPup+sBYpkBNTK0I4o ii8PEtXpm02HpG9/z1Hy6kcnwfBJlcGHD0BVITC2VWhn8Jldo5DUSz9jaXiJYFm2wc0i 69jQFNVwsQ+slukxmL3x5og1A9PjRJHXqtXW7THYyyw6Qy17CCsAJE1Ip9zIHNYqyg2Z t9rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yoi+zPkWqTTvlN+wO0cy6XLBUH8069tfMWIB3LL7MAs=; b=S4kiO01j2N7oVYish3iefcXCNeNE9Gib0LCpBCo0L5HQRHKJmyurQ1t9ALO3UztkZt oHjyDhBk824Zo1FeV69/0pBJLYZ64RH/ItrhoOfn/LF6ceFPKM2crxJwPjWIB6Q2RhfN pa5u1sYcqTSQTrSww4NYSXdp/x7JJ8AHdJ5QK5AiyuVFlAluIaOq0T0LydUBKO0VsXIG apYGqtJ3k/NfftDvVw19RZQFBbUYHUZZ4T+g+jzugs4hElgaD80QgyV8cLH1OOqwTxzP TVoUbI61+R1FSEZQPxcEl4MaaEi3kcNUlUPuEHiMzeV1xleykQNXX8N3BmMlx0BS0z1C pysg== X-Gm-Message-State: AOAM531bWwKC+hzQKWuD0KWI0Q8ZUTZp4xnG6NYD87Y2n8mCqtbGyqpN nKELTUTsaRonZJdi73j1vLgDcQ== X-Received: by 2002:a05:6402:3586:b0:42e:2a6a:218b with SMTP id y6-20020a056402358600b0042e2a6a218bmr38718649edc.208.1654774754952; Thu, 09 Jun 2022 04:39:14 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id u14-20020aa7d54e000000b0042e21f8c412sm11898495edr.42.2022.06.09.04.39.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 04:39:14 -0700 (PDT) From: Krzysztof Kozlowski To: Arnd Bergmann , Olof Johansson , arm@kernel.org, soc@kernel.org, Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 02/48] dt-bindings: input: gpio-keys: reference input.yaml and document properties Date: Thu, 9 Jun 2022 13:39:04 +0200 Message-Id: <20220609113911.380368-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220609113721.379932-1-krzysztof.kozlowski@linaro.org> References: <20220609113721.379932-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,URIBL_BLOCKED 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 The original text bindings documented "autorepeat" and "label" properties (in the device node, beside the nodes with keys). DTS use also poll-interval. Reference the input.yaml to get these top-level properties. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/input/gpio-keys.yaml | 32 +++++++++++-------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/input/gpio-keys.yaml b/Documentation/devicetree/bindings/input/gpio-keys.yaml index 27bb5c6ab8d9..e722e681d237 100644 --- a/Documentation/devicetree/bindings/input/gpio-keys.yaml +++ b/Documentation/devicetree/bindings/input/gpio-keys.yaml @@ -15,6 +15,13 @@ properties: - gpio-keys - gpio-keys-polled + autorepeat: true + + label: + description: Name of entire device + + poll-interval: true + patternProperties: "^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switch))$": $ref: input.yaml# @@ -94,19 +101,18 @@ patternProperties: unevaluatedProperties: false -if: - properties: - compatible: - const: gpio-keys-polled -then: - properties: - poll-interval: - description: - Poll interval time in milliseconds - $ref: /schemas/types.yaml#/definitions/uint32 - - required: - - poll-interval +allOf: + - $ref: input.yaml# + - if: + properties: + compatible: + const: gpio-keys-polled + then: + required: + - poll-interval + else: + properties: + poll-interval: false additionalProperties: false -- 2.34.1