infineon,usbhs

Description

These nodes are “usb” bus nodes.

Infineon USBHS.  This binding describes additional information required to
use the Synopsys DesignWare OTG USB 2.0 controller IP on Infineon boards.  In
the case of this IP, the Peri MMIO group information is required.

Examples

/* The below example shows using Peri 1 MMIO 3, sourced from CLK_HF1 and using
 * a divider of 3.  Peri MMIO dividers also require a specific target interconnect
 * bit mask, a bit whose position is stored in mmio-peri-bit-pos.  This bit value
 * must come from some Infineon documentation, e.g. a TRM or through working with
 * the Infineon Device Configurator tool.
 * The only mmio-peri value that can be configured is mmio-peri-div.  The other
 * four values are hardwired on the device.
 */

zephyr_udc0: usbhs@cccccccc {
  compatible = "infineon,usbhs", "snps,dwc2";
  reg = <0xcccccccc 0x40100>;
  interrupts = <174 4>, <175 4>;
  num-in-eps = <9>;
  num-out-eps = <9>;
  ghwcfg1 = <0x00000000>;
  ghwcfg2 = <0x228fe052>;
  ghwcfg4 = <0xe2103a20>;
  mmio-peri-inst = <1>;
  mmio-peri-group = <3>;
  mmio-reg-bit-pos = <5>;
  mmio-peri-hf-src = <1>;
  mmio-peri-div = <3>;
  status = "okay";
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

mmio-peri-inst

int

Peri MMIO instance number that clocks the USB

This property is required.

mmio-peri-group

int

Peri MMIO group number that clocks the USB

This property is required.

mmio-reg-bit-pos

int

The USB's bit position in the Peri group register

This property is required.

mmio-peri-hf-src

int

The Peri MMIO group's root CLK_HF

This property is required.

mmio-peri-div

int

The Peri MMIO clock divider value

This property is required.

phys

phandle

num-in-eps

int

Number of configured OUT endpoints including control endpoint.

This property is required.

num-out-eps

int

Number of configured IN endpoints including control endpoint.

This property is required.

ghwcfg1

int

Value of the GHWCFG1 register. It is used to determine available endpoint
types during driver pre-initialization.

This property is required.

ghwcfg2

int

Value of the GHWCFG2 register. It is used to determine available endpoint
types during driver pre-initialization.

This property is required.

ghwcfg4

int

Value of the GHWCFG4 register. It is used to determine available endpoint
types during driver pre-initialization.

This property is required.