All of lore.kernel.org
 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>
Subject: [PATCH 06/34] dt-bindings: pinctrl: qcom,sm6115: use common TLMM schema
Date: Thu,  6 Oct 2022 16:06:09 +0200	[thread overview]
Message-ID: <20221006140637.246665-7-krzysztof.kozlowski@linaro.org> (raw)
In-Reply-To: <20221006140637.246665-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>
---
 .../bindings/pinctrl/qcom,sm6115-pinctrl.yaml | 44 +++----------------
 1 file changed, 6 insertions(+), 38 deletions(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-pinctrl.yaml
index e39fbb36d8c1..3f5f5229a86c 100644
--- a/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-pinctrl.yaml
@@ -27,30 +27,13 @@ properties:
       - const: south
       - const: east
 
-  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
   gpio-reserved-ranges: true
-
   wakeup-parent: true
 
 #PIN CONFIGURATION NODES
@@ -69,6 +52,7 @@ patternProperties:
     description:
       Pinctrl node's client devices use subnodes for desired pin configuration.
       Client device subnodes use below standard properties.
+    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
 
     properties:
       pins:
@@ -120,31 +104,15 @@ patternProperties:
     required:
       - pins
 
-    allOf:
-      - $ref: "qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state"
-      - if:
-          properties:
-            pins:
-              pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-2])$"
-        then:
-          required:
-            - function
-
     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-06 14:07 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-06 14:06 [PATCH 00/34] pinctrl/arm64: qcom: continued - fix Qualcomm TLMM pinctrl schema warnings (5th set) Krzysztof Kozlowski
