linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Andy Gross <agross@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konrad.dybcio@somainline.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Stephan Gerhold <stephan@gerhold.net>,
	Shawn Guo <shawn.guo@linaro.org>,
	Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
	Vinod Koul <vkoul@kernel.org>,
	krishna Lanka <quic_vamslank@quicinc.com>,
	Iskren Chernev <iskren.chernev@gmail.com>,
	Martin Botka <martin.botka@somainline.org>,
	linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	Rob Herring <robh@kernel.org>
Subject: [PATCH v3 12/33] dt-bindings: pinctrl: qcom,sm8250: use common TLMM schema
Date: Mon, 17 Oct 2022 18:59:51 -0400	[thread overview]
Message-ID: <20221017230012.47878-13-krzysztof.kozlowski@linaro.org> (raw)
In-Reply-To: <20221017230012.47878-1-krzysztof.kozlowski@linaro.org>

Reference common Qualcomm TLMM pin controller schema, to bring common
properties, other pinctrl schemas and additional checks, like function
required only for GPIOs.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
---
 .../bindings/pinctrl/qcom,sm8250-pinctrl.yaml | 34 ++++---------------
 1 file changed, 6 insertions(+), 28 deletions(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml
index e9619c4a39d8..e424ffc1472b 100644
--- a/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml
@@ -27,27 +27,13 @@ properties:
       - const: "south"
       - const: "north"
 
-  interrupts:
-    description: Specifies the TLMM summary IRQ
-    maxItems: 1
-
+  interrupts: true
   interrupt-controller: true
-
-  '#interrupt-cells':
-    description:
-      Specifies the PIN numbers and Flags, as defined in defined in
-      include/dt-bindings/interrupt-controller/irq.h
-    const: 2
-
+  "#interrupt-cells": true
   gpio-controller: true
-
-  '#gpio-cells':
-    description: Specifying the pin number and flags, as defined in
-      include/dt-bindings/gpio/gpio.h
-    const: 2
-
-  gpio-ranges:
-    maxItems: 1
+  "#gpio-cells": true
+  gpio-ranges: true
+  wakeup-parent: true
 
   gpio-reserved-ranges:
     minItems: 1
@@ -56,8 +42,6 @@ properties:
   gpio-line-names:
     maxItems: 180
 
-  wakeup-parent: true
-
 patternProperties:
   "-state$":
     oneOf:
@@ -124,18 +108,12 @@ $defs:
     additionalProperties: false
 
 allOf:
-  - $ref: "pinctrl.yaml#"
+  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
 
 required:
   - compatible
   - reg
   - reg-names
-  - interrupts
-  - interrupt-controller
-  - '#interrupt-cells'
-  - gpio-controller
-  - '#gpio-cells'
-  - gpio-ranges
 
 additionalProperties: false
 
-- 
2.34.1


  parent reply	other threads:[~2022-10-17 23:01 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-17 22:59 [PATCH v3 00/33] pinctrl/arm64: qcom: continued - fix Qualcomm TLMM pinctrl schema warnings (5th set) Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 01/33] dt-bindings: pinctrl: qcom,mdm9607: drop ref to pinctrl.yaml Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 02/33] dt-bindings: pinctrl: qcom,sc8180x: " Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 03/33] dt-bindings: pinctrl: qcom,sc8180x: drop checks used in common TLMM Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 04/33] dt-bindings: pinctrl: qcom,sc8280xp: " Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 05/33] dt-bindings: pinctrl: qcom,sm6115: use common TLMM schema Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 06/33] dt-bindings: pinctrl: qcom,sm6125: drop checks used in common TLMM Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 07/33] dt-bindings: pinctrl: qcom,sm6125: drop ref to pinctrl.yaml Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 08/33] dt-bindings: pinctrl: qcom,sm6350: " Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 09/33] dt-bindings: pinctrl: qcom,sm6350: drop checks used in common TLMM Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 10/33] dt-bindings: pinctrl: qcom,sm6375-tlmm: drop ref to pinctrl.yaml Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 11/33] dt-bindings: pinctrl: qcom,sm6375-tlmm: drop checks used in common TLMM Krzysztof Kozlowski
