From patchwork Mon Mar 28 19:11:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 554908 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E17B8C433EF for ; Mon, 28 Mar 2022 19:12:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245504AbiC1TNq (ORCPT ); Mon, 28 Mar 2022 15:13:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245492AbiC1TNm (ORCPT ); Mon, 28 Mar 2022 15:13:42 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68F0866C83 for ; Mon, 28 Mar 2022 12:12:00 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id dr20so30660721ejc.6 for ; Mon, 28 Mar 2022 12:12:00 -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:mime-version :content-transfer-encoding; bh=jG3Rt4P3Raf9WSo1WvvLrHkpUajHf7ot05DbpWV2Eb0=; b=PZXl6pFWIqhq+IGkvc2dvo1z28ViM0/IcQ4ra0LmbQRG+i3q7bJIKzhEv80XtXXLUZ waKmqllEWW4P/SrOXG8yhqE5IICerx62efk1JSCHfpiKs9M0/QM9dNIClCclyNZJanlN TZxflkCPUVClCsVlNjmTsqPXnB2f4kUt2KCVXGToBybPB04HISvbSsq+UPvv+XpZkzbO whfwwhTEOqTOQebiJmWZWGOeOHWu734U2dHqQHsqubey4vfizUddn+ynpeCpeEn24N5b B27SV1lynfnOmxFHMiqlmSB0bG9iX3Xx3lZ0RiEhINPXLJ8cfTZsoWfnosBwhV0fNVit VWQw== 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:mime-version :content-transfer-encoding; bh=jG3Rt4P3Raf9WSo1WvvLrHkpUajHf7ot05DbpWV2Eb0=; b=2m/zbOXnoyncTWmZRRUmDLQvv5DzE3ACG68ryk1Rr6uT0S2JyQ0WJwjvmkk/MGy/GW Mxw/D0QG3pjAEfu11coYvjTMJq7JerlEXnbIpGmOvvrXtLZK7ctv9NNhS91rj3vss822 9oepP/piGvRvU5o0Of8bj4Qj9MY362c1U3fhEAPfhPejmZwJygdMs0UTVm0sQDQ3OsgM T2It60Dj1/xaCCPbRhytPARISmJFsFuZXEOPQmDwkdPjyQ8cvdKX+07YZlgXecmhYVXI Phph08AfjUyca2E1DN8mxS4mRQ9usK7sqENUGvyeqSJlu+CboVlYd7CbQdc3aVX4WeYT t7Hw== X-Gm-Message-State: AOAM533h9l8kAn/SzyNZbLB5KCGheJB4FvnHUPrkApUYfmiItDVFmY7V jZPbuFkXJ2PnSf3pTHOhu6kL0g== X-Google-Smtp-Source: ABdhPJwFwLiR9+MtMZeMy5VDtsZaqzeSjHEJIe4h1TwW5hRcMHYc4oopQ5oF00JoT/EEnuMkQdrKVg== X-Received: by 2002:a17:907:60d6:b0:6df:a099:e26e with SMTP id hv22-20020a17090760d600b006dfa099e26emr29699586ejc.34.1648494718902; Mon, 28 Mar 2022 12:11:58 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id gn3-20020a1709070d0300b006e1036666bfsm2166989ejc.223.2022.03.28.12.11.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 12:11:58 -0700 (PDT) From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Keerthy , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] dt-bindings: gpio: davinci: list contents of GPIO hogs Date: Mon, 28 Mar 2022 21:11:53 +0200 Message-Id: <20220328191153.171241-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The hogs children should list allowed properties, otherwise any property would be accepted. Simplify also GPIO hog node name pattern. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/gpio/gpio-davinci.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio-davinci.yaml b/Documentation/devicetree/bindings/gpio/gpio-davinci.yaml index f32e09ef937c..e5b91c65dcb0 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-davinci.yaml +++ b/Documentation/devicetree/bindings/gpio/gpio-davinci.yaml @@ -76,12 +76,21 @@ properties: const: 2 patternProperties: - "^(.+-hog(-[0-9]+)?)$": + "^.+-hog(-[0-9]+)?$": type: object + properties: + gpio-hog: true + gpios: true + input: true + output-high: true + output-low: true + line-name: true required: - gpio-hog + additionalProperties: false + required: - compatible - reg