Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp921780rwb; Thu, 6 Oct 2022 06:21:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6uNPADQyu7xyI7lyOEKukyh6hj+qG+g8acK+A7+HmRPEIq3YV+k9FPa9qMTN0EOZ4x5AwN X-Received: by 2002:a05:6402:70c:b0:459:7b65:fead with SMTP id w12-20020a056402070c00b004597b65feadmr4560436edx.209.1665062460328; Thu, 06 Oct 2022 06:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665062460; cv=none; d=google.com; s=arc-20160816; b=EtqZNGIXlKxyzdZZbL3XPCcMuF2QeRYXrz4agVWdYdsZC4uxmjJJe0n572vjZNbAEJ oatGTcgwMBwD9vyeM2bUDa1lDCNbhv+gqFz+5s6IB2K7gTRVuQGETZzMeBeJaCiNSIFd oM5Uidnl9Egx7HzLUT9NK1tnX+Cei0SOlVsszJjzo31YA5Y/6x31b2sduglmnwcOxe4C Ld+Nwgw2KVVfd0MwWSRfywW85wRAyx/UQXG5F/VOwDeRzp/GugCyDsa+NHbjGmkpLHBI 6kDN2CxpzQV3upD6iblOatUkwyQR0rbcEssrecQsc6rGW5EMzKJlaJxbKGzXE5jNF2PK 5pmw== 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=7tlOCAYHN2Y3xhk9dkRfACKtc8xJakVTM1MhtXVqD2k=; b=kYAADPfaAAEdTdqM+Z7lcolD61xXclee8Q4ZqtGoxo+/rEOL38ziHsoR/qQMPfHFCK aS67wxEAXbua+t+noBMg4AQQ1IfkVu4IjQaKEa/27I7liIvHzU8fg4oV4RV0CQTlPSpf oCRZS3Zcr+ilkws10mF2zeTEjs6JyBHLboTiQyi1V5hLXnBhMeYpklm9CVPF2JgmMRWC gEInCgt6ns6zVNEXTn6UA3ac80LL0SLETjstZsS4vemSllu/KpSxDvcfLuxKQHIa8EGB flCgRv/w3PnZ2zwfQwdlB3cqkFm18dxi135RIGiRST37xlmm/lktiqwgJQmdjTWWLNk5 D9Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h6eKJMBw; 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 gs6-20020a1709072d0600b00782393c36cfsi2164876ejc.336.2022.10.06.06.20.31; Thu, 06 Oct 2022 06:21:00 -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=h6eKJMBw; 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 S231810AbiJFMvA (ORCPT + 99 others); Thu, 6 Oct 2022 08:51:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231658AbiJFMuX (ORCPT ); Thu, 6 Oct 2022 08:50:23 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 284F6A50FD for ; Thu, 6 Oct 2022 05:48:19 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id by36so2108100ljb.4 for ; Thu, 06 Oct 2022 05:48:18 -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=7tlOCAYHN2Y3xhk9dkRfACKtc8xJakVTM1MhtXVqD2k=; b=h6eKJMBwdqEDbYhlDNvQMGzlvN8Pa38wra1+xznZsxMnN19YeNfaMgb6HBKXpzPjY9 6aF3RdewoNONIgx+DUMHXi3gcYS3RgqCJqmE+cM4EJxvQziRGGM32g9ORI2KcTlG/otc bjLP9sVNtxZpRO/V69FsIzXnf/h0i7ykTclWTpdupfEndx3XQpZCM3H2LazzbSryazeL xXyXWvpK3B3aHS4JPwI0J7zKpuaebWwIESNuYejSvcuHstHNG2Yq6mF/ZJaZdMJgn8oJ kAx+qhYGmkBr/wJBlz5pZKnTpGfiAbDOCIWPI0UgeV0HJmeJhyZrilPscrdFnMYaPUFN xn+A== 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=7tlOCAYHN2Y3xhk9dkRfACKtc8xJakVTM1MhtXVqD2k=; b=Yuxx95Jc7Uq+bj7dDmEuFVoMKVbOkfeujk9omP2LNlw3mOFXSdmXGaTvy5l6Bk+YNt mQhqoWmHV53dMRVeIeWrmuL1yL1YIpiROd2+zsIxwpE7m0WDONvLTvsufhzLBDBwgXtF ewfnhE9QUuDE7Gc1RGERA4af3MLxSbnm9iBb9fBCpyM+leHUfAfRSrdUne64qB2+FC/Z v8c75X9RNr+PQ54fNz9DF3/vPU3bIlpFXOPK9pJqCUEslmay0ls+E/mLstkmrWGVLfuY DYQNNZlNptzF0kf2/KDLJjd71JQLSWNUpK36TTVJeqpGe9Kj8ZkUb6WP/QhR2PxvHgi6 +Xrg== X-Gm-Message-State: ACrzQf2SRikXeV+QhIQkh+Dyucu04gxsiq3qso+cA9j/InNxaNPimhMR OJIkC9+M3H0Yhq0i+AKJ+/uH3w== X-Received: by 2002:a2e:9f41:0:b0:26d:ee3d:ea0c with SMTP id v1-20020a2e9f41000000b0026dee3dea0cmr1795404ljk.328.1665060460579; Thu, 06 Oct 2022 05:47:40 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 05:47:40 -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 33/34] dt-bindings: pinctrl: qcom,sc7280: fix matching pin config Date: Thu, 6 Oct 2022 14:46:58 +0200 Message-Id: <20221006124659.217540-34-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 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 Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring --- .../bindings/pinctrl/qcom,sc7280-pinctrl.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-pinctrl.yaml index ad3496784678..4606ca980dc4 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-pinctrl.yaml @@ -47,9 +47,17 @@ properties: wakeup-parent: true -#PIN CONFIGURATION NODES patternProperties: - '-pins$': + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sc7280-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sc7280-tlmm-state" + additionalProperties: false + +$defs: + qcom-sc7280-tlmm-state: type: object description: Pinctrl node's client devices use subnodes for desired pin configuration. @@ -162,7 +170,7 @@ examples: gpio-ranges = <&tlmm 0 0 175>; wakeup-parent = <&pdc>; - qup_uart5_default: qup-uart5-pins { + qup_uart5_default: qup-uart5-state { pins = "gpio46", "gpio47"; function = "qup13"; drive-strength = <2>; -- 2.34.1