Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4060440rwn; Sun, 11 Sep 2022 04:26:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Ex2D3bx4i/fzyhH3FYXXTpwwKQBg+7NydgYYiBRXk74WrkKc5oI4b64wauN9qYvOwucHQ X-Received: by 2002:a17:906:db03:b0:741:337e:3600 with SMTP id xj3-20020a170906db0300b00741337e3600mr15837710ejb.343.1662895600984; Sun, 11 Sep 2022 04:26:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662895600; cv=none; d=google.com; s=arc-20160816; b=q1yikoknzn0uhsL3xXTkbqaL8gqVNewSNyDTn0oaI289nhH36X89BhJuHKOBBHynIj keqzwjjtbY/U1guoExb700dXiWsJ08K9QBGH4rN+znYPd6jtvz3g9iu1zk1U5wGc9uBZ IjmJb5l19zBLx3Rxt+f8HnPKtiXHLw1yVLraQiaZxZh1rY86Xg8UadjvR/c3peIf4uOP bkg4rwKWCxO/njdPbdYKsPnjyxSF+y0DGqsuy2I+WdVXPBgKK/gqeHobyWQjpG7Cv6Al v2KvEwdH3lH85hzPOrbkClP1WqxMZoS/aILVtUnS3VNlZBbgIMc1kMFWxvAoTu96p17K 6KWQ== 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=huMBt2cOX5WYiW0m7Bpoars+zfOhAPbHFngq8gou9wo=; b=J9JH9pqIMyFLba8M1gYqrO+WCsaeG+nfrKawYJitekcI8DearpgTbq28ZT4HFAHOWp 9ZhxPW+DshYsZtJIYlxLN1uADOTrg7yk/bk/K5lb2RBbYK83fHc13eymU2oDY9hvxRHj Pou7/gfV7D3bxjMCuEW3tp39Q5qYkby/9nd+d+KDm0VF8OnHU9FyNs3wnRW3Ey1R1sVC uyxE9g3LSxLxxb6/ZzF47wCbJAG8z6cK39tZIAnNmAUcAgxqs7TIJDdUYAV6s6mLjqie VmSoCiADBrqV4ThzPOSXgagzlHNM9elnUGFC8El+v2GCCLBcVV5VNlBXoJe/xzQr09QU ix7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gjjFGcTz; 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 b26-20020aa7dc1a000000b0044e73852b6asi4629788edu.133.2022.09.11.04.26.16; Sun, 11 Sep 2022 04:26:40 -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=gjjFGcTz; 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 S230408AbiIKLNN (ORCPT + 99 others); Sun, 11 Sep 2022 07:13:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230401AbiIKLMw (ORCPT ); Sun, 11 Sep 2022 07:12:52 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A15F133420 for ; Sun, 11 Sep 2022 04:12:21 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id bt10so10405075lfb.1 for ; Sun, 11 Sep 2022 04:12:21 -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=huMBt2cOX5WYiW0m7Bpoars+zfOhAPbHFngq8gou9wo=; b=gjjFGcTzNIJEpTozDwXlCSQu9pxjor0DOliAlVN4b3xO3s+BMl9gcVSKWAmyPezafe stShxSixpggf+L5Ut3/uAnnWPvHw2CVeUTtPWQC2lEhfZAZEj9+AZA0Oj0M7W2SxAaRN gwffL4xCb6oQI/13wC5i5HtgY3xpVlo5iWdlMxpOt9ajb2Np/fzwUBemzBo76Xjpm+3e FHMzR1Gwu/tywUBKZqePd3b/Ak+TBkAEXrsh3A4N72e7HdMEPX3zFjV2djtdKDrHScuP nKKBGJn/bWpLcj/A7qXa5ehbHCQOYvUtiaMyYhzISPh281JdnJ7TLUvJNXfkBDsiIuRH hAAQ== 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=huMBt2cOX5WYiW0m7Bpoars+zfOhAPbHFngq8gou9wo=; b=ap0ldE9JKJwLu9a7eRd0ItDSY/+mwD9tOrT8EOqL358y+6STGKfq/3AluTsbSbwc9x xx6QlZYKTj4B765qmk7nJ/+sk7eK3ZUDEWWIBXRerYLqU4CPwbE3X2fBA6+wWi15UdF8 sxp5Wkrd2WRHMcEy3h5HQ/Fe701otgyZLmvSKH1ZuwCKrFSI0UBXZTiuW0GvO0kaxUds i/Wgfmn/TlHtpAuQIPaPZ9ZRy8W6BIsNZu7dxogMJx//irhy8mUR5rgDG40uvMtkOguU OLgvbZ8jKDYwQ4Mgu3bFjgfu1wAjdEWuxDV1sCSXjwZf3xotAYT1Fj7EW/JKOj8+Mf8b BY1g== X-Gm-Message-State: ACgBeo2b3p/l3qJQNKuNarQzW5atPRJ1KRfUsY812M0ozYH/dQ0g4SqX OLTkFVpDVjBOXTjIsaibnIUuOA== X-Received: by 2002:a05:6512:3403:b0:48c:9727:50b0 with SMTP id i3-20020a056512340300b0048c972750b0mr6898768lfr.309.1662894740977; Sun, 11 Sep 2022 04:12:20 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 04:12:20 -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 13/40] dt-bindings: pinctrl: qcom,sm8250-pinctrl: do not require function on non-GPIOs Date: Sun, 11 Sep 2022 13:11:33 +0200 Message-Id: <20220911111200.199182-14-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,sm8250-pinctrl.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml index 15bb1018cf21..12bdc2e67c4d 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml @@ -110,7 +110,15 @@ patternProperties: required: - pins - - function + + allOf: + - if: + properties: + pins: + pattern: "^gpio([0-9]|[1-9][0-9]|1[0-7][0-9])$" + then: + required: + - function additionalProperties: false -- 2.34.1