2022-10-06 14:06 ` [PATCH 01/34] dt-bindings: pinctrl: qcom,mdm9607: drop ref to pinctrl.yaml Krzysztof Kozlowski
2022-10-06 20:22   ` Rob Herring
2022-10-06 14:06 ` [PATCH 02/34] dt-bindings: pinctrl: qcom,sc7280: drop checks used in common TLMM Krzysztof Kozlowski
2022-10-06 20:22   ` Rob Herring
2022-10-06 14:06 ` [PATCH 03/34] dt-bindings: pinctrl: qcom,sc8180x: drop ref to pinctrl.yaml Krzysztof Kozlowski
2022-10-06 20:23   ` Rob Herring
2022-10-06 14:06 ` [PATCH 04/34] dt-bindings: pinctrl: qcom,sc8180x: drop checks used in common TLMM Krzysztof Kozlowski
2022-10-06 20:23   ` Rob Herring
2022-10-06 14:06 ` [PATCH 05/34] dt-bindings: pinctrl: qcom,sc8280xp: " Krzysztof Kozlowski
2022-10-06 20:24   ` Rob Herring
2022-10-06 14:06 ` Krzysztof Kozlowski [this message]
2022-10-06 20:24   ` [PATCH 06/34] dt-bindings: pinctrl: qcom,sm6115: use common TLMM schema Rob Herring
2022-10-07 12:43   ` Iskren Chernev
2022-10-06 14:06 ` [PATCH 07/34] dt-bindings: pinctrl: qcom,sm6125: drop checks used in common TLMM Krzysztof Kozlowski
2022-10-06 20:25   ` Rob Herring
2022-10-06 14:06 ` [PATCH 08/34] dt-bindings: pinctrl: qcom,sm6125: drop ref to pinctrl.yaml Krzysztof Kozlowski
2022-10-06 20:25   ` Rob Herring
2022-10-06 14:06 ` [PATCH 09/34] dt-bindings: pinctrl: qcom,sm6350: " Krzysztof Kozlowski
2022-10-06 20:26   ` Rob Herring
2022-10-06 14:06 ` [PATCH 10/34] dt-bindings: pinctrl: qcom,sm6350: drop checks used in common TLMM Krzysztof Kozlowski
2022-10-06 14:06 ` [PATCH 11/34] dt-bindings: pinctrl: qcom,sm6375-tlmm: drop ref to pinctrl.yaml Krzysztof Kozlowski
2022-10-06 20:26   ` Rob Herring
2022-10-06 14:06 ` [PATCH 12/34] dt-bindings: pinctrl: qcom,sm6375-tlmm: drop checks used in common TLMM Krzysztof Kozlowski
2022-10-06 20:27   ` Rob Herring
2022-10-06 14:06 ` [PATCH 13/34] dt-bindings: pinctrl: qcom,sm8250: use common TLMM schema Krzysztof Kozlowski
2022-10-06 20:27   ` Rob Herring
2022-10-06 14:06 ` [PATCH 14/34] dt-bindings: pinctrl: qcom,sm8350: drop ref to pinctrl.yaml Krzysztof Kozlowski
2022-10-06 20:28   ` Rob Herring
2022-10-06 14:06 ` [PATCH 15/34] dt-bindings: pinctrl: qcom,sm8350: drop checks used in common TLMM Krzysztof Kozlowski
2022-10-06 20:30   ` Rob Herring
2022-10-06 14:06 ` [PATCH 16/34] dt-bindings: pinctrl: qcom,sm8450: " Krzysztof Kozlowski
2022-10-06 20:32   ` Rob Herring
2022-10-06 14:06 ` [PATCH 17/34] dt-bindings: pinctrl: qcom,mdm9607: minor style cleanups Krzysztof Kozlowski
2022-10-06 20:33   ` Rob Herring
2022-10-06 14:06 ` [PATCH 18/34] dt-bindings: pinctrl: qcom,msm8909-tlmm: " Krzysztof Kozlowski
2022-10-06 15:36   ` Stephan Gerhold
2022-10-06 20:37   ` Rob Herring
2022-10-06 14:06 ` [PATCH 19/34] dt-bindings: pinctrl: qcom,qcm2290: " Krzysztof Kozlowski
2022-10-06 20:38   ` Rob Herring
2022-10-06 14:06 ` [PATCH 20/34] dt-bindings: pinctrl: qcom,sdx65: " Krzysztof Kozlowski
2022-10-06 20:38   ` Rob Herring
2022-10-06 14:06 ` [PATCH 21/34] dt-bindings: pinctrl: qcom,sc8180x: " Krzysztof Kozlowski
2022-10-06 20:38   ` Rob Herring
2022-10-06 14:06 ` [PATCH 22/34] dt-bindings: pinctrl: qcom,sc8280xp: " Krzysztof Kozlowski
2022-10-06 20:38   ` Rob Herring
2022-10-06 14:06 ` [PATCH 23/34] dt-bindings: pinctrl: qcom,sm6115: " Krzysztof Kozlowski
2022-10-06 20:38   ` Rob Herring
2022-10-06 14:06 ` [PATCH 24/34] dt-bindings: pinctrl: qcom,sm6125: " Krzysztof Kozlowski
2022-10-06 20:39   ` Rob Herring
2022-10-06 14:06 ` [PATCH 25/34] dt-bindings: pinctrl: qcom,sm6350: " Krzysztof Kozlowski
2022-10-06 20:39   ` Rob Herring
2022-10-06 14:06 ` [PATCH 26/34] dt-bindings: pinctrl: qcom,sm6375: " Krzysztof Kozlowski
2022-10-06 20:39   ` Rob Herring
2022-10-06 14:06 ` [PATCH 27/34] dt-bindings: pinctrl: qcom,sm8250: " Krzysztof Kozlowski
2022-10-06 20:40   ` Rob Herring
2022-10-06 14:06 ` [PATCH 28/34] dt-bindings: pinctrl: qcom,sm8350: " Krzysztof Kozlowski
2022-10-06 20:40   ` Rob Herring
2022-10-06 14:06 ` [PATCH 29/34] dt-bindings: pinctrl: qcom,sm8450: " Krzysztof Kozlowski
2022-10-06 20:40   ` Rob Herring
2022-10-06 14:06 ` [PATCH 30/34] dt-bindings: pinctrl: qcom,sc7280-lpass-lpi: " Krzysztof Kozlowski
2022-10-06 20:40   ` Rob Herring
2022-10-06 14:06 ` [PATCH 31/34] dt-bindings: pinctrl: qcom,sm8250-lpass-lpi: " Krzysztof Kozlowski
2022-10-06 20:41   ` Rob Herring
2022-10-06 14:06 ` [PATCH 32/34] dt-bindings: pinctrl: qcom,sc8280xp-lpass-lpi: " Krzysztof Kozlowski
2022-10-06 20:41   ` Rob Herring
2022-10-06 14:06 ` [PATCH 33/34] dt-bindings: pinctrl: qcom,sm8450-lpass-lpi: " Krzysztof Kozlowski
2022-10-06 20:48   ` Rob Herring
2022-10-06 14:06 ` [PATCH 34/34] dt-bindings: pinctrl: qcom: adjust description Krzysztof Kozlowski
2022-10-06 20:49   ` Rob Herring
2022-10-06 15:49 ` [PATCH 00/34] pinctrl/arm64: qcom: continued - fix Qualcomm TLMM pinctrl schema warnings (5th set) Stephan Gerhold
2022-10-06 20:21   ` Krzysztof Kozlowski
2022-10-17  9:24 ` Linus Walleij
2022-10-18  2:02   ` 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=20221006140637.246665-7-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=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.