dt-bindings: usb: Convert OMAP OHCI/EHCI bindings to schema
authorRob Herring <robh@kernel.org>
Tue, 24 Jan 2023 03:05:17 +0000 (21:05 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2023 14:45:06 +0000 (15:45 +0100)
The OMAP OHCI and EHCI USB host bindings follow the generic binding, so
add the compatibles and remove the old txt binding docs.

The examples in omap-usb-host.txt don't match actual users, so update
them dropping the fallback compatible.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230110-dt-usb-v3-3-5af0541fcf8c@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/mfd/omap-usb-host.txt
Documentation/devicetree/bindings/usb/ehci-omap.txt [deleted file]
Documentation/devicetree/bindings/usb/generic-ehci.yaml
Documentation/devicetree/bindings/usb/generic-ohci.yaml
Documentation/devicetree/bindings/usb/ohci-omap3.txt [deleted file]

index aa1eaa59581be9ab66be663fa55b502c99a5bcce..a0d8c30c2631e534cae50dfc7183cd04e744f31f 100644 (file)
@@ -64,8 +64,8 @@ Required properties if child node exists:
 Properties for children:
 
 The OMAP HS USB Host subsystem contains EHCI and OHCI controllers.
-See Documentation/devicetree/bindings/usb/ehci-omap.txt and
-Documentation/devicetree/bindings/usb/ohci-omap3.txt.
+See Documentation/devicetree/bindings/usb/generic-ehci.yaml and
+Documentation/devicetree/bindings/usb/generic-ohci.yaml.
 
 Example for OMAP4:
 
@@ -78,14 +78,14 @@ usbhshost: usbhshost@4a064000 {
        ranges;
 
        usbhsohci: ohci@4a064800 {
-               compatible = "ti,ohci-omap3", "usb-ohci";
+               compatible = "ti,ohci-omap3";
                reg = <0x4a064800 0x400>;
                interrupt-parent = <&gic>;
                interrupts = <0 76 0x4>;
        };
 
        usbhsehci: ehci@4a064c00 {
-               compatible = "ti,ehci-omap", "usb-ehci";
+               compatible = "ti,ehci-omap";
                reg = <0x4a064c00 0x400>;
                interrupt-parent = <&gic>;
                interrupts = <0 77 0x4>;
diff --git a/Documentation/devicetree/bindings/usb/ehci-omap.txt b/Documentation/devicetree/bindings/usb/ehci-omap.txt
deleted file mode 100644 (file)
index d77e11a..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-OMAP HS USB EHCI controller
-
-This device is usually the child of the omap-usb-host
-Documentation/devicetree/bindings/mfd/omap-usb-host.txt
-
-Required properties:
-
-- compatible: should be "ti,ehci-omap"
-- reg: should contain one register range i.e. start and length
-- interrupts: description of the interrupt line
-
-Optional properties:
-
-- phys: list of phandles to PHY nodes.
-  This property is required if at least one of the ports are in
-  PHY mode i.e. OMAP_EHCI_PORT_MODE_PHY
-
-To specify the port mode, see
-Documentation/devicetree/bindings/mfd/omap-usb-host.txt
-
-Example for OMAP4:
-
-usbhsehci: ehci@4a064c00 {
-       compatible = "ti,ehci-omap";
-       reg = <0x4a064c00 0x400>;
-       interrupts = <0 77 0x4>;
-};
-
-&usbhsehci {
-       phys = <&hsusb1_phy 0 &hsusb3_phy>;
-};
index 994818cb6044618c53dcf7cf882649a1c067face..2d382ae424dac1a04a91f59a57c5f6a4390ab4eb 100644 (file)
@@ -74,6 +74,7 @@ properties:
           - const: usb-ehci
       - enum:
           - generic-ehci
+          - ti,ehci-omap
           - usb-ehci
 
   reg:
index 8492d809ba4085f8a3753d02a683bca536146a18..a9ba7257b884288ac18e956d36411b3ec4c7e0b9 100644 (file)
@@ -46,7 +46,9 @@ properties:
               - ingenic,jz4740-ohci
               - snps,hsdk-v1.0-ohci
           - const: generic-ohci
-      - const: generic-ohci
+      - enum:
+          - generic-ohci
+          - ti,ohci-omap3
       - items:
           - enum:
               - cavium,octeon-6335-ohci
diff --git a/Documentation/devicetree/bindings/usb/ohci-omap3.txt b/Documentation/devicetree/bindings/usb/ohci-omap3.txt
deleted file mode 100644 (file)
index ce8c47c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-OMAP HS USB OHCI controller (OMAP3 and later)
-
-Required properties:
-
-- compatible: should be "ti,ohci-omap3"
-- reg: should contain one register range i.e. start and length
-- interrupts: description of the interrupt line
-
-Example for OMAP4:
-
-usbhsohci: ohci@4a064800 {
-       compatible = "ti,ohci-omap3";
-       reg = <0x4a064800 0x400>;
-       interrupts = <0 76 0x4>;
-};