Message ID | 20221016170035.35014-34-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1095756wrs; Sun, 16 Oct 2022 10:23:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7HR09iRJB/XjAZUv9H9+YMv8tE020oT1CDGUIwyF6bq84z+byEH4MFI4BeDtbRSU86cJuq X-Received: by 2002:a62:ee0c:0:b0:558:5c4:97dc with SMTP id e12-20020a62ee0c000000b0055805c497dcmr8358493pfi.14.1665941015256; Sun, 16 Oct 2022 10:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665941015; cv=none; d=google.com; s=arc-20160816; b=KGjwO0yzNH7nQeWDGFqC0nZyLmxai0oSsbTC4ChUilokAEAP1AYOiDrnyNKo1bt/Pq g0Eh0nMHk8PeFeJ0eMjcwL41WHoL5znAoPsCfscF9B6/IvmqVinYD7r9+zDnuQjC6LVx w2jUIrwTfzUllrlsULBJr+BRwN+8sy8BIkNBckhnAi5W/QMk+dIP1G6NPyJzhCrd0eG2 fVNK7kuL8QVBLxRkfsuwJC4EWcHliCyAio/AEeU5ErItXF9xTXtLonaowX1pajFGKwL/ 0wPn8OyifL6vMRzjvKLm1R0ZRu2sjnKq7SgkcfTNofJN/4PXOoj0nn3NawKF/3IIvqRm IcQQ== 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=EKEK0fv2qRUcvkUtSJi1e3coVxrxigu1rtC3YRTlfmj3lU+JChhB096UjNkhDFVdH2 K908/bKqdjDhw09MLkRjG27Ek4PU0nv3w4shoJ8YTREBNzByBJXwvRrvoKArRkc0CExA BD5pQivAcNj4HC+n7YaXsik5yKfEVajDxw2lblhY4Ep1RS54pxGrVKhEhTH/CfH6IzJB p1UkB3osddCIfyPj1TuqpeyDXo7fBTERfQB1HW+q58IN6qvu3//o7pa2GX0wuiaNfQ6y /ZlOY3ZZRNPUhGsRxleBxfr7ttpfW4d5/dr2v3Sy5JHpoZZmFMvqqxwmKYG2T0xl6+QQ zl/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SdK0qk19; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8-20020a170902b70800b00179f72a057esi8624118pls.417.2022.10.16.10.23.08; Sun, 16 Oct 2022 10:23:35 -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=SdK0qk19; 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 S230266AbiJPRFU (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Sun, 16 Oct 2022 13:05:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230227AbiJPRE3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 16 Oct 2022 13:04:29 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC85844CC7 for <linux-kernel@vger.kernel.org>; Sun, 16 Oct 2022 10:03:09 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id cr19so3262335qtb.0 for <linux-kernel@vger.kernel.org>; Sun, 16 Oct 2022 10:03:08 -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 :message-id:reply-to; bh=7tlOCAYHN2Y3xhk9dkRfACKtc8xJakVTM1MhtXVqD2k=; b=SdK0qk19osurWIczOdFuqewveos1pKAMTRzBeZw0R4Fva46GzjQYyp/jx/SQJRYkYZ XdWLR7Kdx1jrcMq8n23WSrc6KcHvy842gUT5+wHfjS/Ta7juI19QW//gQew1X5l4BbzB DJDGCFNdS4MjfZVPk39Lr2BHX7jnnFhAhFrj+kZNdW05BvIHvXV4LC4fwVvR1B3goDDU 5tGF9PakBTxxVCnOVfmdyKc5+pCoby2585X0NYLSTJwhSU9F4MOjXZVQw361BBdMBjOB pCg6EOWrlD2H6jRNtfE4kC2cTZEGoDyhGA8J2l9Hs39dOh5i/edYKkivrkcpjzNvsHcg Ihbg== 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:message-id:reply-to; bh=7tlOCAYHN2Y3xhk9dkRfACKtc8xJakVTM1MhtXVqD2k=; b=1besBcn8eFfFboqywSrhAYdQ1x3Fztwwe+9IaiGE1uVlbbgVbqoDKL0IgBNGSwdaME Gaf8e+C6zvDt3DN4irNdJjH8exJjGD9flvO7jdzHF1ZWVOYSK9qv1NxDrCi46lOEWEu7 78ofpWL0hOYzlqDOmQ8ky08aSxJrCIufQhAw3jbMdRGjUp6Uf9F6oXxcjbkqKK2spcif d5UVeHntWTMFG+c5jOg4uhImH8eJmlEUohNfPsVff5p5OU57Qt3LPgAvrFmollwr95lb fy3ojbkXtt0Ang4JWU+bVwmDx6juES0csgKMK6pdq2c4i3rdYdvpWp/RrZq8whqv4F2C 5H1A== X-Gm-Message-State: ACrzQf2lo28oEkF4ad2Kj4rM+342EFYUnPLtP4gwBkryfT7bdZc27ARx d+1fFhyMM0xE/6eY2W1SogDuLA== X-Received: by 2002:a05:622a:54d:b0:39c:dadc:10db with SMTP id m13-20020a05622a054d00b0039cdadc10dbmr5897879qtx.504.1665939776227; Sun, 16 Oct 2022 10:02:56 -0700 (PDT) Received: from krzk-bin.hsd1.pa.comcast.net ([2601:42:0:3450:9b13:d679:7b5b:6921]) by smtp.gmail.com with ESMTPSA id q6-20020a05620a0d8600b006ce7bb8518bsm7539967qkl.5.2022.10.16.10.02.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Oct 2022 10:02:55 -0700 (PDT) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@somainline.org>, Linus Walleij <linus.walleij@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Stephan Gerhold <stephan@gerhold.net>, Shawn Guo <shawn.guo@linaro.org>, Vinod Koul <vkoul@kernel.org>, krishna Lanka <quic_vamslank@quicinc.com>, Sivaprakash Murugesan <sivaprak@codeaurora.org>, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Rob Herring <robh@kernel.org> Subject: [PATCH v5 33/34] dt-bindings: pinctrl: qcom,sc7280: fix matching pin config Date: Sun, 16 Oct 2022 13:00:34 -0400 Message-Id: <20221016170035.35014-34-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221016170035.35014-1-krzysztof.kozlowski@linaro.org> References: <20221016170035.35014-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746865766180973307?= X-GMAIL-MSGID: =?utf-8?q?1746865766180973307?= |
Series |
pinctrl/arm64: qcom: continued - fix Qualcomm TLMM pinctrl schema warnings (third set)
|
|
Commit Message
Krzysztof Kozlowski
Oct. 16, 2022, 5 p.m. UTC
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 <krzysztof.kozlowski@linaro.org> Reviewed-by: Bjorn Andersson <andersson@kernel.org> Reviewed-by: Rob Herring <robh@kernel.org> --- .../bindings/pinctrl/qcom,sc7280-pinctrl.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
Comments
On Sun, 16 Oct 2022 13:00:34 -0400, Krzysztof Kozlowski wrote: > 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. > > Applied, thanks! [33/34] dt-bindings: pinctrl: qcom,sc7280: fix matching pin config https://git.kernel.org/krzk/linux-dt/c/bb65ee4a3c1dc17359d86147288c9e0e65491304 Best regards,
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>;