devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: cros-qcom-dts-watchers@chromium.org,
	Andy Gross <agross@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
	Benjamin Li <benl@squareup.com>,
	James Willcox <jwillcox@squareup.com>,
	Joseph Gates <jgates@squareup.com>,
	Stephan Gerhold <stephan@gerhold.net>,
	Zac Crosby <zac@squareup.com>,
	Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
	Banajit Goswami <bgoswami@quicinc.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>, Lee Jones <lee@kernel.org>,
	Stephen Boyd <sboyd@kernel.org>, Joerg Roedel <joro@8bytes.org>,
	Will Deacon <will@kernel.org>,
	Robin Murphy <robin.murphy@arm.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Xu Yang <xu.yang_2@nxp.com>, Peng Fan <peng.fan@nxp.com>,
	Christian Marangi <ansuelsmth@gmail.com>,
	Wesley Cheng <quic_wcheng@quicinc.com>,
	Jun Nie <jun.nie@linaro.org>, Max Chen <mchen@squareup.com>,
	Shawn Guo <shawn.guo@linaro.org>,
	Vivek Gautam <vivek.gautam@codeaurora.org>
Cc: Marijn Suijten <marijn.suijten@somainline.org>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Vincent Knecht <vincent.knecht@mailoo.org>,
	Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	alsa-devel@alsa-project.org, iommu@lists.linux.dev,
	linux-usb@vger.kernel.org,
	Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	Leo Yan <leo.yan@linaro.org>, Rob Herring <robh@kernel.org>,
	Andy Gross <andy.gross@linaro.org>,
	Konrad Dybcio <konrad.dybcio@linaro.org>
Subject: [PATCH 08/11] dt-bindings: usb: ci-hdrc-usb2: Fix handling pinctrl properties
Date: Tue, 27 Jun 2023 18:24:24 +0200	[thread overview]
Message-ID: <20230627-topic-more_bindings-v1-8-6b4b6cd081e5@linaro.org> (raw)
In-Reply-To: <20230627-topic-more_bindings-v1-0-6b4b6cd081e5@linaro.org>

Untangle the bit messy oneOf trees and add the missing pinctrl-2 mention
to handle the different pinctrl combinations.

Fixes: 4c8375d35f72 ("dt-bindings: usb: ci-hdrc-usb2: convert to DT schema format")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 .../devicetree/bindings/usb/ci-hdrc-usb2.yaml      | 27 ++++++----------------
 1 file changed, 7 insertions(+), 20 deletions(-)

diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml
index 782402800d4a..24431a7adf3e 100644
--- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml
+++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml
@@ -199,17 +199,6 @@ properties:
       In case of HSIC-mode, "idle" and "active" pin modes are mandatory.
       In this case, the "idle" state needs to pull down the data and
       strobe pin and the "active" state needs to pull up the strobe pin.
-    oneOf:
-      - items:
-          - const: idle
-          - const: active
-      - items:
-          - const: default
-          - enum:
-              - host
-              - device
-      - items:
-          - const: default
 
   pinctrl-0:
     maxItems: 1
@@ -357,17 +346,15 @@ allOf:
             - const: active
     else:
       properties:
+        pinctrl-2:
+          maxItems: 1
+
         pinctrl-names:
           minItems: 1
-          maxItems: 2
-          oneOf:
-            - items:
-                - const: default
-                - enum:
-                    - host
-                    - device
-            - items:
-                - const: default
+          items:
+            - const: default
+            - const: host
+            - const: device
   - if:
       properties:
         compatible:

