Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4058943rwn; Sun, 11 Sep 2022 04:24:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR7J2jhF3nLx5dtb0JnRDna1fXhkPnZvJe+KIsqEE1OgMMuCyBl4yJegVpEBOTKzcWkYvuBN X-Received: by 2002:a17:907:7209:b0:778:e86e:568 with SMTP id dr9-20020a170907720900b00778e86e0568mr10094844ejc.659.1662895458246; Sun, 11 Sep 2022 04:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662895458; cv=none; d=google.com; s=arc-20160816; b=lSU0qmiCxE9bMciUycMmncibKK0kVKXXOOoJJT34R1qa58m+njp+hw4F0tEKLTJBYy u068z36aFieAoV+Z9w9Kt7GWbABjP9qGYozLazDUuX/YTycKul6My+mRzvXGsKMLR7vk W1tKnCOakJ21DUiiqRlE0iIEjRjrtO6Th0gB98uJGHh80TADXVfV32r2/DkVJQxEyOz8 nzlqaCd3LBK4T7M3kolMv5HdpJTL73IxdW0jb0fiVEL39Lwzxb9FyhBeUTgxTgaOA2QH d+1xTNyvh1+c2OjJowZRsLPxop+x81ECQVVaMTRYnx407REWPgynsci4BhqlAStRELAe 1YJQ== 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=VrVKTm5IPzB9yPQM4on4vs6doVXn79UQwYvWB99boi4=; b=QaPkHFpaJWekDSvRCEDVmDexMdgWzfstzLMU9L+Q4jlHD652+Mi259OJpsBrrkEOiO eEvOcOp+uCT9ahYqG0ye+RUrAv3OgYHx5yMA6UhNW4bLD76OpPNZgEc48SYa/Cvp/+Xh JMVD57bKkz1R2IpBq9uPbx53AIzINJnaN1DOujcfTRu1fL1/A4MwO38Dpzf8TpKSrfWH UlOZCrQB+fTeGEFJqgeYWkWH5dR0DgXJ3mydSX5cHZz8k4LdFDm6eI5tEr9eibrUDszZ PyW+c8fU3zNQ82lPpBNcgNJvBDk0EWnQxqPHka05W0GXO+leofGjiSwUMlqTSu/sjc6f 7bEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xp8r29ET; 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 ww12-20020a170907084c00b0073306ff26besi5758034ejb.969.2022.09.11.04.23.50; Sun, 11 Sep 2022 04:24:18 -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=xp8r29ET; 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 S230527AbiIKLNa (ORCPT + 99 others); Sun, 11 Sep 2022 07:13:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230424AbiIKLNC (ORCPT ); Sun, 11 Sep 2022 07:13:02 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75B1B33E10 for ; Sun, 11 Sep 2022 04:12:25 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id by6so7372608ljb.11 for ; Sun, 11 Sep 2022 04:12:25 -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=VrVKTm5IPzB9yPQM4on4vs6doVXn79UQwYvWB99boi4=; b=xp8r29ET1cxQ+YxztbEsZyuaJwy68xG2X0SIkGHow5xmqIrQ/vTfLpzs5tE347LYML sJPHMphD0xXFXzkUhnMgVM4raNi2sRQWNBu2THFQNxRky78fpDqr6nMqju7K061euIAJ S7v7/FcC6MlePhgwVX4zIja2l/RV3DxuKVH9lArKp86CVbvF7ofncpc79mWvZD8xK9c5 DiumwaFteDOEiHHE3lZqdV4+eFW+u1UEVF5REOQa4+68pvpcVczcEHcuniQ0lJyCaSVF av8pjtNccI9wQMG2ztNRbPprBSb/5nRluqTTj7waRAIKyijMPr3i6KcJ5eM3htwSRUrb EsGQ== 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=VrVKTm5IPzB9yPQM4on4vs6doVXn79UQwYvWB99boi4=; b=puS0kX0b3J4fNVpPb2a9BCFx+9hfC/YAhrD1QhAPyU7twu9I0iVHdm32l8x+l37O/N 8HpDgQ9CJyyXbWrDpJCOL7654Z3GZwPUXQS9y3ah4SuibmIjzRdZqSJ9sSszh8Rfr1/e olqZp+d+4u9/iSXcbMUgYA+Xi5mDyQ6jIPmPUB+e9EUSGuXwfiQpXzFCNNJf7oTe2Wcq xEZfRYkcw5XiM0156ghduTnU45YVNtTLRQN1zjkRHOSpAxfckH/HaJ/krZ7Qya1vImHO OT88YtEp0NP7avS6IaP8Oq1vyi+rD3uuFAjt25Hu5jSL3PntFdOMmGKvPqHdlnN/V0/4 t05A== X-Gm-Message-State: ACgBeo1pl5LjJyRUu8habYsFLOlxH/+J3I9lvYYQiJGqJPl/r7ljbNJE fYxHH2CtgEnwONBUg9uS+CPHvg== X-Received: by 2002:a05:651c:1116:b0:26b:e28a:6919 with SMTP id e22-20020a05651c111600b0026be28a6919mr3494238ljo.461.1662894744654; Sun, 11 Sep 2022 04:12:24 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 04:12:24 -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 16/40] dt-bindings: pinctrl: qcom,sm8350-pinctrl: fix matching pin config Date: Sun, 11 Sep 2022 13:11:36 +0200 Message-Id: <20220911111200.199182-17-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: 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 either named 'pinconfig' or followed with '-pins' prefix. 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