Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp451315rwb; Mon, 26 Sep 2022 00:47:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4KEXNppvjDIEnqMncNhKs3GlmQDm3Yi0c4KcJfDAZRMUzl4LZ+I7Ul5+N50+sA8Ei5WSz8 X-Received: by 2002:a17:902:f08a:b0:176:b477:8be0 with SMTP id p10-20020a170902f08a00b00176b4778be0mr21371675pla.66.1664178462238; Mon, 26 Sep 2022 00:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664178462; cv=none; d=google.com; s=arc-20160816; b=OvGKjFu5ws0ETC7sbnP9cV9zw9900nJS3C/jCyNOYG94cFIsf4NFCAX9iR5A3S5OE9 MsEX07eEijEzR6/ZT+iD5eo6Y2KI+gDfD9JKmBVSasYh0g8D5iICpiTtKKNjnvTuxdN/ fSiZJZJM+sISlef+YBz7kQghtHU18ju3Rokh3zaYSoyPat82jmYZBoEiA2hZgS+MIYKb 8nS1/Oj/eEVEhUubG/xd3jN0MrbNYKcrwpOgklFWeP3jAcxgh8ysL2YpvYkDlgk0uBTP dKMyZunpI9OFexUJWhSlcBEw+ifii87nUAVY7utG75SPn9l/SUEHOjVO18RK6Nrr/oOY T7gg== 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=/CQFETLYcASickTGGV8Fyl3JywFDQFEGch29lLspQrQ=; b=xRCaaR0fz+vR5J/UFuEjoQ66qnDcF2pYnb7ZVINZmOInDGKpQxo3tAxOvXWvNli9Vb SM4jsCBKhBQ4nu6sxmJiPgpXythSFx3WOeqHdUhpW+FWmn9orBq05TtA7DMftvdJibCW DISDto5j5kqhVR2MmuoofPi2HD71J5dgmOHmBMsCU5Z3Pe/t2q/7c4RUepaNPJVIfL8o XB0Ywo2UxWLlPTmk0gSbxA7yfUnGTH8umG/Kzy7jz/X7ZG77hk5MdoYeDSR3jDwr11XT R80q/aNc5lO7zDc+RGn8rMHKx52tbwMBybtH2NeTuA3Bvxhc/DsksCEZ1uMISPZJXceX 0p+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RWnIyyPz; 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 f15-20020a056a00228f00b0053e19dae4d3si20266440pfe.84.2022.09.26.00.47.30; Mon, 26 Sep 2022 00:47:42 -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=RWnIyyPz; 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 S234179AbiIZHpv (ORCPT + 99 others); Mon, 26 Sep 2022 03:45:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234171AbiIZHoq (ORCPT ); Mon, 26 Sep 2022 03:44:46 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 365F4E0BC for ; Mon, 26 Sep 2022 00:44:43 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id l12so6422012ljg.9 for ; Mon, 26 Sep 2022 00:44:43 -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=/CQFETLYcASickTGGV8Fyl3JywFDQFEGch29lLspQrQ=; b=RWnIyyPzgqZwcjOHuPo1pVt873TbQ4oB4jKezYtX/xFLPK4uTVh0Ty9NFioK9G2MlL 3IPYmUA+oA4Sfa3u5NsMHelLUW18E9zN16Tw1LXLSD+PNgVrSiTQOYjlPmYAloXchBDP uTH+hM9bamWPIh8y7qnUV+HgyIdxihY26FAhDebvluNQKk59NtoS9JVYgSl53WAY4yyX vfyn2Gh742Nnxb2NN290UsvqQZ52YQzz2L8K7wv3FFy9L95pSUp2z9KZdmQCdyVCRERv aLdyH9nuRW1dE5uMK6zv0Nw9YYcOMEbuRXDmVQ0ptydRop3NF8h1WljMtSWKUrGJhl3n IdJw== 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=/CQFETLYcASickTGGV8Fyl3JywFDQFEGch29lLspQrQ=; b=cSZV3AtueMkqK9SKwBl9ZNTJji4JYQoRpPMF06pquvoT3v3YA5fCsAddzfYfVepamq AnQjJFPLJU6v9OzPD2XH7LVnoey4FD0pI9hcJb/4Crhz2vEPWNTJuzVQHXS7jgam+9yU 8E0pLjGgD8pXvYnJnslFIFGwsa4jKEFfGx2XY83/ivKZNpCpXxhMw6SMrJIkNZNZM10U AfcQOKwzFWaNTFsnKfVtjovF6oKx5XhJAKt+a4ZgBxnkJMfmOvmWEghyUx6Hhta2tc3J Kjlglk19CGwQfUES/stxfrFJ5TAOXYg8QYuUia5nWIgArXnmNwHRbqvbflLApf9rglcG acFA== X-Gm-Message-State: ACrzQf3iq5WlUe0t5Z3fIihxDdt8RX21LXNjLbrVwRZ6idXUSUbQY4Uy Lj6DoBYEhA0JjkTnuMOwQOyq4w== X-Received: by 2002:a2e:9c1a:0:b0:26b:2bf7:9154 with SMTP id s26-20020a2e9c1a000000b0026b2bf79154mr6774210lji.417.1664178282741; Mon, 26 Sep 2022 00:44:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 00:44:42 -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 10/33] dt-bindings: pinctrl: qcom,ipq6018: fix matching pin config Date: Mon, 26 Sep 2022 09:43:52 +0200 Message-Id: <20220926074415.53100-11-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 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=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-kernel@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,ipq6018-pinctrl.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml index 670eb7162e1a..50d8b04bb590 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml @@ -42,10 +42,17 @@ properties: gpio-ranges: maxItems: 1 -#PIN CONFIGURATION NODES patternProperties: - '-pinmux$': - type: object + "-state$": + oneOf: + - $ref: "#/$defs/qcom-ipq6018-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-ipq6018-tlmm-state" + additionalProperties: false + +$defs: + qcom-ipq6018-tlmm-state: description: Pinctrl node's client devices use subnodes for desired pin configuration. Client device subnodes use below standard properties. @@ -146,7 +153,7 @@ examples: #gpio-cells = <2>; gpio-ranges = <&tlmm 0 0 80>; - serial3-pinmux { + serial3-state { pins = "gpio44", "gpio45"; function = "blsp2_uart"; drive-strength = <8>; -- 2.34.1