From patchwork Sun Oct 16 17:00:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3096 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1089386wrs; Sun, 16 Oct 2022 10:04:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5U1b6mfNCQovrmbl88ieKQXhWpQxmcpw2QTG+qRY3byPxmnTJ2FUKzfYLRF2nf+aukp/Os X-Received: by 2002:a17:90b:1a84:b0:20d:5086:3694 with SMTP id ng4-20020a17090b1a8400b0020d50863694mr9336076pjb.74.1665939860269; Sun, 16 Oct 2022 10:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665939860; cv=none; d=google.com; s=arc-20160816; b=NTeDws+DLQ0KjG215S5T/6N8ZfEFtDm7PpidEAF4dXUJlnaGUWOllGSJt4w+nymFK5 kH/F7Plgx+Dd4UkRnyBzRNgIHB4MFY/yiQlM+ozGdVV9D51KvcBz1jYNW/fftxfpvdfy YfXjb2QZwR20+EViMhS6GNy2tTYVp68woZ9TMwZO0bcQIiMQIrLMtrG7SVl/m8brNw5H uoLEicwN1sE4lp8SMuEC+UPvm6wfkBmk+wozzcv3264aZZAdqZ8gw7+iC2iOnnJx4+39 1D0pbO/wVlEUd0uY82OSwo0ZkoHs0XffhOeg+TxxMOOsAaf4Rmf6UQyG5kzP3F+Ycvif qsAg== 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=KzWzb3hZrQFEQ0Rr65DWDq+RHVqeUt74LUhgKPrHSTM=; b=nB7UvS0hVWtxablhP6Uf0T8d7M97itWQcpcGolp7xYEFIFx9DCXkpkjynwWHKGoaPC oe8YqThesxAKgHiE6rQ9w6Pn+3nvI9PQShxSOU07E8cBksX6/yjE88Q6oktUul/U8sNS 3WTaVVsJkOFPOC4ZUSEpZRh32aKXOsJIMTcitnSl0MXCXaQxuWaeUVrn9oHDgtDus16E gp8QhoZI+R6FzQadDSavUlnfmMI9XjDdj0ieeqigmlkfbaM6QCzL1vpaATgKMBCZBZfT Y2It4tSmhERzvxPYhuYIfj3W4dHLBaqrHdQqAf9eXMYJ4eg7/1dsdilceQm4N3vayRNq oPOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fcSTYvPV; 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 d9-20020a634f09000000b0045f8c545d04si8582357pgb.516.2022.10.16.10.04.07; Sun, 16 Oct 2022 10:04:20 -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=fcSTYvPV; 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 S230162AbiJPRDw (ORCPT + 99 others); Sun, 16 Oct 2022 13:03:52 -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 S229969AbiJPRDB (ORCPT ); Sun, 16 Oct 2022 13:03:01 -0400 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AF2341535 for ; Sun, 16 Oct 2022 10:02:18 -0700 (PDT) Received: by mail-qv1-xf2c.google.com with SMTP id z18so6246926qvn.6 for ; Sun, 16 Oct 2022 10:02:17 -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=KzWzb3hZrQFEQ0Rr65DWDq+RHVqeUt74LUhgKPrHSTM=; b=fcSTYvPVw/cVvd4ShMu7voCZ7hk1aYWR+T17HwIoW4ehm5RFmGA205Bmx1u0lv9Sfo kP8soj7Mtxv15L/LG+iULSL2PE+HkPPp7vXrwyGGIs3Oo+gaS8/puPip7kqZsoQcYkSc 5s5q1aQBpzEKNVoutwCqIsmPCq42uziehYKDyLZ8YUMKF/GsHzCqoHTgD3hc8R4bqxfm R5ViEqFeQvb12KahntWq9YnKzRn62boYX8+XJbbTbjcisFb1xA2eZfGbZ2NrcRp3/cEj hAGpq04GInAc/+VlRRbGKsSDS/GoHv5KUFSkTQTZSdSga29PxrHKtHtCQgKfaWiPhz5P KcIg== 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=KzWzb3hZrQFEQ0Rr65DWDq+RHVqeUt74LUhgKPrHSTM=; b=ecAOVK1r8r/FARs/cAte2KJhgKet/VcEMYnLxo1TLN+FTsyZ2SzR7l0UxE5pHf+1MX u4M7rFIodr3heFLSAKPxFhp3nwcma9i+Y10WoJmtvJsXiT9BfP+F3LuTtlP7LHF/xN75 MM3C/5U7Xah+ZzMRLGNVYNEm/TvVcj0SrOc9sK6Sf+oa/K6Mmu/moj7xo1IzZd1v5y/B i7CuQzAdKvvxOkTGT2aNgBPgSpKPAspLtfYPdkz5xblYoqDTNRtO9Brfj2XizsaV/sKW 60H4FXIb2VZjNzJIQO6eiM7oT8wblrz+tKwsYv33vee8Po5lucZAA6PVh3m1dIGXxYH0 9MSw== X-Gm-Message-State: ACrzQf0w3xtZCh/yzOET8WYkNVRs5riFrXmNMNi6p6aMDVsXAKaPSuFw 68jslz8lhX/SWiV1ZnOSiLCkAg== X-Received: by 2002:a0c:f4c9:0:b0:4b1:b290:a4d with SMTP id o9-20020a0cf4c9000000b004b1b2900a4dmr5738931qvm.68.1665939737675; Sun, 16 Oct 2022 10:02:17 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Oct 2022 10:02:16 -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 21/34] dt-bindings: pinctrl: qcom,msm8953: fix matching pin config Date: Sun, 16 Oct 2022 13:00:22 -0400 Message-Id: <20221016170035.35014-22-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?1746864555014691203?= X-GMAIL-MSGID: =?utf-8?q?1746864555014691203?= 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,msm8953-pinctrl.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml index d4da558cde54..c162796ab604 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml @@ -44,9 +44,17 @@ properties: gpio-ranges: maxItems: 1 -#PIN CONFIGURATION NODES patternProperties: - '-pins$': + "-state$": + oneOf: + - $ref: "#/$defs/qcom-msm8953-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-msm8953-tlmm-state" + additionalProperties: false + +$defs: + qcom-msm8953-tlmm-state: type: object description: Pinctrl node's client devices use subnodes for desired pin configuration. @@ -163,7 +171,7 @@ examples: #gpio-cells = <2>; gpio-ranges = <&tlmm 0 0 142>; - serial_default: serial-pins { + serial_default: serial-state { pins = "gpio4", "gpio5"; function = "blsp_uart2"; drive-strength = <2>;