From patchwork Sun Oct 16 17:00:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3085 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1088952wrs; Sun, 16 Oct 2022 10:03:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6dygeg5LXAV9b+8EIjjGrflnIcjaiwSJ3bk9iYoM60bitsY0P5e7gg7Sjoes0oiSSb7SvU X-Received: by 2002:a17:902:bcc3:b0:178:639a:1a10 with SMTP id o3-20020a170902bcc300b00178639a1a10mr7884435pls.159.1665939794076; Sun, 16 Oct 2022 10:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665939794; cv=none; d=google.com; s=arc-20160816; b=ESFP94BW+sRcdUP9S6GCss69FVuanPBRxVv7e1jxRWJR498UIXI8/jb/usu28F4Fvj TKb0uhEDtXjvpURZ6RaUKer3q0H380dAU0KwnE0fsvJNxXltmELgsWtE9EyhZKkpZqkf sdYYvlBp8NJtA8l7qWeio36oYaxxrEs6HmnAi72KAc8zFcXmbEnrTvBJOCiO084gLbVD Ls5hGC8Rm/oGgsTwUP/VxRmGMFYQhvz82rhQINDNAsAo2HMBiaR9GWSFiP5nf034nstb YpHw7YdmX297dehOxKMRP4LWB9T3F8kRIeEzhCu1H/Pn1tMX+HZxLxYUQNmmLt8Mfddu kiUw== 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=AcryhcSKYsm50IVcES+ItDf1stpN5ttEYxiXKKtF050p6L+Du0gyYvw3fKNJkBj/jO qJQpeq5zKuSaM549DWQGw67WrDq0zkuWwCE/ftL1Bgu9c5Bq1g+lThQLZAP7vNSvv4mZ 53Rcaf7IX/rpBZv/wyM9w6iP7/bfEqgkPxhDXph9zrlGJDoG7F8qFx8Rh3Pt2eUROijM 30vKatMAhXFfcZXJIHY8BgclPazkq6gnMko7bVDHlVhOzmdAHlF2P7QS5KO020zsI2BV dfvo8dTDjAFEX33RRfiAorxco72JJg9DPVZ++yschgighocdhTkpmA3tSPlqVkfI/yc5 hYiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YRfxyGeF; 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 y12-20020a1709027c8c00b001769e71398csi8684476pll.340.2022.10.16.10.02.59; Sun, 16 Oct 2022 10:03:14 -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=YRfxyGeF; 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 S229968AbiJPRCh (ORCPT + 99 others); Sun, 16 Oct 2022 13:02:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229925AbiJPRCG (ORCPT ); Sun, 16 Oct 2022 13:02:06 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C5B23868B for ; Sun, 16 Oct 2022 10:01:52 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id a18so5466782qko.0 for ; Sun, 16 Oct 2022 10:01:52 -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=F+J798FgdxjOymxzo9NpgSksOzAvjC4SZmthtS8ZpaI=; b=YRfxyGeFsuIMwTZrz91juh9A1kbPn0gWtu2EYBK+nuBv5Uvyc9F3+0pvekoXZRjkFk wz2rHSJplqQYnNRuF6W9OXKL6eJZf8zgnMA6bltgjjnpYapQczBW9ffN+Wdzsbd0L9WP NT/kFaQ2Zfrpr1uGy07PHrESrkVX2X61+95StFPup88G+EIp3X1iQoqcjcUpMJr4sNYp F+2a5Njnv9IYMzo8yZdq08ju/xrEbOsEx6lyY4/eNIHDvlsUxy8QHvHhJ8xlJ4pSwddE EzZSXfb9GMmlKSWZwE/b9NgvZq9sKvMPp+OINcKVasitVxGLvR/GvbkNvWUx5hANMuWZ iblQ== 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=F+J798FgdxjOymxzo9NpgSksOzAvjC4SZmthtS8ZpaI=; b=iVIcFY/eH3+obZUSrCEAzpSxdwbeFzDS6FUowRHtLHPhs+2GekeefcyQt1FrcbdL1A z4JWlQJIbcsuTXKfFu4OjTer+QnDYTFMXwSa4QlOy6Svh1MBKK1qnl2Bh1wlL7oljRBA Y5dBxIDSq97LJGs2RXGJqdWGBY7TgS1ekw3r3GO0r2hddn9Ry/yZiOd95WVOPR7NGg8F YtsVqnrLpFjNojrS3snSMXcrNYbN++lMv4LY8EGu+qdHVozAPmB5azefpB0OcUbumFbT 0lQHNymoT4ycFi1AkwYRRJPtjdnaY0ydV30axy+3SWRQhnzSnYzNTKU2XGvpYXS4Y/rB HLXQ== X-Gm-Message-State: ACrzQf1My4IywlVKzyj8JWBdhAe/QSAOV5q4TshCGa5HpGRslnyZaZD5 Eh7VgGFILCKClTCS3wRAaFKqjQ== X-Received: by 2002:a05:620a:4502:b0:6cf:982a:1141 with SMTP id t2-20020a05620a450200b006cf982a1141mr5050803qkp.147.1665939712505; Sun, 16 Oct 2022 10:01:52 -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.01.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Oct 2022 10:01:51 -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 v5 11/34] dt-bindings: pinctrl: qcom,ipq6018: fix matching pin config Date: Sun, 16 Oct 2022 13:00:12 -0400 Message-Id: <20221016170035.35014-12-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746864485667065908?= X-GMAIL-MSGID: =?utf-8?q?1746864485667065908?= 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>;