Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4061263rwn; Sun, 11 Sep 2022 04:28:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR4xPoOEZj4D4CYMo1Yba4xhkpotCOKMhJYBfu+2vQRd34auKzpkOsSoPdheebdPxhNxxN7q X-Received: by 2002:a17:907:8a0b:b0:77a:be0e:f19c with SMTP id sc11-20020a1709078a0b00b0077abe0ef19cmr5661184ejc.397.1662895684342; Sun, 11 Sep 2022 04:28:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662895684; cv=none; d=google.com; s=arc-20160816; b=o0emGEkzUfl7nZiYRxO6Ti1fsZZaf0JG9bd32m0H8Anegj3+sVpF09FB+kBzVPqVBw jKIWn/IfYgowdzNYdCvqvpUdDP99SGc1waqGCO7asWPXWJsEUACCTaLeovAUHa7ta6jS ib26Wsjo8DhE053wVblYNRspRs61uWPbRqf0lZivysCcqZlxeR2xcQyL4YVwm2S8w8PP dtDRxeSbEWzf1ER1AZmy3MFhu5LRRqUZOfXsDCLx3d7KGCG4Pknl/x8yPdWUfGDVMtPI zbAUBQK6VpaVd5WslvhCmtUoa8nupMl6FP9zZwPO74/mpRkCwFVgAUqZP8Xt+acGAGju mMIA== 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=BZ9D0FRQE2grk03g+mdXjEXzyihdHpyqrjbkROOcsv4=; b=W+DrSX8GLTcQfWxEYCt7Am1LiaXRx32GMrU/dgzBLizK5IKyw84XtHf5tBdONPDXJj 6gIA1GfyeXMDDshjbZICw+AAIns85LSTJWqSBi9nCB695HcicGaSu4kxKUrZedOKEggI Q0GfkSXwtvhGbO25OTFLOFhkX0bBGpc4n14kT+dLFmZeGADEkiROv6/JpIHjNlGLXPkr rYjrnF1OE/yi59hSqaJ7NLDKyUJV1F8ezmbSr/yR9P3zDX12kRdgCix/bV2S+vlv4C7X XfDqqq8UEEnpzu307qx0XexEpnkSFKDPdUamGXD+kl+F7GNsQG7pV08ifPJu8YFqkTwV j80Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Uq+Waa+M; 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 w6-20020a056402128600b00447e34491basi4504538edv.429.2022.09.11.04.27.38; Sun, 11 Sep 2022 04:28:04 -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=Uq+Waa+M; 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 S230490AbiIKLNR (ORCPT + 99 others); Sun, 11 Sep 2022 07:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230409AbiIKLNA (ORCPT ); Sun, 11 Sep 2022 07:13:00 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3A4333E34 for ; Sun, 11 Sep 2022 04:12:27 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id k10so10370083lfm.4 for ; Sun, 11 Sep 2022 04:12:27 -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=BZ9D0FRQE2grk03g+mdXjEXzyihdHpyqrjbkROOcsv4=; b=Uq+Waa+MOIP9pYf+FiYpnLRgnmgR/SfA/kJzGTRDaGZVDZUjhCBA94ITxnluyrTt4U JjIZGF2eBuwfGJeS3BeYTXDcio+S75AmvGwQjxEiTrfvflvygITINWCBp7lNp3a5Llla TbfgQvMRX63u6qitw8QQZWT5fr/73f9YCKD5kTUgKdHK4AULMLrG8B6XKwWo3ii7m+yx QhOV7EDmjfAPBbXwB58zr8YEWUzTvHSOf5MsA1X6m1Ij90yuNCF4BaPkC7LmIuUxiplm dakJKP1fbaM/U1G7k90vJfm4GviIMO1HxvacqSKc1gn0mJycv3PvMXVAWBEjPZr87+zw CP8g== 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=BZ9D0FRQE2grk03g+mdXjEXzyihdHpyqrjbkROOcsv4=; b=AOeGZpoH3EfBbppzIDO6amfWS58xjQFbdjC/0e6DJP7PLQ1ynnm5u+21M7SW0uvhEe 373y9Au9XhVAXpMy8kwEEuWNSn3P/G9OSPoxVXEorTfKifjaBT140LdhMcUUDmoNK4Lb v9A06SWuJ0F3vgj46y3iF58v0IN1grJ6vJq/GsuegVMB7jEIr8U1Fqkdcss3k2N5qgRR HG/W1s3BGydX+NFDhrOjgmaE/p0hKWwa0inj3a5CceqTdIypqGcXswkt/bFxMabsjJOI TJfsCEm1usqFpIrZTPqrOumbWbRq85v36NjeDNF7Jm0StcWckHB8FAR4HATaRwaEPFHu bKIw== X-Gm-Message-State: ACgBeo0gZ0Q6UimzrYE9oZ57XnbvC+sfkX6Y929O/yAuhisDvcHZ4WxK u0mxTfRGg2rWHYBoFA9oKYakaw== X-Received: by 2002:a05:6512:31c4:b0:49a:a463:51ab with SMTP id j4-20020a05651231c400b0049aa46351abmr394253lfe.12.1662894747400; Sun, 11 Sep 2022 04:12:27 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 04:12:26 -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 18/40] dt-bindings: pinctrl: qcom,sm8350-pinctrl: do not require function on non-GPIOs Date: Sun, 11 Sep 2022 13:11:38 +0200 Message-Id: <20220911111200.199182-19-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=ham 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,sm8350-pinctrl.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-pinctrl.yaml index f3106d25adcf..6ae5571f60da 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-pinctrl.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: @@ -108,7 +107,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-9][0-9]|20[0-3])$" + then: + required: + - function additionalProperties: false -- 2.34.1