From patchwork Sat Sep 24 08:04:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 608931 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 3847AC07E9D for ; Sat, 24 Sep 2022 08:08:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233742AbiIXIIL (ORCPT ); Sat, 24 Sep 2022 04:08:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233815AbiIXIHM (ORCPT ); Sat, 24 Sep 2022 04:07:12 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3F6114F8CE for ; Sat, 24 Sep 2022 01:05:47 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id x29so2337152ljq.2 for ; Sat, 24 Sep 2022 01:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=HNwxWQOq48N1VUFnvQ2D5d/loFw4gC2TJinoSqyo+l8=; b=BiVzSgMFabdIamj0lCD/Het6ygXdhSXgsoFt9JwIJrvxpsOyaJniaB7g4RlJIc8Agc CvcoxUVOt9bVH4JhMYuW65fo3vjZEkM9i94vZ2Ci2oYOS3FAX0o/Oqpo9lNhoCo3ylzg gKqGgEeJcDn3lhk6gZ0E6Qb5+Ei69O7/URA38uxk1PSZMfRmo6Rctm62OfyOL3+dQIEM b46XV6hqTVMQ+Fqcztvi+MxaPcp9Yf4kJUGhct5mAhTgi34F2kNXeeVnCp5j/QrSdhl1 TwyQpBeObzLfov3diQMO5vddlS+Z0DOT7mU3ijAO4yfJ5kxXqBo1w2L0FeQwfNpq8ltb SQqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=HNwxWQOq48N1VUFnvQ2D5d/loFw4gC2TJinoSqyo+l8=; b=kzLx/926bmXmaHolkk13aObEB7UvkrD9ZcTqamIJpJDs+MlSeNauVfu9AMdpFJ5EwF PJbW2PVmrICWyfVy339wVlccd6MC3/bWIuse6x2HRS7h914xM0soDSAcQinaI6+RpWg0 b9UIt32Qtw6fOE6hs0EpYGE4LpDBi171UtVi1YWPAaQcAaDYSBzwiaQX59I+RSG3VEQ8 w6V8FO/y7YM6Q/dldjJnHndQoPr4ZSxjygM4TgIeIXtHRiBeqwMRTqZpbjCNGnq5DeGk ZIY+6IXA9D3NBh2h6FYGSmvNPMxJJtWZl0OmNurNPElXK/s1oilYVHlwxHjjt83iXoCX 6ZeA== X-Gm-Message-State: ACrzQf0hH6DUZ5HOhNu4WBaWhwgbARDZkxA8NKxKQhAUn1XOSiBXasXw a8d5DdJpbjgauhuIl10Z1QguIA== X-Google-Smtp-Source: AMsMyM6GwrYhOjw4DiSyDWrcY3mKxoP5UbseKfXQTYb8bBXaTxmPBodlXStoAJewcXc71Aquw2FImA== X-Received: by 2002:a2e:958f:0:b0:26c:fd2:80b4 with SMTP id w15-20020a2e958f000000b0026c0fd280b4mr3890692ljh.147.1664006746974; Sat, 24 Sep 2022 01:05:46 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id y2-20020a2e5442000000b0026c41574790sm1696668ljd.30.2022.09.24.01.05.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Sep 2022 01:05:46 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Sricharan R , Stephan Gerhold , Shawn Guo , Vinod Koul , krishna Lanka , Sivaprakash Murugesan , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 30/32] dt-bindings: pinctrl: qcom,sdx65: do not require function on non-GPIOs Date: Sat, 24 Sep 2022 10:04:57 +0200 Message-Id: <20220924080459.13084-31-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220924080459.13084-1-krzysztof.kozlowski@linaro.org> References: <20220924080459.13084-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Certain pins, like SDcard related, do not have functions and such should not be required. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../bindings/pinctrl/qcom,sdx65-pinctrl.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sdx65-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sdx65-pinctrl.yaml index 0f796f1f0104..a45dc81cfb98 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sdx65-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sdx65-pinctrl.yaml @@ -59,7 +59,6 @@ patternProperties: description: Pinctrl node's client devices use subnodes for desired pin configuration. Client device subnodes use below standard properties. - $ref: "qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state" properties: pins: @@ -142,7 +141,16 @@ patternProperties: required: - pins - - function + + allOf: + - $ref: "qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state" + - if: + properties: + pins: + pattern: "^gpio([0-9]|[1-9][0-9]|10[0-7])$" + then: + required: + - function additionalProperties: false