From patchwork Mon Sep 26 07:43:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 609859 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92250C32771 for ; Mon, 26 Sep 2022 07:46:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234281AbiIZHqb (ORCPT ); Mon, 26 Sep 2022 03:46:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234103AbiIZHpZ (ORCPT ); Mon, 26 Sep 2022 03:45:25 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDBF01903F for ; Mon, 26 Sep 2022 00:44:49 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id k10so9502022lfm.4 for ; Mon, 26 Sep 2022 00:44:49 -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=s3LeD0fQ3lVXSe5LvWDqJOXNGaIcujKmFDelUx6yqVs=; b=l7+OgR+Oum/n8ZVLx5cX3mHPiY/JfEZSFqFHWUij71YGnYotCt5XwwWqzhUM4qnTsf nl/W9aeEO/EzBj8kdYMYPt3ajBbaQcP+Hjzppyyx4AHFGLrVTccQdeoPcXgmrq0WDyeh iBXY8+NnxixlCHxGzJthsi9WkcluWyapdMSIgN7bN8v42c3D555gOWZA5w9WaqkOfcKg dQE2Qv4uiNuIHcHUwVGYx3X4Xuq3QCGCGNeMj5zMO+kNfZx8MsArtFpU0HluXX5L8KZh 0qQj1/96jBkz6sE4WAJj2H8Hk2qJ43zdeqxm0VwjFB8hS4fr3l7zloYCvijqdiMf/Urb uvJg== 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=s3LeD0fQ3lVXSe5LvWDqJOXNGaIcujKmFDelUx6yqVs=; b=gt/WcZ1CZzjiCWRHnrrqmRBvFJEwqPWmIiTKBSFJte2J7D2sXH6uo5ig+gDGzPpzAM 39d1OoOBsvHi7NYG9JRDD8JSTpmVAkQoUUVlXkDgYEXwbzWX3pS8IzsSU6eUT3+1N2wa CgQbjHLuKSK6EBxO9ddVREmDmuN7BZLYVb6IgYNHnQ0ckmGjwOv9+MFJJcllNVWbohAR KELUgcp/T2i0ZjX4lg2AfNr2yz3LTFQfRHnG6HJV3t4wT4shIosw2jTKmvbW+q2bPHRq dWRinw4mXyY0Jxc6uN9ZsbItBE5I7Y0eSS1x3+RJyQfz11kGnojGI/eW8Y393LaFk6cx TGbw== X-Gm-Message-State: ACrzQf3mSTtbth0sDpLVLOz6g6V6cDNguyHeOMhDl1u56KwRQXE9G36F oQMlxQSwBwBHQ7FGxJT9uTEFiA== X-Google-Smtp-Source: AMsMyM6U4d3jBHNBnbe3odhyJlnWz9QRvahusJDQ12xbrISqYzqFcqeVfhSTeSxh+nAr8bmwKVHqWQ== X-Received: by 2002:a19:4f4f:0:b0:499:4b:e4ac with SMTP id a15-20020a194f4f000000b00499004be4acmr7546915lfk.189.1664178289042; Mon, 26 Sep 2022 00:44:49 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 00:44:47 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Shawn Guo , Vinod Koul , krishna Lanka , Sivaprakash Murugesan , 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 13/33] dt-bindings: pinctrl: qcom, msm8226: fix matching pin config Date: Mon, 26 Sep 2022 09:43:55 +0200 Message-Id: <20220926074415.53100-14-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 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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 --- .../bindings/pinctrl/qcom,msm8226-pinctrl.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml index ab4a2b4cfda2..ecb90c77f666 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml @@ -45,9 +45,17 @@ properties: gpio-reserved-ranges: maxItems: 1 -#PIN CONFIGURATION NODES patternProperties: - '-pins$': + "-state$": + oneOf: + - $ref: "#/$defs/qcom-msm8226-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-msm8226-tlmm-state" + additionalProperties: false + +$defs: + qcom-msm8226-tlmm-state: type: object description: Pinctrl node's client devices use subnodes for desired pin configuration. @@ -126,7 +134,7 @@ examples: #interrupt-cells = <2>; interrupts = ; - serial-pins { + serial-state { pins = "gpio8", "gpio9"; function = "blsp_uart3"; drive-strength = <8>;