Felipe Balbi | 1494a1f | 2013-06-30 13:56:45 +0300 | [diff] [blame] | 1 | Generic USB Properties |
| 2 | |
| 3 | Optional properties: |
| 4 | - maximum-speed: tells USB controllers we want to work up to a certain |
| 5 | speed. Valid arguments are "super-speed", "high-speed", |
| 6 | "full-speed" and "low-speed". In case this isn't passed |
| 7 | via DT, USB controllers should default to their maximum |
| 8 | HW capability. |
| 9 | - dr_mode: tells Dual-Role USB controllers that we want to work on a |
| 10 | particular mode. Valid arguments are "host", |
| 11 | "peripheral" and "otg". In case this attribute isn't |
| 12 | passed via DT, USB DRD controllers should default to |
| 13 | OTG. |
William Wu | 32f2ed8 | 2016-08-16 22:44:38 +0800 | [diff] [blame^] | 14 | - phy_type: tells USB controllers that we want to configure the core to support |
| 15 | a UTMI+ PHY with an 8- or 16-bit interface if UTMI+ is |
| 16 | selected. Valid arguments are "utmi" and "utmi_wide". |
| 17 | In case this isn't passed via DT, USB controllers should |
| 18 | default to HW capability. |
Li Jun | b5513de | 2015-07-09 15:18:43 +0800 | [diff] [blame] | 19 | - otg-rev: tells usb driver the release number of the OTG and EH supplement |
| 20 | with which the device and its descriptors are compliant, |
| 21 | in binary-coded decimal (i.e. 2.0 is 0200H). This |
| 22 | property is used if any real OTG features(HNP/SRP/ADP) |
| 23 | is enabled, if ADP is required, otg-rev should be |
| 24 | 0x0200 or above. |
| 25 | - hnp-disable: tells OTG controllers we want to disable OTG HNP, normally HNP |
| 26 | is the basic function of real OTG except you want it |
| 27 | to be a srp-capable only B device. |
| 28 | - srp-disable: tells OTG controllers we want to disable OTG SRP, SRP is |
| 29 | optional for OTG device. |
| 30 | - adp-disable: tells OTG controllers we want to disable OTG ADP, ADP is |
| 31 | optional for OTG device. |
Felipe Balbi | 1494a1f | 2013-06-30 13:56:45 +0300 | [diff] [blame] | 32 | |
| 33 | This is an attribute to a USB controller such as: |
| 34 | |
| 35 | dwc3@4a030000 { |
| 36 | compatible = "synopsys,dwc3"; |
| 37 | reg = <0x4a030000 0xcfff>; |
| 38 | interrupts = <0 92 4> |
| 39 | usb-phy = <&usb2_phy>, <&usb3,phy>; |
| 40 | maximum-speed = "super-speed"; |
| 41 | dr_mode = "otg"; |
William Wu | 32f2ed8 | 2016-08-16 22:44:38 +0800 | [diff] [blame^] | 42 | phy_type = "utmi_wide"; |
Li Jun | b5513de | 2015-07-09 15:18:43 +0800 | [diff] [blame] | 43 | otg-rev = <0x0200>; |
| 44 | adp-disable; |
Felipe Balbi | 1494a1f | 2013-06-30 13:56:45 +0300 | [diff] [blame] | 45 | }; |