Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp877667rwb; Thu, 6 Oct 2022 05:50:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM765mUvTFJT7LP0haaU6mXq9iktLw3yu6wjxfiN5OwwqisRxTBqn8TCoxqrnQdasaGQaiqw X-Received: by 2002:a05:6402:2816:b0:434:ed38:16f3 with SMTP id h22-20020a056402281600b00434ed3816f3mr4570110ede.116.1665060623647; Thu, 06 Oct 2022 05:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665060623; cv=none; d=google.com; s=arc-20160816; b=hwTLALnOOLF9SYXqsMW/bJAcHBo96obq1klYDFtjnQ2x0rGvihwzlJI0l+8z8udmGT RDww+41wBOHkGcnHkbpRqQycnOwia7YV79CrCH/2BUaM1q5SpB+DfEQU/jhSYGOUWMeF BJNmuaTLWC4aMbWrudAFE/DVHhWaIf7KEVlIXHRu8Id7K/ymtjKubNhrYmRIF1g4tRlm 6fz+fvkjujGKmznurWez4fexjgBajhCrxE8pmrBXxC2RYyjzCjNAQWqbe8fEyl9ARm64 bHpwotvsA4oq6koUXdEfMzNh6qKhzP7rxxF6RZE2tiO23RmnqYCXB3LfhVzXyiISBu0z y0Ig== 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=F+J798FgdxjOymxzo9NpgSksOzAvjC4SZmthtS8ZpaI=; b=rrZg8i+TYvPWBUJaORDmlFwIx47FmmVp70cFM4cgRyfVjzAuFC95beOnGs/LidPjG3 K0YGysKdRHGH9AfeGkOXgyCdoYuaMiJrrSxAGCBrCh7qGfjn/L+SLbWJ2w59NQA9lc9K IH+uiOk/XBNRsNSwFUfuNv1OXef5H4FbA2U4umy1JuTvfE0YQoTW0KDZ6TtE6InCu+a2 XeUWpNq8Hxr7IcuexklbyYwO6YoC1asAzNPoetvGmshBfohTwFjVesfVzieWar2JB55s xmYY5OnvgCeN8665JP0bJxlIfTTrLPah+RhImLOI0tarsDxhdQhQcdOh7mmfRUOKUCxW RFYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RFHtvVyD; 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 bx26-20020a0564020b5a00b00458f6e66baesi10191748edb.278.2022.10.06.05.49.57; Thu, 06 Oct 2022 05:50:23 -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=RFHtvVyD; 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 S231376AbiJFMr6 (ORCPT + 99 others); Thu, 6 Oct 2022 08:47:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231247AbiJFMrc (ORCPT ); Thu, 6 Oct 2022 08:47:32 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19A3EA2A83 for ; Thu, 6 Oct 2022 05:47:14 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id o7so2535677lfk.7 for ; Thu, 06 Oct 2022 05:47:14 -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=F+J798FgdxjOymxzo9NpgSksOzAvjC4SZmthtS8ZpaI=; b=RFHtvVyDqCucmapJX1wB3SdolJJAGxdi9jSggDjr40zqTpquDnWdDm3VsKEsW0BxsE D/FXc3Z37TtZ4RVG5jTyTgj6BTOMRndOEMcz7iwIDUAQwnm7s0F5MxgxbgvKg09Jd+NT 6ZS6mZtR7l7hLMkg2ZZ23qfKgfkcldxvn6TATLfD335XaX8oiNjGHUJtt67w82YW7Z4w BenVln062F/MGeM25YQBraVbJxNKtWx59i4NBcWIL20ngOuNp3+wF4KtH8aP4wukYBCI /rEltOPHP2uT+lg+Adt1bMoU7oVfE+ebq0Ve/YQrOPZYkxU87hbaDJKYcChNzXDX1EAq vLtg== 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=F+J798FgdxjOymxzo9NpgSksOzAvjC4SZmthtS8ZpaI=; b=KgnBdJpUQTSuU7CKprtoYOLd9kpJwh4oBAR1QtrsLBvlOfvy6vE7uWuwK/1sR3usTE fMO3WrRxElpm3OupsZCJH7VwoDvE2BIp09+qCboZ12s429cCQomJHzbwgaJbtliTHzUr NGbIncUtXWI2SBy85A+YFOueS7hjvElgn1lxthi3V2/otNY6vAq38Sv06TjgURyp2on+ A62b6FsjQyX+mBqkCh2dIsRYrbrHoRLYo1GQZhZ8IFf4uJ633zp+8x/tTI+hM67r+6ir w3GmQozGGQyiVHYoLTPQdxBlXYgUNQFZbLUeJpjRxzuQ8afk6K6KCsi0XxEAghgEeLr+ u8Kg== X-Gm-Message-State: ACrzQf3pbL7DqwbhaPpgX2kN0+RNjRdunU5hnQlGbHBfFu598Q7QxwDz ZCto83xt1HYBIZWahhRdTE+aXA== X-Received: by 2002:a05:6512:3996:b0:4a2:1c8c:c9a1 with SMTP id j22-20020a056512399600b004a21c8cc9a1mr1939179lfu.230.1665060434502; Thu, 06 Oct 2022 05:47:14 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 05:47:14 -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 11/34] dt-bindings: pinctrl: qcom,ipq6018: fix matching pin config Date: Thu, 6 Oct 2022 14:46:36 +0200 Message-Id: <20221006124659.217540-12-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=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 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,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 7202e2af200b..735a8786cb13 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