da8xx-usb.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. TI DA8xx MUSB
  2. ~~~~~~~~~~~~~
  3. For DA8xx/OMAP-L1x/AM17xx/AM18xx platforms.
  4. Required properties:
  5. ~~~~~~~~~~~~~~~~~~~~
  6. - compatible : Should be set to "ti,da830-musb".
  7. - reg: Offset and length of the USB controller register set.
  8. - interrupts: The USB interrupt number.
  9. - interrupt-names: Should be set to "mc".
  10. - dr_mode: The USB operation mode. Should be one of "host", "peripheral" or "otg".
  11. - phys: Phandle for the PHY device
  12. - phy-names: Should be "usb-phy"
  13. - dmas: specifies the dma channels
  14. - dma-names: specifies the names of the channels. Use "rxN" for receive
  15. and "txN" for transmit endpoints. N specifies the endpoint number.
  16. Optional properties:
  17. ~~~~~~~~~~~~~~~~~~~~
  18. - vbus-supply: Phandle to a regulator providing the USB bus power.
  19. DMA
  20. ~~~
  21. - compatible: ti,da830-cppi41
  22. - reg: offset and length of the following register spaces: CPPI DMA Controller,
  23. CPPI DMA Scheduler, Queue Manager
  24. - reg-names: "controller", "scheduler", "queuemgr"
  25. - #dma-cells: should be set to 2. The first number represents the
  26. channel number (0 … 3 for endpoints 1 … 4).
  27. The second number is 0 for RX and 1 for TX transfers.
  28. - #dma-channels: should be set to 4 representing the 4 endpoints.
  29. Example:
  30. usb_phy: usb-phy {
  31. compatible = "ti,da830-usb-phy";
  32. #phy-cells = <0>;
  33. };
  34. usb0: usb@200000 {
  35. compatible = "ti,da830-musb";
  36. reg = <0x00200000 0x1000>;
  37. ranges;
  38. #address-cells = <1>;
  39. #size-cells = <1>;
  40. interrupts = <58>;
  41. interrupt-names = "mc";
  42. dr_mode = "host";
  43. vbus-supply = <&usb_vbus>;
  44. phys = <&usb_phy 0>;
  45. phy-names = "usb-phy";
  46. dmas = <&cppi41dma 0 0 &cppi41dma 1 0
  47. &cppi41dma 2 0 &cppi41dma 3 0
  48. &cppi41dma 0 1 &cppi41dma 1 1
  49. &cppi41dma 2 1 &cppi41dma 3 1>;
  50. dma-names =
  51. "rx1", "rx2", "rx3", "rx4",
  52. "tx1", "tx2", "tx3", "tx4";
  53. cppi41dma: dma-controller@201000 {
  54. compatible = "ti,da830-cppi41";
  55. reg = <0x201000 0x1000
  56. 0x202000 0x1000
  57. 0x204000 0x4000>;
  58. reg-names = "controller", "scheduler", "queuemgr";
  59. interrupts = <58>;
  60. #dma-cells = <2>;
  61. #dma-channels = <4>;
  62. };
  63. };