From patchwork Sun Oct 16 17:00:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3093 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1089308wrs; Sun, 16 Oct 2022 10:04:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6WsejzLgK0bx8JtqEnIwk0M4yARvuxm207ELUVnZ/3r/xBonQWXB22ZbZLzmlLHwgB9RW5 X-Received: by 2002:a17:902:be18:b0:178:b9c9:97b8 with SMTP id r24-20020a170902be1800b00178b9c997b8mr7665427pls.38.1665939849026; Sun, 16 Oct 2022 10:04:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665939849; cv=none; d=google.com; s=arc-20160816; b=gbERQpG10Bc28SzN4LJKt2yGwhpcL4mPU7cMzMCIylfab2eTOgDd2Pehjqd9wlasTu A5htdiQ2SY7RhXqnYP+04jcjMCohWFdzpKrGeLEAhjHblqSInNBsZokfELIV9UV19VTb MYotlPtAXaUZCSYPjAwqSjc1hAG0uuo9W0kvbT9vY6qQv2nrBTJr8Vn8P8JujRAwZjRv 8C8OFzFtNnF6OKPAccidJjO056P0BJpTO9uVPwDN58T2rgzfEToPl65oEQlDo09bjMLv cRhpbmPOwWzXiWhSym8lCcAVhNBFuhkNz5AX4SKKK3qczaTa6AVpPjxEdE2pK9/Zk7C2 MWig== 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=BhbTeBROl4/tOR51peuLJrLs0zaAX19oqYrmPX71dUc=; b=e15YJm+6983gkH/0vVe6/rGbCP4NvDCLqDlQehT5LFH1czuSM1dLZfQDmcOh15FJuO dS3JEyRmc2HLV7758Mv/q81AJEkQ8RGSp/oue06uwPnvZ2Sbq0HkyT2/TsmJHghSJYmp dB2LKVQvRtos6RCquinhv6ZHOLvZxbRL6LnTWnOVKN6jaCOfVGR25Qit0Ns9cF2Jt5lF yP2gUcmxAdxRZpigqmx/dG0befZNOGQV22gI1nWvLh9nbXlet31bP/x7bfMG7VWbvWAL QBlKuepWA/+nloZc7xPHzt37gmdAxudfvXbbSAnvbUZOckr0YdeOIr/4q6vUAjevR8FI x/pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k7kG1MHu; 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 m9-20020a655649000000b004632ef90079si10133743pgs.858.2022.10.16.10.03.54; Sun, 16 Oct 2022 10:04:09 -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=k7kG1MHu; 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 S230129AbiJPRDa (ORCPT + 99 others); Sun, 16 Oct 2022 13:03:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230010AbiJPRCv (ORCPT ); Sun, 16 Oct 2022 13:02:51 -0400 Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0FCD3A4A9 for ; Sun, 16 Oct 2022 10:02:14 -0700 (PDT) Received: by mail-qk1-x729.google.com with SMTP id 8so5447768qka.1 for ; Sun, 16 Oct 2022 10:02: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 :message-id:reply-to; bh=BhbTeBROl4/tOR51peuLJrLs0zaAX19oqYrmPX71dUc=; b=k7kG1MHuqLhkp8dyErlwgoIwyDXpGaiIg6IVJ7KEfhVnnakONcJ9A/LmL4ZKAsUeDJ 1gRV3Wude+1SE09DrhjIL49BY6nVnlcsMOCSw/ey7jp45psaMwSV5AxpcyykUafPZ94u tU1yvdqKVvBtuRKbpsALcPauSDegT10/RmhBdoRqBeW4m5B5rDiDeEntFkExamEhMiWo ddpMLq6ZpBzTjjtlFBTO3d7Mzr0ogAINXrdmXIMugGYtKGUAJ2UfapzQwkux8YljSa+O VcdURNNj14eeui20hjsaj9iYlvfDvOzQhpnNS99yOQKVof5g6kU5UOLustGkbSt/TDMW t4Qg== 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=BhbTeBROl4/tOR51peuLJrLs0zaAX19oqYrmPX71dUc=; b=NRnHgz1jODJO5AaorCs7qeHPa3lfdOMYAN0op/3UrBLxynnWETxALWaqK/Uj7gyOZq /hKBFFQ8N26QRxDvRYu5oLyYSBiCQ/vbDLFz1SzgKG2iQj5qXtmdGqYfYmsuHmwyvzyU 8rWpCTcvtAx8Fp0kRVeHnT6Ft3JP7a5EXOKotAnDXkwyFnzneQ7gEjROk3Y5c81F3v0p x2cZU6/GQD6EgKuhV1OnR57gejSEHFzrMEx1zf+O8pkmJT9d6SB564+ky1v/RsDJ3RDC Q3QQBn7ru7cUkYx/IcpyzRp64gwFzdS4GuzP50UvEVFw44Dy3DZjo0Vz5rMaG5UynsZz gtOw== X-Gm-Message-State: ACrzQf2SOc185Wj35Cvm/YAsa1A+VfebLEStaBzn6s2usXY2egm1yDHu sfUGhD8v/gnUDB2T1j/LPv3X2g== X-Received: by 2002:a05:620a:199e:b0:6ce:3ffc:b43e with SMTP id bm30-20020a05620a199e00b006ce3ffcb43emr5034374qkb.252.1665939730312; Sun, 16 Oct 2022 10:02:10 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Oct 2022 10:02:08 -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 18/34] dt-bindings: pinctrl: qcom,msm8909-tlmm: fix matching pin config Date: Sun, 16 Oct 2022 13:00:19 -0400 Message-Id: <20221016170035.35014-19-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=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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746864543167665736?= X-GMAIL-MSGID: =?utf-8?q?1746864543167665736?= 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: Stephan Gerhold Reviewed-by: Rob Herring --- .../devicetree/bindings/pinctrl/qcom,msm8909-tlmm.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,msm8909-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,msm8909-tlmm.yaml index e03530091478..b1735918fa90 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,msm8909-tlmm.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,msm8909-tlmm.yaml @@ -43,8 +43,9 @@ patternProperties: oneOf: - $ref: "#/$defs/qcom-msm8909-tlmm-state" - patternProperties: - ".*": + "-pins$": $ref: "#/$defs/qcom-msm8909-tlmm-state" + additionalProperties: false $defs: qcom-msm8909-tlmm-state: @@ -136,13 +137,13 @@ examples: }; uart-w-subnodes-state { - rx { + rx-pins { pins = "gpio4"; function = "blsp_uart1"; bias-pull-up; }; - tx { + tx-pins { pins = "gpio5"; function = "blsp_uart1"; bias-disable;