Microchip USB 2.0 Hi-Speed Hub Controller

Schema identifier ($id): "http://devicetree.org/schemas/usb/usb251xb.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Richard Leitner <richard.leitner@skidata.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "microchip,usb2422", "microchip,usb2512b", "microchip,usb2512bi", "microchip,usb2513b", "microchip,usb2513bi", "microchip,usb2514b", "microchip,usb2514bi", "microchip,usb2517", "microchip,usb2517i", "microchip,usb251xb"

reg — not listed as required here #

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

Should specify the gpio for hub reset

vdd-supply — not listed as required here #

Should specify the phandle to the regulator supplying vdd

skip-config — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Skip Hub configuration, but only send the USB-Attach command

vendor-id — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Default value (default): 1060

Set USB Vendor ID of the hub

product-id — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Set USB Product ID of the hub

device-id — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Default value (default): 2995

Set USB Device ID of the hub

language-id — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Default value (default): 0

Set USB Language ID

manufacturer — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Set USB Manufacturer string (max 31 characters long)

product — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Set USB Product string (max 31 characters long)

serial — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Set USB Serial string (max 31 characters long)

bus-powered — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

selects between self- and bus-powered operation (boolean, default is self-powered)

self-powered — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

selects between self- and bus-powered operation (boolean, default is self-powered)

disable-hi-speed — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

disable USB Hi-Speed support (boolean)

multi-tt — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

selects between multi- and single-transaction-translator (boolean, default is multi-tt)

single-tt — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

selects between multi- and single-transaction-translator (boolean, default is multi-tt)

disable-eop — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

disable End of Packet generation in full-speed mode (boolean)

ganged-sensing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

select over-current sense type in self-powered mode (boolean, default is individual)

individual-sensing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

select over-current sense type in self-powered mode (boolean, default is individual)

ganged-port-switching — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

select port power switching mode (boolean, default is individual)

individual-port-switching — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

select port power switching mode (boolean, default is individual)

dynamic-power-switching — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

enable auto-switching from self- to bus-powered operation if the local power source is removed or unavailable (boolean)

oc-delay-us — not listed as required here #

Allowed values (enum): 100, 4000, 8000, 16000

Default value (default): 8000

Delay time (in microseconds) for filtering the over-current sense inputs. If an invalid value is given, the default is used instead.

compound-device — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

indicate the hub is part of a compound device (boolean)

port-mapping-mode — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

enable port mapping mode (boolean)

led-usb-mode — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

led usb/speed indication mode selection (boolean, default is speed mode)

led-speed-mode — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

led usb/speed indication mode selection (boolean, default is speed mode)

string-support — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

enable string descriptor support (required for manufacturer, product and serial string configuration)

non-removable-ports — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Should specify the ports which have a non-removable device connected.

sp-disabled-ports — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Specifies the ports which will be self-power disabled

bp-disabled-ports — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Specifies the ports which will be bus-power disabled

sp-max-total-current-microamp — not listed as required here #

Maximum value (maximum): 100000

Default value (default): 1000

Specifies max current consumed by the hub from VBUS when operating in self-powered hub. It includes the hub silicon along with all associated circuitry including a permanently attached peripheral.

bp-max-total-current-microamp — not listed as required here #

Maximum value (maximum): 510000

Default value (default): 100000

Specifies max current consumed by the hub from VBUS when operating in self-powered hub. It includes the hub silicon along with all associated circuitry including a permanently attached peripheral.

sp-max-removable-current-microamp — not listed as required here #

Maximum value (maximum): 100000

Default value (default): 1000

Specifies max current consumed by the hub from VBUS when operating in self-powered hub. It includes the hub silicon along with all associated circuitry excluding a permanently attached peripheral.

bp-max-removable-current-microamp — not listed as required here #

Maximum value (maximum): 510000

Default value (default): 100000

Specifies max current consumed by the hub from VBUS when operating in self-powered hub. It includes the hub silicon along with all associated circuitry excluding a permanently attached peripheral.

power-on-time-ms — not listed as required here #

Maximum value (maximum): 510

Default value (default): 100

Specifies the time it takes from the time the host initiates the power-on sequence to a port until the port has adequate power.

swap-dx-lanes — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Specifies the ports which will swap the differential-pair (D+/D-), default is not-swapped.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible"

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  usb-hub@2c {
    compatible = "microchip,usb2512b";
    reg = <0x2c>;
    reset-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
  };

  usb-hub@2d {
    compatible = "microchip,usb2514b";
    reg = <0x2d>;
    vendor-id = /bits/ 16 <0x0000>;
    product-id = /bits/ 16 <0x0000>;
    string-support;
    manufacturer = "Foo";
    product = "Foo-Bar";
    serial = "1234567890A";
    /* correct misplaced usb connectors on port 1,2 */
    swap-dx-lanes = <1 2>;
  };
};
#include <dt-bindings/gpio/gpio.h>
usb-hub {
  /* I2C is not connected */
  compatible = "microchip,usb2512b";
  reset-gpios = <&porta 8 GPIO_ACTIVE_LOW>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page