From patchwork Tue Sep 27 15:34:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 609663 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 79EE1C6FA83 for ; Tue, 27 Sep 2022 15:35:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232590AbiI0Pfq (ORCPT ); Tue, 27 Sep 2022 11:35:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232359AbiI0PfZ (ORCPT ); Tue, 27 Sep 2022 11:35:25 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8DB77663 for ; Tue, 27 Sep 2022 08:35:03 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id s10so11351141ljp.5 for ; Tue, 27 Sep 2022 08:35:03 -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=7sJl4vE6bSD7GZqCJlHjtVSgYLna8lnN5EzCJBmeopA=; b=nRDvZwPBrTayD+fBxzdQRAc0HV8Azre+t740Fq4iLVZ0n0g5ROIWKQt3ERsppYQOAG mnQpS6PQG8UKqNLV2xlQoSu5mbEsSOZBZCZOh1X0Jgn5PCjSYQfi3wvJN3Ive3Wr7b0M AOjVmRMRPBJnTFwnq2Xwi7iSRNQZIyuyI4QXi/CocKgIZzlTz+wodo5x548c++dVtlx3 nrjoFAKjKe3fkQYgRXMtPzh7iwqzHy1qoVHSdix4cUtnZcpFyntCa/3kOmT3OPmPQOaW 5nGgybhzap4bcvUdCsuUXUteI79ZbEc+hOldapyFRYpRo8G/7vAjm90d2ZC6347bvGNd hBzg== 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=7sJl4vE6bSD7GZqCJlHjtVSgYLna8lnN5EzCJBmeopA=; b=F5ourgxvlACv3uPDOjT+joWtc5X/iQ+E0TyR69wqNHYKb+YW5fi8Yn55LnvO0B5pGu HNDkQDBR2cg5hdysUDBCVghMuU7N9smBtImM5KS0p+2q+3FQJxxPDF9SWMbZ5AkFDSdS LWRGFDlPWv2pc53pntPIqZjms89RJoWnJxhKVAmXfE27HiPOing3dSXFAAwnP0gOCaOK culO0erV9+STQdL0r4I1/wSH9IH3Z9MCrhGHRsIunN9ecqQ2zXg8c+zNqWNfwYeVn7iz yN8T1N/HPsqm5Mvxd3OKKIZ9gZ+Zn9S0IVB7LND0Aral8FYYDYcLcT+uZAmHe4y4A43A IKQQ== X-Gm-Message-State: ACrzQf0YqdAk/fTWTvUK7V5xI2YgRKJFZ6gKgeYmVShBW90pdNmbsRqu HZEvEVJQ+7Drtm0lFFYpUBvwyQ== X-Google-Smtp-Source: AMsMyM7enD0wwe3qFFVAo1ipolYZLlhG0hrKNSJ4mspYSlmdtozSrsK1DmHigcHASyNbDIBhHKCt7Q== X-Received: by 2002:a2e:ba15:0:b0:26c:1798:b178 with SMTP id p21-20020a2eba15000000b0026c1798b178mr9297272lja.19.1664292901145; Tue, 27 Sep 2022 08:35:01 -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 o18-20020a2e7312000000b00268bc2c1ed0sm191592ljc.22.2022.09.27.08.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 08:35:00 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Srinivas Kandagatla , 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 v2 07/12] dt-bindings: pinctrl: qcom,sc7280-lpass-lpi: fix matching pin config Date: Tue, 27 Sep 2022 17:34:24 +0200 Message-Id: <20220927153429.55365-8-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220927153429.55365-1-krzysztof.kozlowski@linaro.org> References: <20220927153429.55365-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The LPASS pin controller follows generic pin-controller bindings, so just like TLMM, should have subnodes with '-state' and '-pins'. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../qcom,sc7280-lpass-lpi-pinctrl.yaml | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml index 624e14f00790..a8a48b684692 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml @@ -37,9 +37,17 @@ properties: gpio-ranges: maxItems: 1 -#PIN CONFIGURATION NODES patternProperties: - '-pins$': + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sc7280-lpass-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sc7280-lpass-state" + additionalProperties: false + +$defs: + qcom-sc7280-lpass-state: type: object description: Pinctrl node's client devices use subnodes for desired pin configuration. @@ -116,4 +124,21 @@ examples: gpio-controller; #gpio-cells = <2>; gpio-ranges = <&lpass_tlmm 0 0 15>; + + dmic01-state { + dmic01-clk-pins { + pins = "gpio6"; + function = "dmic1_clk"; + }; + + dmic01-clk-sleep-pins { + pins = "gpio6"; + function = "dmic1_clk"; + }; + }; + + tx-swr-data-sleep-state { + pins = "gpio1", "gpio2", "gpio14"; + function = "swr_tx_data"; + }; };