Peter Chen | 69bec72 | 2016-02-19 17:26:15 +0800 | [diff] [blame] | 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: |
Rob Herring | 5b71456 | 2017-08-01 10:57:00 -0500 | [diff] [blame] | 5 | http://www.devicetree.org/open-firmware/bindings/usb/usb-1_0.ps |
Peter Chen | 69bec72 | 2016-02-19 17:26:15 +0800 | [diff] [blame] | 6 | |
| 7 | Required properties: |
| 8 | - compatible: usbVID,PID. The textual representation of VID, PID shall |
| 9 | be in lower case hexadecimal with leading zeroes suppressed. The |
| 10 | other compatible strings from the above standard binding could also |
| 11 | be used, but a device adhering to this binding may leave out all except |
| 12 | for usbVID,PID. |
| 13 | - reg: the port number which this device is connecting to, the range |
| 14 | is 1-31. |
| 15 | |
| 16 | Example: |
| 17 | |
| 18 | &usb1 { |
Peter Chen | 69bec72 | 2016-02-19 17:26:15 +0800 | [diff] [blame] | 19 | |
| 20 | #address-cells = <1>; |
| 21 | #size-cells = <0>; |
| 22 | |
| 23 | hub: genesys@1 { |
| 24 | compatible = "usb5e3,608"; |
| 25 | reg = <1>; |
| 26 | }; |
| 27 | } |