Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4871425rwn; Sun, 11 Sep 2022 23:57:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR6YS+VMIta0jQPLd49LgJbKKl3tDYQ82vTSqZJCTHhK3TK3knG+aHBtiz1K91kuyzAVNwgJ X-Received: by 2002:a17:903:32c1:b0:176:d67b:cf70 with SMTP id i1-20020a17090332c100b00176d67bcf70mr26751296plr.117.1662965847115; Sun, 11 Sep 2022 23:57:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662965847; cv=none; d=google.com; s=arc-20160816; b=NitRCwMbtXYGdywDOlE5wDxnY0tSuYfScZyJRFmgNRUCcP4beYq+YFIboklqoNlM1k Du+1yDVaKSqWaQsqPwL96BbFhC9urPm50fL0/fJGrGHAcK2iu5pABMLoJoOA5d3ihzS0 UYRjL2eXVd3/xfFf85+dXYd3lxQQ5IKLV65sJKTKfyDiLiUNvyFoPAAB0YCRMADr7t/z pSdnvbmikIVzylcJRl8PFelPklY6dCzeCRrSwY3v1q/nAUCDljX6mnNSEC7MRWaXRI+I IQH9eXgwiotiMC6lQS9ZYFxns5hgD1OFGi0e8Q1xq3flJRnAFRFDjtVnlRt918VVxqHu 8QOw== 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=Ix0v/JGnTNkLvR8lnkw4PxO4vTS1Ezmp9TWJ/ylE0lI=; b=fT+/SCyEA0eXKwqvC7XU+CslgkOZNm9SO2eK0i/9aRoAU39IVLcIjIewkVYjOFDU6H lagjsmC4cFKW7JZ1QSUoydjkagBmaP3h24xzbSTBjGvf2tXJ0wyRmDDrU846sHZqFkxc LI08MBjBWsEIfboz/PFR6wyJ+07fiS9eo21Gk70rLK8/Lk9tQj2PXhcUdmd6Ie/7XZeT 7Xe9ewlcpJTbmeUmGpHqshRMIz/LYl6K9wZTvClz2aoCnZV5k0lbgcG52tw4FZVb4UoR WcKXM4dhjvYoa72ktF7fnJ4jaop2LMLqrmgaPtfPuHW1PQJAY/GXlyFsspxg1ZwCK44H YU+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RNq2Ay6b; 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 kk7-20020a17090b4a0700b001fb23f3f238si9060726pjb.71.2022.09.11.23.57.13; Sun, 11 Sep 2022 23:57:27 -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=RNq2Ay6b; 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 S229965AbiILGTF (ORCPT + 99 others); Mon, 12 Sep 2022 02:19:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229821AbiILGS2 (ORCPT ); Mon, 12 Sep 2022 02:18:28 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01A242A73B for ; Sun, 11 Sep 2022 23:18:14 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id f9so12422033lfr.3 for ; Sun, 11 Sep 2022 23:18:14 -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=Ix0v/JGnTNkLvR8lnkw4PxO4vTS1Ezmp9TWJ/ylE0lI=; b=RNq2Ay6bofF8EtTn8Aa6fJHXRwtjlaMMQP08M8V+KUrrsyuwbPrNA3XJoxh11yduDU XhOblk3H0YAT/Zaz5e79wMpWLiu64N/MAu1+ByC8ua/LVZgEJzpmQIBVPOMSfff4ZdqF 6NK0B9QpibR84J4dKgbVO07aSpU6jiDS5nPK0BcGUWx/13GHjdssakEgGl008YY8px49 gSUzr0CT98FvcWtoo+NxcOeELtPGmWJtmNsdxlbC684gzYiKKnMMx4mqVL7TTkqpggnN Gsty06IMrt9PG2HOPz2JL5dBVFxW0XKidF/t+Zo1dw9PlC5SkTMTsXni9cCMSOpHua8A 76aw== 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=Ix0v/JGnTNkLvR8lnkw4PxO4vTS1Ezmp9TWJ/ylE0lI=; b=UQnlwDzeqAsq2zl8JNezSGMM2eamoOZ280t6LxqfwM6KOV5DUJUdtyvDSDr8PB9bP9 7b6Bpv992dvK0EGLrTl6PgP66HFohw/YNyefHhL2JqLgwDHi5ASDV6JafmvfjC+yvQbr jF5pNziIxp5qVHTVg4dymnxZVjXg0nLi6z1GvKI22SUYlqBYaTovbEi0XGi/Apf+swjN 9qGxPp2kVMTSAsCfsFuejQVy10CzpiKtcRbEfV48gO11ywJ8dguo09KUXwG+IxoYdZOP AcfrdD7pUaL4PDJcG+8KNF+68Lx1Baf9xJ7wkPunLIzb/rCRv8ppPwhMjFEB3/cGVeNu z1rA== X-Gm-Message-State: ACgBeo3MD6VqYnuTqbiypwi8geMsUtceMmHEkqLWaib5Edcim9FBzjO/ Bae5h21cYGw4PgIdLhRFGTn34w== X-Received: by 2002:a05:6512:118b:b0:492:e3c4:a164 with SMTP id g11-20020a056512118b00b00492e3c4a164mr9200538lfr.598.1662963494177; Sun, 11 Sep 2022 23:18:14 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 23:18:13 -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 16/40] dt-bindings: pinctrl: qcom,sm8350-pinctrl: fix matching pin config Date: Mon, 12 Sep 2022 08:17:22 +0200 Message-Id: <20220912061746.6311-17-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=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 Matching PMIC GPIOs config nodes within a '-state' node by '.*' pattern does not work as expected because of linux,phandle in the DTB: sm8350-hdk.dtb: pinctrl@f100000: qup-uart3-default-state: 'oneOf' conditional failed, one must be fixed: '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,sm8350-pinctrl.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-pinctrl.yaml index 6b7789db2f75..211cca11f94f 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-pinctrl.yaml @@ -44,8 +44,9 @@ patternProperties: oneOf: - $ref: "#/$defs/qcom-sm8350-tlmm-state" - patternProperties: - ".*": + "-pins$": $ref: "#/$defs/qcom-sm8350-tlmm-state" + additionalProperties: false $defs: qcom-sm8350-tlmm-state: @@ -130,13 +131,13 @@ examples: }; uart-w-subnodes-state { - rx { + rx-pins { pins = "gpio18"; function = "qup3"; bias-pull-up; }; - tx { + tx-pins { pins = "gpio19"; function = "qup3"; bias-disable; -- 2.34.1