2016-02-19 09:26:15 +00:00
|
|
|
Generic USB Device Properties
|
|
|
|
|
|
|
|
Usually, we only use device tree for hard wired USB device.
|
|
|
|
The reference binding doc is from:
|
2017-08-01 15:57:00 +00:00
|
|
|
http://www.devicetree.org/open-firmware/bindings/usb/usb-1_0.ps
|
2016-02-19 09:26:15 +00:00
|
|
|
|
|
|
|
Required properties:
|
|
|
|
- compatible: usbVID,PID. The textual representation of VID, PID shall
|
|
|
|
be in lower case hexadecimal with leading zeroes suppressed. The
|
|
|
|
other compatible strings from the above standard binding could also
|
|
|
|
be used, but a device adhering to this binding may leave out all except
|
|
|
|
for usbVID,PID.
|
|
|
|
- reg: the port number which this device is connecting to, the range
|
2017-11-09 17:07:17 +00:00
|
|
|
is 1-255.
|
2016-02-19 09:26:15 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
&usb1 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2017-11-09 17:07:16 +00:00
|
|
|
hub@1 {
|
2016-02-19 09:26:15 +00:00
|
|
|
compatible = "usb5e3,608";
|
|
|
|
reg = <1>;
|
|
|
|
};
|
2017-11-09 17:07:16 +00:00
|
|
|
};
|