1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/usb/usb251xb.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Microchip USB 2.0 Hi-Speed Hub Controller
10 - Richard Leitner <richard.leitner@skidata.com>
31 Should specify the gpio for hub reset
35 Should specify the phandle to the regulator supplying vdd
38 $ref: /schemas/types.yaml#/definitions/flag
40 Skip Hub configuration, but only send the USB-Attach command
43 $ref: /schemas/types.yaml#/definitions/uint16
46 Set USB Vendor ID of the hub
49 $ref: /schemas/types.yaml#/definitions/uint16
51 Set USB Product ID of the hub
54 $ref: /schemas/types.yaml#/definitions/uint16
57 Set USB Device ID of the hub
60 $ref: /schemas/types.yaml#/definitions/uint16
66 $ref: /schemas/types.yaml#/definitions/string
68 Set USB Manufacturer string (max 31 characters long)
71 $ref: /schemas/types.yaml#/definitions/string
73 Set USB Product string (max 31 characters long)
76 $ref: /schemas/types.yaml#/definitions/string
78 Set USB Serial string (max 31 characters long)
81 $ref: /schemas/types.yaml#/definitions/flag
83 selects between self- and bus-powered operation
84 (boolean, default is self-powered)
87 $ref: /schemas/types.yaml#/definitions/flag
89 selects between self- and bus-powered operation
90 (boolean, default is self-powered)
93 $ref: /schemas/types.yaml#/definitions/flag
95 disable USB Hi-Speed support (boolean)
98 $ref: /schemas/types.yaml#/definitions/flag
100 selects between multi- and single-transaction-translator
101 (boolean, default is multi-tt)
104 $ref: /schemas/types.yaml#/definitions/flag
106 selects between multi- and single-transaction-translator
107 (boolean, default is multi-tt)
110 $ref: /schemas/types.yaml#/definitions/flag
112 disable End of Packet generation in full-speed mode (boolean)
115 $ref: /schemas/types.yaml#/definitions/flag
117 select over-current sense type in self-powered mode
118 (boolean, default is individual)
121 $ref: /schemas/types.yaml#/definitions/flag
123 select over-current sense type in self-powered mode
124 (boolean, default is individual)
126 ganged-port-switching:
127 $ref: /schemas/types.yaml#/definitions/flag
129 select port power switching mode (boolean, default is individual)
131 individual-port-switching:
132 $ref: /schemas/types.yaml#/definitions/flag
134 select port power switching mode (boolean, default is individual)
136 dynamic-power-switching:
137 $ref: /schemas/types.yaml#/definitions/flag
139 enable auto-switching from self- to bus-powered operation if the
140 local power source is removed or unavailable (boolean)
143 enum: [100, 4000, 8000, 16000]
146 Delay time (in microseconds) for filtering the over-current sense
147 inputs. If an invalid value is given, the default is used instead.
150 $ref: /schemas/types.yaml#/definitions/flag
152 indicate the hub is part of a compound device (boolean)
155 $ref: /schemas/types.yaml#/definitions/flag
157 enable port mapping mode (boolean)
160 $ref: /schemas/types.yaml#/definitions/flag
162 led usb/speed indication mode selection (boolean, default is speed mode)
165 $ref: /schemas/types.yaml#/definitions/flag
167 led usb/speed indication mode selection (boolean, default is speed mode)
170 $ref: /schemas/types.yaml#/definitions/flag
172 enable string descriptor support (required for manufacturer, product
173 and serial string configuration)
176 $ref: /schemas/types.yaml#/definitions/uint8-array
178 Should specify the ports which have a non-removable device connected.
181 $ref: /schemas/types.yaml#/definitions/uint8-array
183 Specifies the ports which will be self-power disabled
186 $ref: /schemas/types.yaml#/definitions/uint8-array
188 Specifies the ports which will be bus-power disabled
190 sp-max-total-current-microamp:
194 Specifies max current consumed by the hub from VBUS when
195 operating in self-powered hub. It includes the hub silicon
196 along with all associated circuitry including a permanently
199 bp-max-total-current-microamp:
203 Specifies max current consumed by the hub from VBUS when
204 operating in self-powered hub. It includes the hub silicon
205 along with all associated circuitry including a permanently
208 sp-max-removable-current-microamp:
212 Specifies max current consumed by the hub from VBUS when
213 operating in self-powered hub. It includes the hub silicon
214 along with all associated circuitry excluding a permanently
217 bp-max-removable-current-microamp:
221 Specifies max current consumed by the hub from VBUS when
222 operating in self-powered hub. It includes the hub silicon
223 along with all associated circuitry excluding a permanently
230 Specifies the time it takes from the time the host initiates the
231 power-on sequence to a port until the port has adequate power.
234 $ref: /schemas/types.yaml#/definitions/uint32-array
236 Specifies the ports which will swap the differential-pair (D+/D-),
237 default is not-swapped.
239 additionalProperties: false
247 #include <dt-bindings/gpio/gpio.h>
250 #address-cells = <1>;
254 compatible = "microchip,usb2512b";
256 reset-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
260 compatible = "microchip,usb2514b";
262 vendor-id = /bits/ 16 <0x0000>;
263 product-id = /bits/ 16 <0x0000>;
265 manufacturer = "Foo";
267 serial = "1234567890A";
268 /* correct misplaced usb connectors on port 1,2 */
269 swap-dx-lanes = <1 2>;