Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4077711rwn; Sun, 11 Sep 2022 04:52:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR6kd9pHNmOvYwOtA12Ml7YYa7eSWd26XYh6OCfbuIu+1gCI4lfMLBTwVQGCD6pzihUwcrdt X-Received: by 2002:a05:6a00:1a14:b0:52d:5fee:d46b with SMTP id g20-20020a056a001a1400b0052d5feed46bmr22991217pfv.82.1662897122795; Sun, 11 Sep 2022 04:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662897122; cv=none; d=google.com; s=arc-20160816; b=SjzpeFpfHzRjA1D42PMMVGmTYRO+bntEAXeJZhp4Qu8faRSouroaTXi0lVc0Vjh+53 HD0r5XLzJj6Wf5SRkbrYl02hSHz2nj9VNB82afxUtZTTdXOhVBT5UYEGLYiGGToI6c6w oSaCX2uFPaC8PL34T4k7opTANszVU7tX/w9e3nFusfHfMLzzmPX9V7/J3YuTZuC0jtTW TRr5R/SJdWGu/TA4znLnLucV2Vpq5q3pPFaw5m7vjAj/KZJEPTldAe2SGQuv8IWApIRv 5p1wsVKKV+sHfs0740h1TQmn95H+trn07g/yEJDvwVYlcj8Qzufnh5ljzbFCfaJmCwCW c+cQ== 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=qSa6F8HJSYWjDBg+j7oIEuAdlpcYu3Iz+kDxwwRpkho=; b=Zk+b75sWcVmgd7Pm+0EbdCSDjNRuXQ7MvCuSA9PN4rjA0LEncX5uFrdbhB7fMZJ1Z6 ugVLlqS020MFsOOwafsmev/fDQDB3IHoCijzfKNRVghGbhpTnIHd6F59SyfHBnPw675f LGjEC0agFp0G9g3c0IqUbisYmh3bTFRCbhH4akcSKFAwLmQr7HzCtT+VUdsEK90RsyY2 T2BtxURnvC1MCagYHtcHgQGdl7NInALSOXQO0hIj21MjcJpvaD3XqP0Qn4gMhvTBNh5j db6uXd+XFQZQYi16tnc8YI9qbF9bALfDe3jir4WsC0vmZrkGze0zsRNBar8kY50VA1DG mCNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fcT6LABS; 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 u12-20020a056a00158c00b0053ea3e32f62si5339387pfk.326.2022.09.11.04.51.52; Sun, 11 Sep 2022 04:52:02 -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=fcT6LABS; 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 S230430AbiIKLOY (ORCPT + 99 others); Sun, 11 Sep 2022 07:14:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230500AbiIKLNS (ORCPT ); Sun, 11 Sep 2022 07:13:18 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6AC73C8F2 for ; Sun, 11 Sep 2022 04:12:41 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id f9so9636202lfr.3 for ; Sun, 11 Sep 2022 04:12:41 -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=qSa6F8HJSYWjDBg+j7oIEuAdlpcYu3Iz+kDxwwRpkho=; b=fcT6LABS3+06XZ+IpQVOFKLZ6waL4mRDByzgK2SU8YdN3vIM7Jhblze2xDl5hWgPvc HIp4AnYPRme4ihYksJnB9YqXhwGhMbPRLTBB+panMzpn8Ztmyi44R0rhdk2JksrzMKoK LtpCMFtY06R3b86YngSFYaq5gSi/KaBGHQRfaaMF4E8WhCtup5wYrXh137Mna1v1LS2M lAkMq0BuA5ZH5/YMHAgS3tK0OLGcfNSWdVQn9XjW7jUb4voorburunyWw5jc6SfxmDW3 NOmU5rDsN2VENXGG22XR0jG3/j1x+bYd7/N3qrg0JXrtyZW0hYZxwrPjhhQ7dW08up2c jb9w== 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=qSa6F8HJSYWjDBg+j7oIEuAdlpcYu3Iz+kDxwwRpkho=; b=oh9IECe3UJ3eWzhQymxeAIC0L7mblFtoGXN3W4+LNm9CMLrR3Crv7lDSbZ/sTJ2nll wv1lNmRe7V79xDBa3i5NKCg0ljL98X9Tkkd51nzqFKjiX35coLnxZcpWirkSL3dS3OoV CNtzLxWWMj9K+lW4lPGGcMXMimmSAvrSFADyScPN/hipQsf0F+DI5GHOPySGFN7T+htq YKVNNMMIRF1UHcVbkeYlcPuiFCB7W6tnLBDNj8n54ZDeGIPRmOKT4PAqiAlUvTYYlx0N VS2WwTnTfytKPOAT7m5BnjZ9UQUDbcSsDk2MHVhP0255MKVw9/HH685Fa5bpIZ5XpA7Q LL0A== X-Gm-Message-State: ACgBeo1US7mr6bkoviMldGkn+tluH+hPwXwKBqJCPVK1p6keqPChpfZg kHgTBSlmDbBYCEjCP/xFTEjAHg== X-Received: by 2002:a05:6512:1588:b0:498:eb9c:2fda with SMTP id bp8-20020a056512158800b00498eb9c2fdamr5306190lfb.91.1662894760677; Sun, 11 Sep 2022 04:12:40 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 04:12:40 -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 28/40] dt-bindings: pinctrl: qcom,sc8180x-pinctrl: fix matching pin config Date: Sun, 11 Sep 2022 13:11:48 +0200 Message-Id: <20220911111200.199182-29-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 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 either named 'pinconfig' or followed with '-pins' prefix. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/pinctrl/qcom,sc8180x-pinctrl.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sc8180x-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sc8180x-pinctrl.yaml index 86509172603d..646fabdf81f7 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sc8180x-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sc8180x-pinctrl.yaml @@ -51,8 +51,9 @@ patternProperties: oneOf: - $ref: "#/$defs/qcom-sc8180x-tlmm-state" - patternProperties: - ".*": + "-pins$": $ref: "#/$defs/qcom-sc8180x-tlmm-state" + additionalProperties: false '$defs': qcom-sc8180x-tlmm-state: @@ -137,13 +138,13 @@ examples: }; uart-w-subnodes-state { - rx { + rx-pins { pins = "gpio4"; function = "qup6"; bias-pull-up; }; - tx { + tx-pins { pins = "gpio5"; function = "qup6"; bias-disable; -- 2.34.1