Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4080056rwn; Sun, 11 Sep 2022 04:55:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR5hKn33+LoXyu0vWbA+cAxT0yyeVJc/4w3MTr175eQyr+OrUnPikVF4jUM6Oc6bVSQ95Fta X-Received: by 2002:a17:907:a04e:b0:770:79f4:f520 with SMTP id gz14-20020a170907a04e00b0077079f4f520mr15264550ejc.730.1662897344778; Sun, 11 Sep 2022 04:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662897344; cv=none; d=google.com; s=arc-20160816; b=w2KB3S6oySVMJW+ilIlY5155fjHiNwNZWy2Zcn0/fheh7UA8wUnHSKKNJwhvPu64kV TJD41Re+f88JuQIkl6DzhUaBwQP79KeBzgyoQKDzqjx7F4QZwppqyAK0m6tJ+1op2cQ8 dEY0FqQ07sPZ7xqACNDp8qUv1v5+aE4maNhflPXRAZTVCSKfs+OjsWBgNUUFyAHhP60J /raJpNsVgVyg2TED4MI8gW35GnzHOfUTQySFzAFbEBQmE2fBkVaOigvUdpgNvOQbS4HA 9/24om4njFkdHq1hxs/1M+krO/QT8Qu9ILziRsHGh06+6GJdoUhBdxGPB0WHD2O/MwQl KvIg== 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=ozqjcsR32neOzHv2L/2DOKBG63rqHKYUg3f24PJLOOc=; b=cZbUAVAFfPHjZ348N+tRBuv1AbzPViItS2T2rLvFKx+gvL/J0K2EYiAAN7MHijrvE3 5/ScqyfTJZr05qA5cj8YupZBrnlWEKwPC9sXQ5O76aagpnwGZPNR5i1mcxRjxywtNdtV 7MyG4ZU0A1pUIs2mTLgbNVtffluMM1LmJtgAMP+kUK0bl/JRzetu9W9rF5xWaz52tC8/ +iJKouXYVOxHF1QBB5n7a/cmihPAQe0de4ab3GuY+6CkELYsdYsIogqn6HFB9qZw8FG2 U+hkJ/LrMR1/GnEczyHcfW3LwuaZoJMwPOkKJwq2w+k/rbC9txhpB8YMJ1fom3RJAo3D aAKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GK88lwec; 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 eb8-20020a0564020d0800b00450fd95d41esi4132352edb.341.2022.09.11.04.55.19; Sun, 11 Sep 2022 04:55:44 -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=GK88lwec; 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 S230447AbiIKLNf (ORCPT + 99 others); Sun, 11 Sep 2022 07:13:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230359AbiIKLND (ORCPT ); Sun, 11 Sep 2022 07:13:03 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DACB3335F for ; Sun, 11 Sep 2022 04:12:20 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id r12so5839444ljg.10 for ; Sun, 11 Sep 2022 04:12:19 -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=ozqjcsR32neOzHv2L/2DOKBG63rqHKYUg3f24PJLOOc=; b=GK88lwecgkTizgJh3GKvFnjgNw7U1/lM6XE8hqiam83MYylcrebe/xhqceJed3AKY1 HNTcCNyLrXxIZx3Z7u5nBapp2paLpQLvThc/f5FPXggAEp1yERCAgmoEelbAn1sMqFkn lKHHUaR6dPZR5QiQwJ/rQ6MIbG4v7tEQpCUQO+1/SxigjE+WqWYLpVJCIEb5J2ipwMmI 8l4Z6dAtkFmY2XUtjY33A/5mz6e8fUQrx3+ozGCy8nIqa7mpou5VKBE96/SZqr6MaZCy mjNMtHyjWCJ/2mnmy6bNbEVbUyleC0Qd4xHO7Aqcbd3ywVArgat36FepOkOhMRX9LvSv ALJA== 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=ozqjcsR32neOzHv2L/2DOKBG63rqHKYUg3f24PJLOOc=; b=uJJQ/uFGuq4cwmlovSR0/HGexwfVuXG2MC0WwScPZA2SCrOOSJzKXg9uv/XxVeOkj7 8cYJ5z9vbgxaNR2lnt9DqafCYoHxL2pW5JJx+DiHxJCrameXUHiSCBKSoYVcCTwDL5aH 1KaZYEH76V45kUXsWPfPJX7cZM+YQX6wtACCkvDCY5Pl/uG2zzeEuKOvhU642p6ngjGx 8CHV24XBqUTWgR1oASYxps4uNLOnvU+E0mOLe+iXUXePTlXozvKhncCy0fqsdQOM3zYa yPrWhFKTJBhYqaQKWBMaza3wkGoXEafHPC4/ug4hlrByuRDMgFRkrdWZA4ibc5r1i0IY LA8Q== X-Gm-Message-State: ACgBeo3kaxinGZ0If40g+nxGanB2+qFupuSgGk3ZkAzklNHvbINf577y IZMamQG3u50T4LjMSDpNjvvjkTZhSv2wWw== X-Received: by 2002:a2e:9e48:0:b0:261:c713:37dd with SMTP id g8-20020a2e9e48000000b00261c71337ddmr6126947ljk.385.1662894738003; Sun, 11 Sep 2022 04:12:18 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 04:12:17 -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 11/40] dt-bindings: pinctrl: qcom,sm6375-pinctrl: do not require function on non-GPIOs Date: Sun, 11 Sep 2022 13:11:31 +0200 Message-Id: <20220911111200.199182-12-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,sm6375-tlmm.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm6375-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm6375-tlmm.yaml index 50f0ca5ab7e7..dbd91d6b63b3 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sm6375-tlmm.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm6375-tlmm.yaml @@ -54,7 +54,6 @@ $defs: 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: @@ -120,7 +119,16 @@ $defs: 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-4][0-9]|15[0-6])$" + then: + required: + - function additionalProperties: false -- 2.34.1