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