Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / usb / usb-device.txt
1 Generic USB Device Properties
2
3 Usually, we only use device tree for hard wired USB device.
4 The reference binding doc is from:
5 http://www.devicetree.org/open-firmware/bindings/usb/usb-1_0.ps
6
7
8 Required properties:
9 - compatible: "usbVID,PID", where VID is the vendor id and PID the product id.
10   The textual representation of VID and PID shall be in lower case hexadecimal
11   with leading zeroes suppressed. The other compatible strings from the above
12   standard binding could also be used, but a device adhering to this binding
13   may leave out all except for "usbVID,PID".
14 - reg: the number of the USB hub port or the USB host-controller port to which
15   this device is attached. The range is 1-255.
16
17
18 Required properties for hub nodes with device nodes:
19 - #address-cells: shall be 1
20 - #size-cells: shall be 0
21
22
23 Required properties for host-controller nodes with device nodes:
24 - #address-cells: shall be 1
25 - #size-cells: shall be 0
26
27
28 Example:
29
30 &usb1 { /* host controller */
31         #address-cells = <1>;
32         #size-cells = <0>;
33
34         hub@1 { /* hub connected to port 1 */
35                 compatible = "usb5e3,608";
36                 reg = <1>;
37         };
38 };