fsl-usb.txt 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. Freescale SOC USB controllers
  2. The device node for a USB controller that is part of a Freescale
  3. SOC is as described in the document "Open Firmware Recommended
  4. Practice : Universal Serial Bus" with the following modifications
  5. and additions :
  6. Required properties :
  7. - compatible : Should be "fsl-usb2-mph" for multi port host USB
  8. controllers, or "fsl-usb2-dr" for dual role USB controllers
  9. or "fsl,mpc5121-usb2-dr" for dual role USB controllers of MPC5121
  10. - phy_type : For multi port host USB controllers, should be one of
  11. "ulpi", or "serial". For dual role USB controllers, should be
  12. one of "ulpi", "utmi", "utmi_wide", or "serial".
  13. - reg : Offset and length of the register set for the device
  14. - port0 : boolean; if defined, indicates port0 is connected for
  15. fsl-usb2-mph compatible controllers. Either this property or
  16. "port1" (or both) must be defined for "fsl-usb2-mph" compatible
  17. controllers.
  18. - port1 : boolean; if defined, indicates port1 is connected for
  19. fsl-usb2-mph compatible controllers. Either this property or
  20. "port0" (or both) must be defined for "fsl-usb2-mph" compatible
  21. controllers.
  22. - dr_mode : indicates the working mode for "fsl-usb2-dr" compatible
  23. controllers. Can be "host", "peripheral", or "otg". Default to
  24. "host" if not defined for backward compatibility.
  25. Recommended properties :
  26. - interrupts : <a b> where a is the interrupt number and b is a
  27. field that represents an encoding of the sense and level
  28. information for the interrupt. This should be encoded based on
  29. the information in section 2) depending on the type of interrupt
  30. controller you have.
  31. - interrupt-parent : the phandle for the interrupt controller that
  32. services interrupts for this device.
  33. Optional properties :
  34. - fsl,invert-drvvbus : boolean; for MPC5121 USB0 only. Indicates the
  35. port power polarity of internal PHY signal DRVVBUS is inverted.
  36. - fsl,invert-pwr-fault : boolean; for MPC5121 USB0 only. Indicates
  37. the PWR_FAULT signal polarity is inverted.
  38. Example multi port host USB controller device node :
  39. usb@22000 {
  40. compatible = "fsl-usb2-mph";
  41. reg = <22000 1000>;
  42. #address-cells = <1>;
  43. #size-cells = <0>;
  44. interrupt-parent = <700>;
  45. interrupts = <27 1>;
  46. phy_type = "ulpi";
  47. port0;
  48. port1;
  49. };
  50. Example dual role USB controller device node :
  51. usb@23000 {
  52. compatible = "fsl-usb2-dr";
  53. reg = <23000 1000>;
  54. #address-cells = <1>;
  55. #size-cells = <0>;
  56. interrupt-parent = <700>;
  57. interrupts = <26 1>;
  58. dr_mode = "otg";
  59. phy = "ulpi";
  60. };
  61. Example dual role USB controller device node for MPC5121ADS:
  62. usb@4000 {
  63. compatible = "fsl,mpc5121-usb2-dr";
  64. reg = <0x4000 0x1000>;
  65. #address-cells = <1>;
  66. #size-cells = <0>;
  67. interrupt-parent = < &ipic >;
  68. interrupts = <44 0x8>;
  69. dr_mode = "otg";
  70. phy_type = "utmi_wide";
  71. fsl,invert-drvvbus;
  72. fsl,invert-pwr-fault;
  73. };