generic.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. - otg-rev: tells usb driver the release number of the OTG and EH supplement
  14. with which the device and its descriptors are compliant,
  15. in binary-coded decimal (i.e. 2.0 is 0200H). This
  16. property is used if any real OTG features(HNP/SRP/ADP)
  17. is enabled, if ADP is required, otg-rev should be
  18. 0x0200 or above.
  19. - hnp-disable: tells OTG controllers we want to disable OTG HNP, normally HNP
  20. is the basic function of real OTG except you want it
  21. to be a srp-capable only B device.
  22. - srp-disable: tells OTG controllers we want to disable OTG SRP, SRP is
  23. optional for OTG device.
  24. - adp-disable: tells OTG controllers we want to disable OTG ADP, ADP is
  25. optional for OTG device.
  26. This is an attribute to a USB controller such as:
  27. dwc3@4a030000 {
  28. compatible = "synopsys,dwc3";
  29. reg = <0x4a030000 0xcfff>;
  30. interrupts = <0 92 4>
  31. usb-phy = <&usb2_phy>, <&usb3,phy>;
  32. maximum-speed = "super-speed";
  33. dr_mode = "otg";
  34. otg-rev = <0x0200>;
  35. adp-disable;
  36. };