generic.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Generic USB Properties
  2. Optional properties:
  3. - maximum-speed: tells USB controllers we want to work up to a certain
  4. speed. Valid arguments are "super-speed", "high-speed",
  5. "full-speed" and "low-speed". In case this isn't passed
  6. via DT, USB controllers should default to their maximum
  7. HW capability.
  8. - dr_mode: tells Dual-Role USB controllers that we want to work on a
  9. particular mode. Valid arguments are "host",
  10. "peripheral" and "otg". In case this attribute isn't
  11. passed via DT, USB DRD controllers should default to
  12. OTG.
  13. - phy_type: tells USB controllers that we want to configure the core to support
  14. a UTMI+ PHY with an 8- or 16-bit interface if UTMI+ is
  15. selected. Valid arguments are "utmi" and "utmi_wide".
  16. In case this isn't passed via DT, USB controllers should
  17. default to HW capability.
  18. - otg-rev: tells usb driver the release number of the OTG and EH supplement
  19. with which the device and its descriptors are compliant,
  20. in binary-coded decimal (i.e. 2.0 is 0200H). This
  21. property is used if any real OTG features(HNP/SRP/ADP)
  22. is enabled, if ADP is required, otg-rev should be
  23. 0x0200 or above.
  24. - companion: phandle of a companion
  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.
  32. This is an attribute to a USB controller such as:
  33. dwc3@4a030000 {
  34. compatible = "synopsys,dwc3";
  35. reg = <0x4a030000 0xcfff>;
  36. interrupts = <0 92 4>
  37. usb-phy = <&usb2_phy>, <&usb3,phy>;
  38. maximum-speed = "super-speed";
  39. dr_mode = "otg";
  40. phy_type = "utmi_wide";
  41. otg-rev = <0x0200>;
  42. adp-disable;
  43. };