From patchwork Thu Oct 6 12:46:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1686867 Return-Path: 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=) 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=V7zg5QHp; 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 4MjrrV3jkQz1yqk for ; Thu, 6 Oct 2022 23:50:18 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231732AbiJFMuQ (ORCPT ); Thu, 6 Oct 2022 08:50:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230350AbiJFMtO (ORCPT ); Thu, 6 Oct 2022 08:49:14 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15293A4B8D for ; Thu, 6 Oct 2022 05:47:57 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id p5so2065598ljc.13 for ; Thu, 06 Oct 2022 05:47:57 -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=88CQD2qxJDDsWpeM6Y7JxzJKMImZlbT1MdksUVYxP2A=; b=V7zg5QHpWKlE9wXfwPu2avj2419UD9qm+TcOgp9xXcK5kbjy5hU8Sm94eduSVlO9yn DOXoflnOGRHOZ37JimoPoIjpv4SHNV90Znj64o+Yvbmq8/cWBlv4bPol7Bhrp4mzNn1A WTXiVZ2PTiyf+GluRwsYKFUjPQVUnCvVg5/dI/aP0iFieFK+2J9KU4QA1mVEI+sqYRHw n+WnZZd8z1re0vPYao1gw9tOR46+3y/TfQsnOcusGQObgOtlK2NaQ7J7tM4WtI9izYwK hr0Crgowr27LLVVTZpH+k/kFXi+ogBp8q26YhJk4aYSHJ21ZKaIoZ4n8qejjceRfzDGg ZZ7A== 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=88CQD2qxJDDsWpeM6Y7JxzJKMImZlbT1MdksUVYxP2A=; b=udY+krpbtn0ug+ao14L7S/RQ585XqjqH1Q/IcXDR/FrgAhc5J5RnBFi4NXLwfiUXr3 1saKmh6odNwLBOdt32xtTpwqy3XeBATxxLORsL6xXj2CF8ZtBwyaKwaEqiZyh921a0lo oJ1vSQOJRyRxo8r71hOQo2VMM4TgyZLByWrHlxl0zZS+FNcpaI/HoDIkhpY3vergUKlq 39nwhFji8vBeprHIR2qKvqMZp9jD70h6UloMRP43MHbJRJtRmtRBTOUtV5TwIktwIKII cYlkeU7Tn4cAvG4qGQHYUMhLCc9V2s5rg6hm+gU5/NR6ynB1JuBid/vfO2T3g27qJVRF 2VPQ== X-Gm-Message-State: ACrzQf0qIClLcZTagNIVpIr40AIGNZLCU3f8vlvnlDp27vjC1Gt/xwRr GJia49lzBECCA3OezWWht4LLbQ== X-Google-Smtp-Source: AMsMyM5pvoXzZmKqUa3poS84MpbFKxgCgqu3cHMgLKAEALayqcNQPa+8+01ZJCzdZDBor4hmNBiu8Q== X-Received: by 2002:a2e:780d:0:b0:26d:fd38:9649 with SMTP id t13-20020a2e780d000000b0026dfd389649mr1842550ljc.77.1665060452093; Thu, 06 Oct 2022 05:47:32 -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 br32-20020a056512402000b00497a3e2a191sm2687659lfb.112.2022.10.06.05.47.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 05:47:31 -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 , Rob Herring Subject: [PATCH v4 26/34] dt-bindings: pinctrl: qcom,qcm2290: fix matching pin config Date: Thu, 6 Oct 2022 14:46:51 +0200 Message-Id: <20221006124659.217540-27-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221006124659.217540-1-krzysztof.kozlowski@linaro.org> References: <20221006124659.217540-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 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=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-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 Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring --- .../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>;