Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp483003rwb; Mon, 26 Sep 2022 01:27:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7yLVgCrCYn4+sWKWeaokCdQvD/aA/65vsfGAa/jrCosxiANWoW/8DwuephN9EtHKl3y8tc X-Received: by 2002:a17:902:8643:b0:178:a33f:aa29 with SMTP id y3-20020a170902864300b00178a33faa29mr20960761plt.29.1664180823843; Mon, 26 Sep 2022 01:27:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664180823; cv=none; d=google.com; s=arc-20160816; b=RkU1IwMPL454NxIhw1VLQNi8qUR4l0OVjJZvNMlne3DPOBze9oL56aJwO5JnAsZ06S zlXVLtOkfoTapGMHLCRGnGy9C/8V4u3EDMfBeO9FUrlCLcS5xbptaqlVIf6v0BzhrCQk WIMboTiyOkd7MF99U/aCDnjNZ1p+LeAv5BvTkbhNEatiA5nRbHhdkTitVogw5LsRZBKV wpEUt0h+0ejPwlDs5FzgYHAvSC6XIeG2ZWBRO0qNENP/dQlnVajFlSXgkQhVFlhQRKYR Pp2c1NUowCixcik/rPC8PCWPIXJLgmxsLOOHKlH5nvJZp6oQzn+KR74DGxAe+gjGdwa3 ooCQ== 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=t8+qCMdbFYWvCOtbDLsLD7tINzyrBmDRKDZb7KLMHDo=; b=i5GbbEA3c5q6kF67RMEYy2fA1J+bTzNhJ4jUBCDLCopIMcp8swaxa6BE6calVNKIVP Wy7QP6jJrUlm/PixG15R/n7CobErGZCfwD3/tq5o4Hu6tKYRRPZ7wihXYZ7cmSEPhNTO Ce8kv7o/u6mmPNw0ylOgs7b/d+r9vSYY4w0d06drqekUXCKtOBgxgmu+2jTTN1+Ejh84 VZPbgcEgbZoU+1pxAL7BHiJlhHwx96kxs1Rf6l+6f7yCK7c7u4go3I8LL0VEG0punf+R 6hr8TiizPVj31KKoGwvi4o4ktC4ixx2laGriV102lN3ha/ChWcDG1DmiXjdl51Mm+h04 Y4aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="U9E4/gkM"; 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 w10-20020a170902e88a00b0017829a3df70si13102251plg.390.2022.09.26.01.26.50; Mon, 26 Sep 2022 01:27:03 -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="U9E4/gkM"; 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 S234307AbiIZHs7 (ORCPT + 99 others); Mon, 26 Sep 2022 03:48:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234343AbiIZHrq (ORCPT ); Mon, 26 Sep 2022 03:47:46 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EB156140 for ; Mon, 26 Sep 2022 00:45:24 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id b24so6433140ljk.6 for ; Mon, 26 Sep 2022 00:45:24 -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=t8+qCMdbFYWvCOtbDLsLD7tINzyrBmDRKDZb7KLMHDo=; b=U9E4/gkMQGH3XCUwZtjtGfgG8yh2OLUIGGA8wdi7F6vIWM2jipGP+wHEXG4ulA8bCO Q+PbBE4job3j4Yi9au/bAPbQYYfEKb2Mdy/B/vvNxOcAqIkZqMruzY3ypEnNHeBSDlTP LLec9ZNG5l2bcYh7NdM36oLctc/OV1Q7uSfTIBBMkmcjNbaRMdtMbYCIOrU6MoaAkM2h dnzoEbHeHR7IlZhTCqtEHadQHEiC7UTsh9KH/o09AXi9mpRgapFNMrPqrF3F9ClAe9gG JYfsXNnkKKIaeTKltftM3B1Wn8bqcs7YFb8kYR6d48h05iIPpco1LsFY1UumZnljASVU EpFQ== 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=t8+qCMdbFYWvCOtbDLsLD7tINzyrBmDRKDZb7KLMHDo=; b=oeN4miz0tn2xrkzqJYHDf6DKFdtVuiWmwKV0KzGBPmkgrkuzUK2cAN/6ND6eVuPUBr Z1Kx18sr1tDEiqmLo4+at7SYmZB0h567obr1MgKBdjagvOd9QNi2KQabd0SFcLTBb3nz A68gVUcQ2k8WWULDnD5M+rjjVpfdnykkL9psLWF/tiKAlbEkZzIXw76ElLBXzbh3zxNY WxiKFq/QpXmmSJxLeSv9IBRi8/VdLlx8Ckw604EmIdHUbEqb7wPtoqMDLMLA9IK7k0wX upvawwgp9aUm/Hs+gxZXxJx+HKRNtRzBVn9cEm/mcegYy8eAZ6obtg+ToSJRFXyf/yw/ nZrQ== X-Gm-Message-State: ACrzQf3m9C6mU29vLwVZz2Waz/NEGAPGqZmutiQpLYLvgYPT1jM1s4Cm SILBqZ+sqiB4rfKJwsXY26mGiA== X-Received: by 2002:a2e:bd09:0:b0:264:6516:93f9 with SMTP id n9-20020a2ebd09000000b00264651693f9mr7116421ljq.127.1664178323820; Mon, 26 Sep 2022 00:45:23 -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 g6-20020a19e046000000b004978e51b691sm2453298lfj.266.2022.09.26.00.45.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 00:45:22 -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 Subject: [PATCH v2 30/33] dt-bindings: pinctrl: qcom,sdx65: fix matching pin config Date: Mon, 26 Sep 2022 09:44:12 +0200 Message-Id: <20220926074415.53100-31-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220926074415.53100-1-krzysztof.kozlowski@linaro.org> References: <20220926074415.53100-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: 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 --- .../devicetree/bindings/pinctrl/qcom,sdx65-pinctrl.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sdx65-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sdx65-pinctrl.yaml index cdfcf29dffee..0f796f1f0104 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sdx65-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sdx65-pinctrl.yaml @@ -49,8 +49,10 @@ patternProperties: oneOf: - $ref: "#/$defs/qcom-sdx65-tlmm-state" - patternProperties: - ".*": + "-pins$": $ref: "#/$defs/qcom-sdx65-tlmm-state" + additionalProperties: false + '$defs': qcom-sdx65-tlmm-state: type: object @@ -175,13 +177,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; -- 2.34.1