Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1297335rwb; Thu, 22 Sep 2022 12:59:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4gqLM/6wU0/fBZ448CKmtchK6Xx8gUndl9doaCVHRhHKjhwqfwc4BzrqPHUe9reLgV1khN X-Received: by 2002:a17:907:782:b0:740:7120:c6e7 with SMTP id xd2-20020a170907078200b007407120c6e7mr4122178ejb.313.1663876780977; Thu, 22 Sep 2022 12:59:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663876780; cv=none; d=google.com; s=arc-20160816; b=bB/jNh3DE2xJC5kt4P3T9YTMSVsN79aBuFuIcYJ0Pzd1uE7G79tY/yWSj0CvRs7+aj 2i/46JPLGIDI7Aoqm8bKLCFp1cS/olTuBIJWVi5MbNAAtwCEaxhqaAxGkoEuk/hD3l5k ek30Eyr9PPIYM2qdJuBL7+zJrVermM1JMhKYpvcudSMe9w3wBn0GhsszSeOn56RojaAU vUn384UqFhxiLCP8osehg3FFjoqwj3mW3UhZEUj8h2VPMsOZ4yURHedU71eAi1R73BEU 52/gLTB2s1dJH9+53YWYmLrgAVn/kGpzlUl0H+1Wcyx8piajUwiEKeLnv+1PYTdFGiPo uqcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bYzFDpsBX2kTeJEZsPEKL8j9cV/QL84TV4CpBdT6eXg=; b=j4eze1sewlYeL1cl+69Cb4REWrsQpfjpA0B96pWIq9qzPIQCyxY97pjASfawBq3EXJ yNZmEh/PA/8KF5uKPZoeur6a0JDjB1jVo2Vrer+p0CCM1NB5yAOBgkDRaaXd5NPE7Wn+ 02YTZZQZCpDsvOSfkCGwgD9LNfGe7YW6ZYQZ6KcCC2sCgtRooaO/QaByYK6blQ4/y22s oiRUqxzRAfRoOJ1cGXtht/2t0+g9+m9ix3biLwsGu909otj+r9ORGc2pxiNM6drNU/L8 oys1zhQiNCvBGjFOH6b1RiqPZ2IVYdZvPWjvyZH5i7WNkTUnkvymoyYxgPj0PfAvpnoz gaPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rmXKiFtZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd42-20020a17090762aa00b0078251f3e609si3007983ejc.516.2022.09.22.12.59.15; Thu, 22 Sep 2022 12:59:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rmXKiFtZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232630AbiIVT5R (ORCPT + 99 others); Thu, 22 Sep 2022 15:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232183AbiIVT5D (ORCPT ); Thu, 22 Sep 2022 15:57:03 -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 B6E13E5F81 for ; Thu, 22 Sep 2022 12:57:00 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id u18so16421644lfo.8 for ; Thu, 22 Sep 2022 12:57:00 -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=bYzFDpsBX2kTeJEZsPEKL8j9cV/QL84TV4CpBdT6eXg=; b=rmXKiFtZirzjsxJjmylXBux+KqqiN36gtjB2CBsG+xmfUwv1bSnJjQwTxRzKgEcrLj 5ZxARW1T/BkTeu86wsqrJsplaMYVKV/oXPNNGltUPuA7B/PdadvkQKpo4wHu/3cwpTSd Foobht00t016zEwKnJnR0UUyh+7t+O9Fr2FMmdRhCgX7HE/+efLiDhGKTd0qXNZ/FWZS JXEiwQiH1DUnpcGjb1MqlJvywVUC1+zKol8HTDV1VRe48ssa+djCfJmCN+1DFU1f+4zF 4P1QGxSl3ItYgVCADnaIZo4IxbGVYg18PC8XUEW3vmATY3aDdVRNZWuYku4iCdl7mNEt 4RwQ== 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=bYzFDpsBX2kTeJEZsPEKL8j9cV/QL84TV4CpBdT6eXg=; b=aHmnr4kYBFGZjn6e7xeBo+vyzLkDQWFKIMMsblC/KI1qJTTqaHvtVI6gJLVNUoO9mT 2qO4gWp/4pdteAifd7ZYJO3V7+k5d0yrmy/Ng97olkgREPx7EcKV5e7edUk+jsDWSmrs JMIhvqrdSI+9ClMJmJ6dlcXVvWnYT0ORgH50y0WJabMu7OgekRF7HtnWHDDnFPHuJClp l28jQXPLyBlvEBfj7de9EmUMcIQS4LxDGTKP8mXeJM7jtd0nJDMtvQyatCF+r/yJFFRR GQdfPvHQJMv0s0vcH/WFTA8+5Ot5WsT/qHuIbrAArYD1h3VJpvZ8lDtDFRlpytOeog+e 1Iyw== X-Gm-Message-State: ACrzQf169q5DG2AYQo/z9Z6kn1ruF46yfKwkntV441Q7tuf61/JSPfdE ku8sKCagEL8bTpaDPgBGuaIxwg== X-Received: by 2002:a05:6512:2303:b0:49b:ec39:c4ab with SMTP id o3-20020a056512230300b0049bec39c4abmr1877739lfu.512.1663876620291; Thu, 22 Sep 2022 12:57:00 -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 x15-20020a19e00f000000b00498fc3d4d15sm1079375lfg.190.2022.09.22.12.56.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 12:56:59 -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 Subject: [PATCH 03/12] dt-bindings: pinctrl: qcom,sc7280-lpass-lpi: fix matching pin config Date: Thu, 22 Sep 2022 21:56:42 +0200 Message-Id: <20220922195651.345369-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220922195651.345369-1-krzysztof.kozlowski@linaro.org> References: <20220922195651.345369-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: X-Mailing-List: linux-kernel@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 --- .../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..1daeca62625d 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-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sc7280-lpass-tlmm-state" + additionalProperties: false + +$defs: + qcom-sc7280-lpass-tlmm-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"; + }; }; -- 2.34.1