Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4847089rwn; Sun, 11 Sep 2022 23:19:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR5wvJl0/vYycLWvI8oNNkY/w9SPUYfxWHl3DpYv+l/Kuf/Vsk+u9fCd7qFMi/88LGkHLR5L X-Received: by 2002:a63:e25:0:b0:41c:30f7:c39c with SMTP id d37-20020a630e25000000b0041c30f7c39cmr21911521pgl.147.1662963587615; Sun, 11 Sep 2022 23:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662963587; cv=none; d=google.com; s=arc-20160816; b=dEbDGQPwnL6zDBHIPyvBlHqdpJl6sogWPhyd9lp18iPQQyZ23O0BoFCLTN+npfjSLC J+z8RFU11MasBSOVv/BEAK6/mnAZQHEG1T02gApoabrCAzlg/nHIk52MiasvfPIiSpwT qmPO91c3ObTcizbgStW1/w3Lf/O98Y1ytqvzdWNurlf1zEg54v+awuLv6fADPLLzRItX 7kIpGutlxbjBdjYATk6qDan6hPQXJQaE+9kV6lHCValN0CfKn78WYXZfZBHpv1nn8OOG xrkv/Vd//zTb1OwjS3dTJDf5Bbd8UOsKZvmeIpau4On4Gl99t3NXNq8x29RP1z7/pq0+ GGig== 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=u03qsv1ayfTU6Jx4uWdo7qxMiGgjgckKImKOyJnLF5w=; b=i6aAE5r03VhMpmYBSQWmdFyDlR5aUrRmolsHc5BL3z1/QxF1TbcjxdgNQdoXiuv1C/ oZP8i53OwAq+oauLDweqqaA3FomRKcLcBHXdogan2avWlv3is3gLbo9UGkT1oKsZPsGB +KTGEcxykmRj6mNAz9BSKrPJi1BZXHJuHEG4admqjfCmKaX5Wx+o1+T+Kpf4AVrnEUVN 61eWEIuFVAHsbYIf6v8R4kzor1dKkLfjqN6g7xHrPrhAZQCzu61iFBB5t+XR2pIBYM5G NNtyt2k+Hq3OVyAehd39MdRPb4lNmpuQiHeCMqLg1tedKbE1XJnT+H9huzK+RYn9agLx cUNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a5qFYMQo; 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 lk16-20020a17090b33d000b00202be5416b1si5519471pjb.109.2022.09.11.23.19.36; Sun, 11 Sep 2022 23:19:47 -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=a5qFYMQo; 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 S229911AbiILGSo (ORCPT + 99 others); Mon, 12 Sep 2022 02:18:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbiILGST (ORCPT ); Mon, 12 Sep 2022 02:18:19 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71FC828E3A for ; Sun, 11 Sep 2022 23:18:05 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id z25so13181946lfr.2 for ; Sun, 11 Sep 2022 23:18:05 -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=u03qsv1ayfTU6Jx4uWdo7qxMiGgjgckKImKOyJnLF5w=; b=a5qFYMQoEm1+4yxovQ3Ef2O3ttvBtdH7U35anDVIDhwwF3yBcFOQRM5LKQrrNPePsF 8PxmivF0jtVa9KJghmdDhWsQ8cvJJvP7ILP+eJGQU1U4bWzCQW5so4ZJP2Z1Ndv3uGM3 0nZT2DY3G0VxfQeLEInmx1sN35jA8rLWDgnyng58y92crc0H1hdwWUjRNO4TmenMReAN pizRxzbEwBkf0/B3twPCX8Y+SAZlhc+wEgbb2Ev00YEx7cswtb2JJKaMDqWA/5EShrZw f/8FV5aASHlNPV9gT+ywkmfiPZ+TzLxygAZFRmDCT2HmFo+9KPfLzP/QCtM/g9Csj/J4 AQ9w== 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=u03qsv1ayfTU6Jx4uWdo7qxMiGgjgckKImKOyJnLF5w=; b=w4IqBN88tGGxuPVduZ8j47Wi9q6u3I6aAiRM/0BJ9Fss03GOCdLWaunffVvscxduOM wnb8koDxC2XYbI9sYeDkjEiK9k1AvSGH11vEyvs49rkQFNQkgOBYQyLFsx/fJ7c1m2Xs QXwiQDFaemEtdeRgmf9CDY/TRpC4Fu/5zQtxn4xYIwoA1HrnYPmyv4UOMBlzCKutgjwf thrl3dvkmIYVpj2Z9VvQJQVnXba9ryCTVXraOP1+meqwmuL7arEa8diGdu4YPceyzSCj mitffvT1LMfP9bdAcMpMScInzcGJqtd5o5egcW9gc2olpAIygKmxXUoBnpXw7MUNLza6 atDw== X-Gm-Message-State: ACgBeo3I3ZeHNH5crOiRekYSCa4JOtU+u4UcqH7MxHwNKZOToB9y55rd 9mBUK8ICb0qije0028Kk/rUMog== X-Received: by 2002:a05:6512:3ca2:b0:497:9db7:ec10 with SMTP id h34-20020a0565123ca200b004979db7ec10mr9150052lfv.350.1662963483323; Sun, 11 Sep 2022 23:18:03 -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 t19-20020ac24c13000000b004996fbfd75esm876805lfq.71.2022.09.11.23.18.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 23:18:02 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , 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 v2 07/40] dt-bindings: pinctrl: qcom,sm6350-pinctrl: fix matching pin config Date: Mon, 12 Sep 2022 08:17:13 +0200 Message-Id: <20220912061746.6311-8-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220912061746.6311-1-krzysztof.kozlowski@linaro.org> References: <20220912061746.6311-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 Matching PMIC GPIOs config nodes within a '-state' node by '.*' pattern does not work as expected because of linux,phandle in the DTB: 'pins' is a required property 'function' is a required property 'rx', 'tx' do not match any of the regexes: 'pinctrl-[0-9]+' [[59]] is not of type 'object' Make the schema stricter and expect such nodes to be followed with a '-pins' suffix. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/pinctrl/qcom,sm6350-pinctrl.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm6350-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm6350-pinctrl.yaml index 898608671c4b..85a4ff5a5625 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sm6350-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm6350-pinctrl.yaml @@ -44,8 +44,9 @@ patternProperties: oneOf: - $ref: "#/$defs/qcom-sm6350-tlmm-state" - patternProperties: - ".*": + "-pins$": $ref: "#/$defs/qcom-sm6350-tlmm-state" + additionalProperties: false $defs: qcom-sm6350-tlmm-state: @@ -133,13 +134,13 @@ examples: }; uart-w-subnodes-state { - rx { + rx-pins { pins = "gpio25"; function = "qup13_f2"; bias-disable; }; - tx { + tx-pins { pins = "gpio26"; function = "qup13_f2"; bias-disable; -- 2.34.1