Message ID | 20220926074415.53100-21-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <linux-gpio-owner@vger.kernel.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=B6DQNJN0; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MbZbL6tNqz1ypH for <incoming@patchwork.ozlabs.org>; Mon, 26 Sep 2022 17:47:10 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234273AbiIZHrH (ORCPT <rfc822;incoming@patchwork.ozlabs.org>); Mon, 26 Sep 2022 03:47:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234269AbiIZHq1 (ORCPT <rfc822;linux-gpio@vger.kernel.org>); Mon, 26 Sep 2022 03:46:27 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4001E326FD for <linux-gpio@vger.kernel.org>; Mon, 26 Sep 2022 00:45:02 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id z25so9522669lfr.2 for <linux-gpio@vger.kernel.org>; Mon, 26 Sep 2022 00:45:02 -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=tI3YcFf7I0VJoXV1p2liiPk9SIh1pwH6bZoypN8Fx6k=; b=B6DQNJN0Gy3IB48xNNmvDIQKpcJJOmfOWoo9Ru/OuFJoQBEaBLP6z1gpX3JlCSvFbR 4YpHY+XkYGLDEuH37A5Gb1VLvgg/fcCloX1jV6gtFEuigJa84jNRyUVtvlEICB5PHqZC LEvmrxDOMp51sibQuLOngNDlqIBc4PqQTcl6BoYA5RT7fmuQ0qHGZu787JRujOMPrQ6l qoR82PtVoHHI4Dj996fYtff2ZXtNPyFLAZoA5vBRfr5u3TXfW8holaOk02egU+7ODTmp /auDWkfPR6VZQJZ7qNRn18cS3ofFcLrU+lC8U2PvS6q7VPyCix92sesL9rpmqE/4i9MM OqVg== 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=tI3YcFf7I0VJoXV1p2liiPk9SIh1pwH6bZoypN8Fx6k=; b=r8312KiHKk8UzvzLcr1u2It7JJDD65qP/X4rLp3GFx6nTMVeriYc1M6IwxuEPOiIma DQsE2ENIV6VeIUhvrzH6y8RJ/8NbQDOSRta/c43HSfDbW2qgRpVTkfo9k+HdFVThiYCT a6i/cUAxXi3c4CdMdQfeQ+8RbudRKNuRRvSWh72rWfNENQAzvuptaHRw5jiHP5H6mf37 FoSNqoi1E5W7FEQ418DPQem74VQBOyel5hqT71wn3Vbkog0BMU5kB1q701/kyYNMuufn 37jlEOn68dUmaxmcy71BPKP/9iQsmyW82vHqDlvC1E9kg9qQqUwPQQYqJwIlYK+CFgcb k46Q== X-Gm-Message-State: ACrzQf0fxBoyL7vuNDFr2ltMk9Ax8/SY2Hsb7fcGZemgzHgG8j71lM1Z ycoRI+xm5/HYrS5DnZegeF4GGw== X-Google-Smtp-Source: AMsMyM5N4/irmtZnIsS+4oWZetiJXOrZmj5YFqXF6nnJfHnG0BTvUOXEXSApkaCKTCAnHxokOgWzUA== X-Received: by 2002:ac2:4e15:0:b0:4a1:b113:d431 with SMTP id e21-20020ac24e15000000b004a1b113d431mr3485532lfr.385.1664178302279; Mon, 26 Sep 2022 00:45:02 -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 g6-20020a19e046000000b004978e51b691sm2453298lfj.266.2022.09.26.00.44.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 00:45:01 -0700 (PDT) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@somainline.org>, Linus Walleij <linus.walleij@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Stephan Gerhold <stephan@gerhold.net>, Shawn Guo <shawn.guo@linaro.org>, Vinod Koul <vkoul@kernel.org>, krishna Lanka <quic_vamslank@quicinc.com>, Sivaprakash Murugesan <sivaprak@codeaurora.org>, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH v2 20/33] dt-bindings: pinctrl: qcom,msm8953: fix matching pin config Date: Mon, 26 Sep 2022 09:44:02 +0200 Message-Id: <20220926074415.53100-21-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220926074415.53100-1-krzysztof.kozlowski@linaro.org> References: <20220926074415.53100-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 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: <linux-gpio.vger.kernel.org> X-Mailing-List: linux-gpio@vger.kernel.org |
Series |
pinctrl/arm64: qcom: continued - fix Qualcomm TLMM pinctrl schema warnings
|
expand
|
diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml index d4da558cde54..c162796ab604 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml @@ -44,9 +44,17 @@ properties: gpio-ranges: maxItems: 1 -#PIN CONFIGURATION NODES patternProperties: - '-pins$': + "-state$": + oneOf: + - $ref: "#/$defs/qcom-msm8953-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-msm8953-tlmm-state" + additionalProperties: false + +$defs: + qcom-msm8953-tlmm-state: type: object description: Pinctrl node's client devices use subnodes for desired pin configuration. @@ -163,7 +171,7 @@ examples: #gpio-cells = <2>; gpio-ranges = <&tlmm 0 0 142>; - serial_default: serial-pins { + serial_default: serial-state { pins = "gpio4", "gpio5"; function = "blsp_uart2"; drive-strength = <2>;
The TLMM pin controller follows generic pin-controller bindings, so should have subnodes with '-state' and '-pins'. Otherwise the subnodes (level one and two) are not properly matched. This method also unifies the bindings with other Qualcomm TLMM and LPASS pinctrl bindings. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- .../bindings/pinctrl/qcom,msm8953-pinctrl.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)