-- 
2.41.0


  parent reply	other threads:[~2023-06-27 16:25 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-27 16:24 [PATCH 00/11] Even more msm bindings fixes Konrad Dybcio
2023-06-27 16:24 ` [PATCH 01/11] arm64: dts: qcom: sc7180: Fix DSI0_PHY reg-names Konrad Dybcio
2023-07-25 15:06   ` Doug Anderson
2023-06-27 16:24 ` [PATCH 02/11] arm64: dts: qcom: msm8939: Drop "qcom,idle-state-spc" compatible Konrad Dybcio
2023-06-27 17:54   ` Benjamin Li
2023-06-27 16:24 ` [PATCH 03/11] arm64: dts: qcom: msm8939: Add missing 'cache-unified' to L2 Konrad Dybcio
2023-06-27 16:52   ` Bryan O'Donoghue
2023-07-01  8:06   ` Krzysztof Kozlowski
2023-06-27 16:24 ` [PATCH 04/11] arm64: dts: qcom: apq8039-t2: Drop inexistent property Konrad Dybcio
2023-06-27 16:51   ` Bryan O'Donoghue
2023-06-27 16:24 ` [PATCH 05/11] dt-bindings: sound: Convert pm8916-wcd-analog-codec to YAML Konrad Dybcio
2023-06-29 15:18   ` Rob Herring
2023-06-27 16:24 ` [PATCH 06/11] dt-bindings: mfd: qcom,spmi-pmic: Reference pm8916 wcd analog codec schema Konrad Dybcio
2023-06-29 15:19   ` Rob Herring
2023-07-13 15:40   ` Lee Jones
2023-06-27 16:24 ` [PATCH 07/11] dt-bindings: iommu: qcom_iommu: Allow 'tbu' clock Konrad Dybcio
2023-06-29 15:19   ` Rob Herring
2023-06-27 16:24 ` Konrad Dybcio [this message]
2023-06-29 15:23   ` [PATCH 08/11] dt-bindings: usb: ci-hdrc-usb2: Fix handling pinctrl properties Rob Herring
2023-06-29 20:04     ` Konrad Dybcio
2023-06-27 16:24 ` [PATCH 09/11] dt-bindings: arm: msm: kpss-acc: Make the optional reg truly optional Konrad Dybcio
2023-06-29 15:24   ` Rob Herring
2023-07-24  9:05   ` Krzysztof Kozlowski
2023-07-24  9:12     ` Krzysztof Kozlowski
2023-06-27 16:24 ` [PATCH 10/11] dt-bindings: usb: dwc3: Allow just 1 interrupt for MSM8996 Konrad Dybcio
2023-06-29 15:24   ` Rob Herring
2023-06-27 16:24 ` [PATCH 11/11] arm64: dts: qcom: msm8996: Add missing interrupt to the USB2 controller Konrad Dybcio
2023-07-10  5:07 ` (subset) [PATCH 00/11] Even more msm bindings fixes Bjorn Andersson
2023-07-12 11:46 ` Mark Brown
2023-07-22  5:17 ` Bjorn Andersson

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=20230627-topic-more_bindings-v1-8-6b4b6cd081e5@linaro.org \
    --to=konrad.dybcio@linaro.org \
    --cc=agross@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=andersson@kernel.org \
    --cc=andy.gross@linaro.org \
    --cc=ansuelsmth@gmail.com \
    --cc=benl@squareup.com \
    --cc=bgoswami@quicinc.com \
    --cc=broonie@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=conor+dt@kernel.org \
    --cc=cros-qcom-dts-watchers@chromium.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=iommu@lists.linux.dev \
    --cc=jgates@squareup.com \
    --cc=joro@8bytes.org \
    --cc=jun.nie@linaro.org \
    --cc=jwillcox@squareup.com \
    --cc=konradybcio@kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=lee@kernel.org \
    --cc=leo.yan@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=marijn.suijten@somainline.org \
    --cc=mchen@squareup.com \
    --cc=peng.fan@nxp.com \
    --cc=quic_wcheng@quicinc.com \
    --cc=robh+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=robin.murphy@arm.com \
    --cc=sboyd@kernel.org \
    --cc=shawn.guo@linaro.org \
    --cc=srinivas.kandagatla@linaro.org \
    --cc=stephan@gerhold.net \
    --cc=vincent.knecht@mailoo.org \
    --cc=vivek.gautam@codeaurora.org \
    --cc=will@kernel.org \
    --cc=xu.yang_2@nxp.com \
    --cc=zac@squareup.com \
    /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).