2022-10-17 22:59 ` Krzysztof Kozlowski [this message]
2022-10-17 22:59 ` [PATCH v3 13/33] dt-bindings: pinctrl: qcom,sm8350: drop ref to pinctrl.yaml Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 14/33] dt-bindings: pinctrl: qcom,sm8350: drop checks used in common TLMM Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 15/33] dt-bindings: pinctrl: qcom,sm8450: " Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 16/33] dt-bindings: pinctrl: qcom,mdm9607-tlmm: minor style cleanups Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 17/33] dt-bindings: pinctrl: qcom,msm8909-tlmm: " Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 18/33] dt-bindings: pinctrl: qcom,qcm2290-tlmm: " Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 19/33] dt-bindings: pinctrl: qcom,sdx65-tlmm: " Krzysztof Kozlowski
2022-10-17 22:59 ` [PATCH v3 20/33] dt-bindings: pinctrl: qcom,sc8180x-tlmm: " Krzysztof Kozlowski
2022-10-17 23:00 ` [PATCH v3 21/33] dt-bindings: pinctrl: qcom,sc8280xp-tlmm: " Krzysztof Kozlowski
2022-10-17 23:00 ` [PATCH v3 22/33] dt-bindings: pinctrl: qcom,sm6115-tlmm: " Krzysztof Kozlowski
2022-10-17 23:00 ` [PATCH v3 23/33] dt-bindings: pinctrl: qcom,sm6125-tlmm: " Krzysztof Kozlowski
2022-10-17 23:00 ` [PATCH v3 24/33] dt-bindings: pinctrl: qcom,sm6350-tlmm: " Krzysztof Kozlowski
2022-10-17 23:00 ` [PATCH v3 25/33] dt-bindings: pinctrl: qcom,sm6375-tlmm: " Krzysztof Kozlowski
2022-10-17 23:00 ` [PATCH v3 26/33] dt-bindings: pinctrl: qcom,sm8250: " Krzysztof Kozlowski
2022-10-17 23:00 ` [PATCH v3 27/33] dt-bindings: pinctrl: qcom,sm8350-tlmm: " Krzysztof Kozlowski
2022-10-17 23:00 ` [PATCH v3 28/33] dt-bindings: pinctrl: qcom,sm8450-tlmm: " Krzysztof Kozlowski
2022-10-17 23:00 ` [PATCH v3 29/33] dt-bindings: pinctrl: qcom,sc7280-lpass-lpi: " Krzysztof Kozlowski
2022-10-17 23:00 ` [PATCH v3 30/33] dt-bindings: pinctrl: qcom,sc8280xp-lpass-lpi: " Krzysztof Kozlowski
2022-10-17 23:00 ` [PATCH v3 31/33] dt-bindings: pinctrl: qcom,sm8250-lpass-lpi: " Krzysztof Kozlowski
2022-10-17 23:00 ` [PATCH v3 32/33] dt-bindings: pinctrl: qcom,sm8450-lpass-lpi: " Krzysztof Kozlowski
2022-10-17 23:00 ` [PATCH v3 33/33] dt-bindings: pinctrl: qcom: adjust description Krzysztof Kozlowski
2022-10-18 16:18 ` [PATCH v3 00/33] pinctrl/arm64: qcom: continued - fix Qualcomm TLMM pinctrl schema warnings (5th set) Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221017230012.47878-13-krzysztof.kozlowski@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=iskren.chernev@gmail.com \
    --cc=konrad.dybcio@somainline.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.botka@somainline.org \
    --cc=quic_vamslank@quicinc.com \
    --cc=robh+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=shawn.guo@linaro.org \
    --cc=srinivas.kandagatla@linaro.org \
    --cc=stephan@gerhold.net \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).