Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4058939rwn; Sun, 11 Sep 2022 04:24:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR58ByQYvZTtFcC0rGIP7YERuUhKef6y7meA9vXcHMLDgyVazeFfhj87JzQVq69x538ZJYA9 X-Received: by 2002:a50:fc93:0:b0:44d:c809:8158 with SMTP id f19-20020a50fc93000000b0044dc8098158mr18974894edq.365.1662895458238; Sun, 11 Sep 2022 04:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662895458; cv=none; d=google.com; s=arc-20160816; b=ManX1NcQnUqvVJAI7tIwOCueNJM+J8ujevdXY327mnDyykP6B5/WVoMXqYIBknS15n VSsF3WiL38M4xN3X8JF86gwBCuxPqUCZz4f7kpc6K40sF3oJx6TK6mwxVGoffJvDqAc/ 6ZMKAbW8NjWAHr+jbte8Bxi2bhktFOP8Xa3z/b+N7GH8QB1nB2dP7EXr54Pn6tmAvzuu ckj5TTvkIhQF2zScYaU/wVzR6FYm0L6gNmppyazTjycaJgDtgb2x+smKh3nKB0vHIim5 VF/xYLC5d7xdz1eM+y5ZyExCjZHbr6s1VOw3cnlmRaEXFXZGKV7bkEF3hoPhlQQ1IS/j GrAQ== 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=Z/95Brm84Hs/a3P501KqW9gtmX0Qfi6hmXE/MDLL0vI=; b=hxp1JHsyhZ58DKaas/4A9Tu4kmefjaCVtem0Wsp3ixGzexcun8tmj4wJaM5hyYFhXb lXluTi/Ao1etcIOsmHBpA9QLU96P00+Vp+rMyHTevv4GAzEaiQ9ixEJSkol1DB8IUm97 GeitvFcb6Q4YCULg9D2+24Cb/sWvq1AvOF+LZC7bYAAWZ3Pw9PTafgrkTOpwUAbE0uXh JQXpKGFb46dyhb0gXg/Ez1YfDUJnWQ7s/tbch4bU2IORCKMKYsAePQL3PMg+ikRz2+g0 QdCOVXT54Huy0P24JxYYeenZQ95wmGLvXXJmRLj7YbYm5K3T/DZr7WRrJQ+9HqpvVmTs cQEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AcIh6NSS; 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 w21-20020aa7d295000000b0044e7ec802f4si4118626edq.381.2022.09.11.04.23.50; Sun, 11 Sep 2022 04:24: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; dkim=pass header.i=@linaro.org header.s=google header.b=AcIh6NSS; 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 S231145AbiIKLO2 (ORCPT + 99 others); Sun, 11 Sep 2022 07:14:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230431AbiIKLNY (ORCPT ); Sun, 11 Sep 2022 07:13:24 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E94DB3CBD4 for ; Sun, 11 Sep 2022 04:12:42 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id bq23so10362973lfb.7 for ; Sun, 11 Sep 2022 04:12:42 -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=Z/95Brm84Hs/a3P501KqW9gtmX0Qfi6hmXE/MDLL0vI=; b=AcIh6NSSNJ/VA5Tz1zWjElrJZBfojwpeWF8hLMoTQh9+nsXu8edbrEGZPXd8IUwADp CD+zaRzDmFIW05Q1715P3cHv+8s53yPUYaalUc8O6joV3HE/refgbKQwg3rwZ328K5LW YM9leS3TfwC/sCNfjbiYko0tYqOa1f2TqOFi/Fn/EOSTdbxLFp25mBL8fSeta99ITaNd JZzlHzSi4ahtNKGOARCwOHitYk/oC3F/C4Gch21FD3U0b2o2ixnhKaWYTowdhcecaqpl AeZLDoGGXqKF4vcmCsR8XAjVpfslATC5l4hlOS/olziY7lIim9fujf6jlhhXTi6iML1Q uBkg== 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=Z/95Brm84Hs/a3P501KqW9gtmX0Qfi6hmXE/MDLL0vI=; b=l4P3SmrE60gHB0K3h0Ji+FKX9lgkVKkFSh3gQmNy0KdD669YN7FvRSKlrhDNlLbvY8 7xAKra5OClOAcRshD+M4sgzMQsv2x6aNGc1x6qRTLVJGg80s67OMJ8jpRMOthUxQWQS/ rfjBPKG71ognQhAy4dtirGNQlOjXimqT8drYU52InHWLebUiFjeG0O+z4b6fw3bp95Wr YUxYbRWgjRUC54f/+29KpH+ZDIWgp+BUDJeYhu4WOTTMYDnfXYlHJMwenHP1PSaBGOCI DGlLOX/QzLyfV/i9D8TONRSMLFGFvlgTPGR9MFqHs+M3xCd7p85EmnzjCQEY+SYJmuId +C1g== X-Gm-Message-State: ACgBeo3brpYfj/ditAGre2UlI/+bKlg7Sahl+/tpjuoZaoIvDQ8Wf9fl YMrbfTXgMywFfTEit14YGtJI2A== X-Received: by 2002:a05:6512:33c8:b0:48a:fe63:e4ea with SMTP id d8-20020a05651233c800b0048afe63e4eamr6915390lfg.415.1662894761803; Sun, 11 Sep 2022 04:12:41 -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 11-20020a05651c128b00b0025dfd8c9287sm607365ljc.69.2022.09.11.04.12.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 04:12:41 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Rajendra Nayak , Iskren Chernev , Martin Botka , Vinod Koul , 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 29/40] dt-bindings: pinctrl: qcom,sc8180x-pinctrl: do not require function on non-GPIOs Date: Sun, 11 Sep 2022 13:11:49 +0200 Message-Id: <20220911111200.199182-30-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220911111200.199182-1-krzysztof.kozlowski@linaro.org> References: <20220911111200.199182-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 autolearn=unavailable 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 Certain pins, like SDcard related, do not have functions and such should not be required: sdc1-clk-pins: 'function' is a required property Signed-off-by: Krzysztof Kozlowski --- Another question is whether 'function' should be disallowed for such pins? --- .../bindings/pinctrl/qcom,sc8180x-pinctrl.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sc8180x-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sc8180x-pinctrl.yaml index 646fabdf81f7..4afe20bac87c 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sc8180x-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sc8180x-pinctrl.yaml @@ -61,7 +61,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: @@ -112,7 +111,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]|1[0-8][0-9])$" + then: + required: + - function additionalProperties: false -- 2.34.1