diff mbox series

[v3,1/9] dt-bindings: PCI: renesas,pci-rcar-gen2: Add depends-on for RZ/N1 SoC family

Message ID 20221207162435.1001782-2-herve.codina@bootlin.com (mailing list archive)
State Superseded
Delegated to: Geert Uytterhoeven
Headers show
Series Add the Renesas USBF controller support | expand

Commit Message

Herve Codina Dec. 7, 2022, 4:24 p.m. UTC
In RZ/N1 SoC family, a h2mode setting is available to change the
USB configuration from one host and one device to two hosts.
This change will be done at sysctrl level and must not be done
while USB host or device are running.

In order to express this dependency (probe order dependency),
introduce 'depends-on' property at PCI bridge level.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
---
 .../devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml      | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml b/Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml
index 0f18cceba3d5..e1221ad68465 100644
--- a/Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml
+++ b/Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml
@@ -130,6 +130,12 @@  allOf:
             - const: hclkh
             - const: hclkpm
             - const: pciclk
+        depends-on:
+          $ref: /schemas/types.yaml#/definitions/phandle
+          description:
+            Phandle to the node (sysctrl node) that set the 'h2mode' value in
+            order to express the fact that sysctrl must set the 'h2mode' before
+            the underlying USB hosts start.
       required:
         - clock-names
     else: