Commit 73d4839a authored by Charan Pedumuru's avatar Charan Pedumuru Committed by Greg Kroah-Hartman
Browse files

dt-bindings: usb: generic-ohci: add AT91RM9200 OHCI binding support



Convert the Atmel AT91RM9200 OHCI USB host controller binding to DT schema
by defining it in the existing generic OHCI schema.

Signed-off-by: default avatarCharan Pedumuru <charan.pedumuru@gmail.com>
Reviewed-by: default avatarRob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20260327-atmel-usb-v4-2-eb8b6e49b29d@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2b7f1a4f
Loading
Loading
Loading
Loading
+0 −27
Original line number Diff line number Diff line
Atmel SOC USB controllers

OHCI

Required properties:
 - compatible: Should be "atmel,at91rm9200-ohci" for USB controllers
   used in host mode.
 - reg: Address and length of the register set for the device
 - interrupts: Should contain ohci interrupt
 - clocks: Should reference the peripheral, host and system clocks
 - clock-names: Should contain three strings
		"ohci_clk" for the peripheral clock
		"hclk" for the host clock
		"uhpck" for the system clock
 - num-ports: Number of ports.
 - atmel,vbus-gpio: If present, specifies a gpio that needs to be
   activated for the bus to be powered.
 - atmel,oc-gpio: If present, specifies a gpio that needs to be
   activated for the overcurrent detection.

usb0: ohci@500000 {
	compatible = "atmel,at91rm9200-ohci", "usb-ohci";
	reg = <0x00500000 0x100000>;
	clocks = <&uhphs_clk>, <&uhphs_clk>, <&uhpck>;
	clock-names = "ohci_clk", "hclk", "uhpck";
	interrupts = <20 4>;
	num-ports = <2>;
};

EHCI

Required properties:
+41 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ properties:
          - ti,ohci-omap3
      - items:
          - enum:
              - atmel,at91rm9200-ohci
              - cavium,octeon-6335-ohci
              - nintendo,hollywood-usb-ohci
              - nxp,ohci-nxp
@@ -137,6 +138,24 @@ properties:
      The associated ISP1301 device. Necessary for the UDC controller for
      connecting to the USB physical layer.

  atmel,vbus-gpio:
    description:
      GPIO used to control or sense the USB VBUS power. Each entry
      represents a VBUS-related GPIO; count and order may vary by hardware.
      Entries follow standard GPIO specifier format. A value of 0 indicates
      an unused or unavailable VBUS signal.
    minItems: 1
    maxItems: 3

  atmel,oc-gpio:
    description:
      GPIO used to signal USB overcurrent condition. Each entry represents
      an OC detection GPIO; count and order may vary by hardware. Entries
      follow standard GPIO specifier format. A value of 0 indicates an
      unused or unavailable OC signal.
    minItems: 1
    maxItems: 3

required:
  - compatible
  - reg
@@ -144,6 +163,28 @@ required:

allOf:
  - $ref: usb-hcd.yaml
  - if:
      properties:
        compatible:
          contains:
            const: atmel,at91rm9200-ohci
    then:
      properties:
        clock-names:
          items:
            - const: ohci_clk
            - const: hclk
            - const: uhpck

      required:
        - clocks
        - clock-names

    else:
      properties:
        atmel,vbus-gpio: false
        atmel,oc-gpio: false

  - if:
      not:
        properties: