Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4853625rwn; Sun, 11 Sep 2022 23:29:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR6fz7XBkwCr/VAFFhCNjMBJ8To1D7JZgDkFmmBuRYG2wxAAsdds0UWLpNhsjnq9svtRhiZ7 X-Received: by 2002:a17:907:1c89:b0:734:d05c:582e with SMTP id nb9-20020a1709071c8900b00734d05c582emr17811810ejc.282.1662964198629; Sun, 11 Sep 2022 23:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662964198; cv=none; d=google.com; s=arc-20160816; b=x/B/FpK1dNxlRBuUP4KIPpPptwwIuJO/LW1orf5GcjBee28aKx03MA5klOAXq8WCHA NAc3HTYrxlvS0jLfpzw/rM+widyFpb6VQSam4ajUtUdwQFznFLLmXiZrlNlG7/kMJdP3 aaRZp6hzsla4qljREP5my6wnwKBuTLZxnSXSREsBsmy9KP0wH/6gBCaxvYgaxBaBypwa LPMsQrhUYnLApPa5eSR//KJ7NKMgwo322ltIfc5Uxm+ble5PI1Uhm7Beq5QBDpqfIb4+ uuVqM/26oe7hNZ2MFD0UVKSQ/CMS3BPBv8Ma2cKsBXEz4zD8yBu6g0RRwUR58MrP+e8F 3Nig== 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=isoYJKBwL9O1ZTWOtoJy6YqcTPPUMcFYuBQOWK2a8G0=; b=TduQh1K4/fYvheLh5Jo1FspFJJ8mZZOs9BvTG2Ox23375BqgIf3tzykMd31AYWliw2 JcFJ/HS2YzLAyegZgrc9kxt5iZC6G83kN0EkWq/ni0SFPEOOR3e2n9y2oFp8oRI5ot3O CuOjCRYaUlvC24eH7vrJXmaCGq8imKHvHrYfAOTRnrZvIxYMcyVHH/aRFuVm6NdRQkrJ V74aBjfHg50kn0s4+Ec8WDlgDEFh0Tm5oWLFe1A8MXC2MBBk8ocuJ4yDrz0ZmTdSTs6P 9XO+rlrnbUFDBFpEBf39X9FW421j3CMKBCWaiy/qEy/fFfcdIMuQ6sJZzPat544bfj38 r4eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sn5uYWup; 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 g17-20020a1709065d1100b0073bd9771c65si6387681ejt.389.2022.09.11.23.29.33; Sun, 11 Sep 2022 23:29:58 -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=Sn5uYWup; 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 S230147AbiILGVU (ORCPT + 99 others); Mon, 12 Sep 2022 02:21:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230013AbiILGUW (ORCPT ); Mon, 12 Sep 2022 02:20:22 -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 F20552BB20 for ; Sun, 11 Sep 2022 23:18:56 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id p5so9309160ljc.13 for ; Sun, 11 Sep 2022 23:18:56 -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=isoYJKBwL9O1ZTWOtoJy6YqcTPPUMcFYuBQOWK2a8G0=; b=Sn5uYWupsTjYshBneVtvzhVm3tf9tCxdh4UlYVFBt+IUS0/qO8AZG6l1xAt8OTwdcw LqSgZqKAY72eXW7HIgMULuiRS3xGprajeZGJiGeCelFx7FciQ6ekWDZRaV8/z10dk4gS 127eQTscFSplDtvT8htQc83JifHjo++wfC1ErJCMomo10pyjyMeliT0Iu/Pc69Cq7JTf kkzYKb2Zh66/CVOvi25eYko/MCV67RJbLzmpxKnHCPokSsNSre0NdELFow6p5CRQ+CDu d8hREZz8A0EG//L7Kr5EffVi2u2ONDT3bjh4v7h1YagyiR6TD43pdXyGcUg74p0EUZs6 /ZBQ== 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=isoYJKBwL9O1ZTWOtoJy6YqcTPPUMcFYuBQOWK2a8G0=; b=x00GH8k0oeMbV+C2t33Y0Cxf8O04q7E4EK4El9FDefa4tGKXGZtgdPwxc/JT1IkkSP YRtfMQ0XScYrt9rIG90cBhKFiTpZRK0XshM9EBxC57Ft3u8v2IbWY929Y2o64BZn12DX y1/KIInjNd79VucM2nA5is8FDarJnUIWew2y/vUkUUsHnGDXp3MflTdjbftbA43sTw9c hdkgjoIDnMOA38pDfqiu53TX6LlA4d4x9I4l6Jk+Q+izVTbqDiJLon1HFhXAsS/Umt8F fq1QANZX8OGzet+uVfoi+I9qjjsxu0Dp37NtjpbbnB5UtzS8RbQUTo9BxiHtohTFgNvX p50w== X-Gm-Message-State: ACgBeo3C6z8kMcjcOMCFr2UsirmMSnAjcXHsr1cQFctWLWiqicbevxJ0 Ll2iJcyuxatuhJnP0qtu+pJ8LA== X-Received: by 2002:a2e:978f:0:b0:26a:a62e:8f2c with SMTP id y15-20020a2e978f000000b0026aa62e8f2cmr7369259lji.153.1662963513116; Sun, 11 Sep 2022 23:18:33 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 23:18:32 -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 28/40] dt-bindings: pinctrl: qcom,sc8180x-pinctrl: fix matching pin config Date: Mon, 12 Sep 2022 08:17:34 +0200 Message-Id: <20220912061746.6311-29-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,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