Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp893547rwb; Thu, 6 Oct 2022 06:02:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6I0zOzP9yanDNAXHnaswuwYt2poi7U1WAsQxKYtiL8N0iHQaM0TKVdUxqez5fWVPjC3+77 X-Received: by 2002:a05:6a00:1689:b0:557:9105:cf85 with SMTP id k9-20020a056a00168900b005579105cf85mr5040848pfc.55.1665061372006; Thu, 06 Oct 2022 06:02:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665061371; cv=none; d=google.com; s=arc-20160816; b=yb265TJMILfKYN6MrixtCng/6+th034WeOX+Ss8iOnNZ7frv/ymYpRZ/mbkGqxbHb4 3/UmAFgB/kuPV7Qn7/43+bbRhYquzYVcDT8i8YW+gX5jKrkLCNj49eg/2VlhzSwVgOlp bXKdLCuO3grH+xqoFz4gBAwa5GqUUvTQsQihWdSgAeGxbvCe6I1uxqQSYV63hhgkpR4x 95x0RAdb2gXKVQg3mUL82a8JeD01RMhVIfHqWjGrgohRWQQaPUYwN3FtUsiCm6wU329v B2Nj0SzjovIZokg+RipevHxI13bgvITL/vTlVFowylgsgX7R+s15YvGEEAxA0XRx06JC 6a0Q== 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=X0qog3y6/pjQRMdLgI2wTjHB+zwmYy9wpugBMuJA3qs=; b=FrvOrsDmgy9v37imNRRAy/Pz+9++f6cEr352LD+Zt808ZjAoGFl0rvn7BSvuZyM4OP mjs4nRsBI/GKWttZsLbG0sWlaPgQnpSXZTgSZLCqGtsR0dIJLNKpTOA2F3pJ3CsiZKJP whPcxLnT7PbMcNqu/dOJGK8NFpbTw1wFOynga4CZsPKzDduoGYo38hIgbS7tjQME6yri 7gqbfW0aS+BjHFPk7Qo7dRA6gQcSmv3HI419yU0ofbr2tFfXXoNmk8xNtCB2j5gL95BY 5Pjw2WN/Ui0BeXfJqUIEd5IRvKIxVJLVLI9czLUnbFzCSEwFzOd48fGXUnFbgyj1i/2S B2jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ckmbHXLF; 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 19-20020a630113000000b004412c12f712si19312488pgb.507.2022.10.06.06.02.14; Thu, 06 Oct 2022 06:02:51 -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=ckmbHXLF; 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 S231578AbiJFMsL (ORCPT + 99 others); Thu, 6 Oct 2022 08:48:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230456AbiJFMrc (ORCPT ); Thu, 6 Oct 2022 08:47:32 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52F73A286B for ; Thu, 6 Oct 2022 05:47:12 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id j23so1979830lji.8 for ; Thu, 06 Oct 2022 05:47:11 -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=X0qog3y6/pjQRMdLgI2wTjHB+zwmYy9wpugBMuJA3qs=; b=ckmbHXLFJI4cwWenO5NuntW3jM2fKKkk7KB8uy3qSZmUQT/TZiWEzbZ61g23Rbb00+ JJGmY4K/J+GdT/3iahp0AJ9GS7Exh7XPluXfXR7bIULRpop2NhW7KV4NC7Z6Je5yCxsr XZqQFpljOtGWElEfAgvrIoqh+EY7fqYWDPJXp9lGS+rmbQtwBWXZ68oIBmDAGbgGz5RE 9wXzToPcdcqpde12JgyM7ujNdgAFLfygOMMg25Z7axsLf+7A1CbGonhVIWyqQNxF+9H2 6aNvNl37hiYdzWyfHPWDEXjTZxO7qJQYc/XSvrifRLGMtqoJR9BcngbHuh3xCRFHSJdY Po7w== 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=X0qog3y6/pjQRMdLgI2wTjHB+zwmYy9wpugBMuJA3qs=; b=PCnxLqtTFQA1dMln0VRyF7CBjuCWd5QYRbVZW3mEvCoedJH3Q5RegYyVVURuRUoFMk Cz06bWYbee/GyrkbIYsPDm0zG4tTB75vYdnT9S2NreDqJGFWvFNW2EUPlGDge+zoncy/ OPB/Ewn+H1Vsvt2PCChxGbjjs91U93pQAKDZuYUrqVMtVFlptmoclr6l9A67AX/hktwg 9hmQYDdNfB7uzvFe6sFViovGEdubil4arLMZeiIB2o+eA9ocZhNN1U5WwUZ2lA7/PKlc kjfreQuoIoh7cYcAgaeoVR17dW8LmVZrgQJ0ZY6ypAu/NeXtpAB28LV9ZU34WvDAaU5E WIcw== X-Gm-Message-State: ACrzQf22W4RIwFYAAMIEXHZx0bow1pMCH7GP++gfHehkwWuCE1teg3rc UBQBmjilIjGCARZ/4GN1Le+bjg== X-Received: by 2002:a05:651c:897:b0:26a:c213:f0cf with SMTP id d23-20020a05651c089700b0026ac213f0cfmr1759181ljq.216.1665060430100; Thu, 06 Oct 2022 05:47:10 -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 br32-20020a056512402000b00497a3e2a191sm2687659lfb.112.2022.10.06.05.47.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 05:47:09 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , 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 , Rob Herring Subject: [PATCH v4 07/34] dt-bindings: pinctrl: qcom,tlmm-common: add common check for function Date: Thu, 6 Oct 2022 14:46:32 +0200 Message-Id: <20221006124659.217540-8-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221006124659.217540-1-krzysztof.kozlowski@linaro.org> References: <20221006124659.217540-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 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. Add a check for this in common Qualcomm TLMM pin controller schema. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Bjorn Andersson Reviewed-by: Stephan Gerhold Reviewed-by: Rob Herring --- .../bindings/pinctrl/qcom,tlmm-common.yaml | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml index c88c8dcb69d9..e1354f0c64f8 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml @@ -65,10 +65,6 @@ additionalProperties: true $defs: qcom-tlmm-state: - allOf: - - $ref: pincfg-node.yaml# - - $ref: pinmux-node.yaml# - properties: drive-strength: enum: [2, 4, 6, 8, 10, 12, 14, 16] @@ -82,5 +78,21 @@ $defs: output-high: true output-low: true + allOf: + - $ref: pincfg-node.yaml# + - $ref: pinmux-node.yaml# + + - if: + properties: + pins: + items: + pattern: "^gpio" + then: + required: + - function + else: + properties: + function: false + additionalProperties: true ... -- 2.34.1