From patchwork Mon Sep 26 07:44:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 609717 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 26505C32771 for ; Mon, 26 Sep 2022 07:47:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234310AbiIZHrt (ORCPT ); Mon, 26 Sep 2022 03:47:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234311AbiIZHrG (ORCPT ); Mon, 26 Sep 2022 03:47:06 -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 7B9DF32073 for ; Mon, 26 Sep 2022 00:45:13 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id a2so9496633lfb.6 for ; Mon, 26 Sep 2022 00:45:12 -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=xvXRb0zwWe37WFjqVxzmYbo7BlnZOnYHNQaO1Kmsw4c=; b=DPxlZU7raGu6va/8Im+f7FVskiI3JK21AngvG9g34u+n0PgP69595O9cs0R0P/8pQG dUl8RKX0Dk+kkvj/9wOXUkpY+Tsu5jPnsEFD1V1wyZmNSh6f7XwOCDFPeDqm6zaHp0hh o9hFIbZv7OrC/r87rd+cVtidn+/1RPYJuIcfS8RW+63WkIFaK/39DuqNVktGv5Aj9+p4 s2sxivThMvSr37zZippE2RUufhkapSkmuBvA0AKL+vjnb3/eRK6tDnP05KLGXtZwFbUM r4JZO+hQL98/PououvHBKgsreK/Pf8vljQ9s1mOTIqMMXcCPbSYwv6OFOuf20RpBcLZc UAIQ== 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=xvXRb0zwWe37WFjqVxzmYbo7BlnZOnYHNQaO1Kmsw4c=; b=wqMkLst5fnzje+7Noj7uAjs4aahxK6NdcEgD1+CnFplL+2U4whuWwKDal1oUQwd2SC lM0f6+aWn080iPQmoagww7RzFCZcayk4jGU/hDL4tAhoPZWWfwhMY6UkWbEcT6pEYTCM IKN53amadMdafivyfWJ9cFkI7fqljN5NEHAs/2gqbKnc7+UaTyHf8McFhwDYLxkKGQsY OIe82G9cpZQrO5aOaWyFOwZF+xreTkgSF0QNnkHN3fDIqZaqM94n5aPbA4BcZsRwb0Ey 40zwi5g0oml95OWs7Fj846wlYEBsNt1IpaMk/XxA4bwttpy+JzulIS8mapuUTAcmKyOr kxDg== X-Gm-Message-State: ACrzQf0iiEGTN9lxC0oz1BBH3Zlagm9WzawgFrLDNpXAwx2x1nDbP52j Fa7lkZ0nqzjeKxsGMkRnTSnIsw== X-Google-Smtp-Source: AMsMyM5gFcyi/QPXT4QaUwy9kpvifQwECbGCYBAyrqnGSM5S8ZteCBbbtTMdTwsshPtSg34yaouk4A== X-Received: by 2002:ac2:4891:0:b0:497:a9d0:4c4e with SMTP id x17-20020ac24891000000b00497a9d04c4emr7625947lfc.620.1664178312513; Mon, 26 Sep 2022 00:45:12 -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.45.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 00:45:11 -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 25/33] dt-bindings: pinctrl: qcom, qcm2290: fix matching pin config Date: Mon, 26 Sep 2022 09:44:07 +0200 Message-Id: <20220926074415.53100-26-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-arm-msm@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,qcm2290-pinctrl.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-pinctrl.yaml index 3f4f1c0360b5..5324b61eb4f7 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,qcm2290-pinctrl.yaml @@ -50,8 +50,9 @@ patternProperties: oneOf: - $ref: "#/$defs/qcom-qcm2290-tlmm-state" - patternProperties: - ".*": + "-pins$": $ref: "#/$defs/qcom-qcm2290-tlmm-state" + additionalProperties: false '$defs': qcom-qcm2290-tlmm-state: @@ -146,19 +147,19 @@ examples: gpio-ranges = <&tlmm 0 0 127>; sdc2_on_state: sdc2-on-state { - clk { + clk-pins { pins = "sdc2_clk"; bias-disable; drive-strength = <16>; }; - cmd { + cmd-pins { pins = "sdc2_cmd"; bias-pull-up; drive-strength = <10>; }; - data { + data-pins { pins = "sdc2_data"; bias-pull-up; drive-strength = <10>;