Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp480889rwb; Mon, 26 Sep 2022 01:24:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4pv5/OTDgMeRNPosOToQewoxKZr+Yj6P3Z0dzu7vTo3o7pCEvNkmsLVGTRqp2TfTNd1om+ X-Received: by 2002:a17:906:dac8:b0:741:545b:796a with SMTP id xi8-20020a170906dac800b00741545b796amr16948442ejb.240.1664180659795; Mon, 26 Sep 2022 01:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664180659; cv=none; d=google.com; s=arc-20160816; b=jJEf8RpNF48HtbbA25/sN7hTuQAbPAZHVI82kSCJ9N3l4XTv/YOYA9zFk8TO1oJp5G Q6xfcH5Xoj0kOEuhxQN+yjM2G0xH3QE1tjCv0oyEBobilCsF2p1oX6n26Kr2Ngo7RTob mQRZuBJSzg3nUh+c11hTUVtNRnS4nl+Gg2nFxpY+O/xMxxxJuFAl/nmOOBmfCBw23a/P 6kUm/lT9B/jLcqzZGCmIbQXlL3KkDmKhORgbnP/Q3LsIdsUbrN+MBWGGDR1HRGJUggVC zNx4qhYACMBkSCYMM5Kn4ECuFT2DQfMPh4R0AIIV94wBMCnMEcLs+F3YM0b6BZhX3Ncc HzPg== 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=Zawl5uwjby0oyqN1nYVliQNubSbgLZAX+iK/cI5YQFc=; b=Lqp54ddTH0AAz8SBrgAB7k2URVpSEwbM9oaZKIMLh0ZGjMk+rrnWM5amGyCHXv12Mz z5m0W3ahHfZWuNAVUMH8tfDPdWabnUpquLwPk95al1F9SvIbJPo9bt+h+j9GWjHuNu5h cTboJVv6/I3vPnx55vsVBG+tAWWmhdFy7IB04nGJBMKdJR+4FpW7P3t4ASe8CLCKXyTm X/lPAPAcoCvRR7PUpmPyhlLm2+3ld2YEYXWiTC97k/B2E5uDPZRYNQeaEmafARW0Df4N rJbyClOxZ9y16wlz3cP6G/np0WqEufMPOVPPS8XbIo5163l1k6YsQRhBVGzeZnXLWWMf BwSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cnbHQr0Q; 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 e6-20020a17090658c600b0077b45792af8si13136963ejs.463.2022.09.26.01.23.54; Mon, 26 Sep 2022 01:24:19 -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=cnbHQr0Q; 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 S234388AbiIZHtU (ORCPT + 99 others); Mon, 26 Sep 2022 03:49:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234233AbiIZHr7 (ORCPT ); Mon, 26 Sep 2022 03:47:59 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4687E38685 for ; Mon, 26 Sep 2022 00:45:27 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id d42so9583892lfv.0 for ; Mon, 26 Sep 2022 00:45:27 -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=Zawl5uwjby0oyqN1nYVliQNubSbgLZAX+iK/cI5YQFc=; b=cnbHQr0Qor+baK/DW6RDWKmvrA6pubJlhEthFrOjL3IkshsAW6Xja8dsIbXMhZ+qcK PqES8iL0N2FMGPg/lvsiBeSlXyk1H988pnhvSldvcvSsiVjIWOBIwW51JV9UK0/TS4Ei 3suj9jYCiBQ5NZDVfgUfMYztop49noQQ3C1jAEWE7QqI/UnG2DKIwRl9TrnwOHTdJWka 2AwZrqec97sJL3frWglQh5+83vhq0JOdiRNOdxoOrDXysAwxI1H3QnBxFylatTwcX9kx 1SqaEin0/lV0V9pV+z8KbBwOQbS6RIGPC7rFtf4LQ+IQ3rVwnKVauu5G0Pi1PsTkocJL +XPg== 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=Zawl5uwjby0oyqN1nYVliQNubSbgLZAX+iK/cI5YQFc=; b=QtTkf1VKqgeo1VQI6zKZY84QBq6X+O7vwT4nEE4mCaoRUW3H5UN9CWHnVTWNJql1Ap 0pEW8u4eFxSUxCQHL3PORzt2x2DDqtExwh19VOMrwhcxGYrAB0AbCAEthAaG6JVX/vOu ZKU6J81UrWtj72B3Q+wwWXxRxX3M+MXb0952etwIegzn3U4P87Opw/4WtgzBywEUGFEg 3JB7JjRgewVpFVxSwsKOhBRh+Ytops9A7TNHsvcsEipFsL8wkOKvksPHiJG3BapueMrE UWa/sk5AS0VWh3A6VPbBqKmTKhmJ2I5/iMx4NmAcuOmEQ0QxFhfy4PQvDtUAKgNNu1n3 7V1Q== X-Gm-Message-State: ACrzQf2KNiSo0citVuGNUNAQts4K+IpkYriu3tTarWk8fraJvO2B/ja/ x0JHCFPA5Rr7RWNgQotaS0XErQ== X-Received: by 2002:ac2:464b:0:b0:49e:b29c:2b04 with SMTP id s11-20020ac2464b000000b0049eb29c2b04mr8034527lfo.127.1664178326692; Mon, 26 Sep 2022 00:45:26 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 00:45:26 -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 32/33] dt-bindings: pinctrl: qcom,sc7280: fix matching pin config Date: Mon, 26 Sep 2022 09:44:14 +0200 Message-Id: <20220926074415.53100-33-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 --- .../bindings/pinctrl/qcom,sc7280-pinctrl.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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>; -- 2.34.1