microchip,usb-g1

Description

These nodes are “usb” bus nodes.

Microchip USB G1 driver

Microchip USB G1 driver bindings.

Group g1 USB driver supports following hardware peripherals:
  - module name="USB" id="U2222" version="1.2.0"

Properties

Properties not inherited from the base binding file.

Name

Type

Details

maximum-speed

string

Configures USB controllers to work up to a specific speed. Valid arguments are "super-speed", "high-speed", "full-speed" and "low-speed". If this is not passed via DT, USB controllers should use their maximum hardware capability.

This property is required.

Legal values: low-speed, full-speed, high-speed, super-speed

nvm-calib

phandle

Phandle to the NVM software calibration area.

This property provides the base address for the NVM software calibration
region. The USB driver reads a calibration word from this memory area
and extracts individual calibration fields based on the definitions
provided in the calib-mapping property.

This property is required.

calib-mapping

array

Configuration for NVM to USB_PADCAL field extraction.

An array of <dst_bit nvm_bit mask default> tuples defining how to
extract and write calibration values. The 'default' value is applied
if the NVM entry is unprogrammed (equals the mask).

Each entry consists of four cells:

  <dst_bit nvm_bit mask default>

where:

  dst_bit
    Bit offset of the calibration field in the USB_PADCAL register.

  nvm_bit
    Bit offset of the calibration value in the NVM calibration word.

  mask
    Bit mask defining the width of the calibration field.

  default
    Default value used when the extracted OTP value equals the mask,
    indicating an invalid or unprogrammed calibration entry.

Multiple entries may be provided to configure all required USB pad
calibration fields.

This property is required.

calib-mapping-names

string-array

Descriptive names for calibration entries.

Optional string array corresponding to calib-mapping entries,
intended solely for debugging and documentation.

num-bidir-endpoints

int

Number of bi-directional endpoints supported by hardware
(including EP0)

This property is required.

num-in-endpoints

int

Number of IN endpoints supported by hardware
(including EP0 IN)

num-out-endpoints

int

Number of OUT endpoints supported by hardware
(including EP0 OUT)

vbus-gpios

phandle-array

Control VBUS via GPIO pin.

pinctrl-0

phandles

Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.

pinctrl-1

phandles

Pin configuration/s for the second state. See pinctrl-0.

pinctrl-2

phandles

Pin configuration/s for the third state. See pinctrl-0.

pinctrl-3

phandles

Pin configuration/s for the fourth state. See pinctrl-0.

pinctrl-4

phandles

Pin configuration/s for the fifth state. See pinctrl-0.

pinctrl-names

string-array

Names for the provided states. The number of names needs to match the
number of states.