Patrick Delaunay | 7515054 | 2019-03-29 15:42:15 +0100 | [diff] [blame] | 1 | Platform DesignWare HS OTG USB 2.0 controller |
| 2 | ----------------------------------------------------- |
| 3 | |
| 4 | Required properties: |
| 5 | - compatible : One of: |
| 6 | - brcm,bcm2835-usb: The DWC2 USB controller instance in the BCM2835 SoC. |
| 7 | - hisilicon,hi6220-usb: The DWC2 USB controller instance in the hi6220 SoC. |
| 8 | - rockchip,rk3066-usb: The DWC2 USB controller instance in the rk3066 Soc; |
| 9 | - "rockchip,px30-usb", "rockchip,rk3066-usb", "snps,dwc2": for px30 Soc; |
| 10 | - "rockchip,rk3188-usb", "rockchip,rk3066-usb", "snps,dwc2": for rk3188 Soc; |
| 11 | - "rockchip,rk3288-usb", "rockchip,rk3066-usb", "snps,dwc2": for rk3288 Soc; |
| 12 | - "lantiq,arx100-usb": The DWC2 USB controller instance in Lantiq ARX SoCs; |
| 13 | - "lantiq,xrx200-usb": The DWC2 USB controller instance in Lantiq XRX SoCs; |
| 14 | - "amlogic,meson8-usb": The DWC2 USB controller instance in Amlogic Meson8 SoCs; |
| 15 | - "amlogic,meson8b-usb": The DWC2 USB controller instance in Amlogic Meson8b SoCs; |
| 16 | - "amlogic,meson-gxbb-usb": The DWC2 USB controller instance in Amlogic S905 SoCs; |
| 17 | - "amcc,dwc-otg": The DWC2 USB controller instance in AMCC Canyonlands 460EX SoCs; |
| 18 | - snps,dwc2: A generic DWC2 USB controller with default parameters. |
| 19 | - "st,stm32f4x9-fsotg": The DWC2 USB FS/HS controller instance in STM32F4x9 SoCs |
| 20 | configured in FS mode; |
| 21 | - "st,stm32f4x9-hsotg": The DWC2 USB HS controller instance in STM32F4x9 SoCs |
| 22 | configured in HS mode; |
| 23 | - "st,stm32f7-hsotg": The DWC2 USB HS controller instance in STM32F7 SoCs |
| 24 | configured in HS mode; |
| 25 | - reg : Should contain 1 register range (address and length) |
| 26 | - interrupts : Should contain 1 interrupt |
| 27 | - clocks: clock provider specifier |
| 28 | - clock-names: shall be "otg" |
| 29 | Refer to clk/clock-bindings.txt for generic clock consumer properties |
| 30 | |
| 31 | Optional properties: |
| 32 | - phys: phy provider specifier |
| 33 | - phy-names: shall be "usb2-phy" |
| 34 | Refer to phy/phy-bindings.txt for generic phy consumer properties |
| 35 | - dr_mode: shall be one of "host", "peripheral" and "otg" |
| 36 | Refer to usb/generic.txt |
| 37 | - g-rx-fifo-size: size of rx fifo size in gadget mode. |
| 38 | - g-np-tx-fifo-size: size of non-periodic tx fifo size in gadget mode. |
| 39 | - g-tx-fifo-size: size of periodic tx fifo per endpoint (except ep0) in gadget mode. |
Patrick Delaunay | e014cb6 | 2019-03-29 15:42:21 +0100 | [diff] [blame] | 40 | - usb33d-supply: external VBUS and ID sensing comparators supply, in order to |
| 41 | perform OTG operation, used on STM32MP1 SoCs. |
Patrick Delaunay | 7f3384d | 2019-03-29 15:42:24 +0100 | [diff] [blame^] | 42 | - u-boot,force-b-session-valid: force B-peripheral session instead of relying on |
| 43 | VBUS sensing (only valid when dr_mode = "peripheral" and for u-boot). |
Patrick Delaunay | 7515054 | 2019-03-29 15:42:15 +0100 | [diff] [blame] | 44 | |
| 45 | Deprecated properties: |
| 46 | - g-use-dma: gadget DMA mode is automatically detected |
| 47 | |
| 48 | Example: |
| 49 | |
| 50 | usb@101c0000 { |
| 51 | compatible = "ralink,rt3050-usb, snps,dwc2"; |
| 52 | reg = <0x101c0000 40000>; |
| 53 | interrupts = <18>; |
| 54 | clocks = <&usb_otg_ahb_clk>; |
| 55 | clock-names = "otg"; |
| 56 | phys = <&usbphy>; |
| 57 | phy-names = "usb2-phy"; |
| 58 | }; |