18c2ecf20Sopenharmony_ciTI DA8xx MUSB 28c2ecf20Sopenharmony_ci~~~~~~~~~~~~~ 38c2ecf20Sopenharmony_ciFor DA8xx/OMAP-L1x/AM17xx/AM18xx platforms. 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciRequired properties: 68c2ecf20Sopenharmony_ci~~~~~~~~~~~~~~~~~~~~ 78c2ecf20Sopenharmony_ci - compatible : Should be set to "ti,da830-musb". 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci - reg: Offset and length of the USB controller register set. 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci - interrupts: The USB interrupt number. 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci - interrupt-names: Should be set to "mc". 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci - dr_mode: The USB operation mode. Should be one of "host", "peripheral" or "otg". 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci - phys: Phandle for the PHY device 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci - phy-names: Should be "usb-phy" 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci - dmas: specifies the dma channels 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci - dma-names: specifies the names of the channels. Use "rxN" for receive 248c2ecf20Sopenharmony_ci and "txN" for transmit endpoints. N specifies the endpoint number. 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciOptional properties: 278c2ecf20Sopenharmony_ci~~~~~~~~~~~~~~~~~~~~ 288c2ecf20Sopenharmony_ci - vbus-supply: Phandle to a regulator providing the USB bus power. 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ciDMA 318c2ecf20Sopenharmony_ci~~~ 328c2ecf20Sopenharmony_ci- compatible: ti,da830-cppi41 338c2ecf20Sopenharmony_ci- reg: offset and length of the following register spaces: CPPI DMA Controller, 348c2ecf20Sopenharmony_ci CPPI DMA Scheduler, Queue Manager 358c2ecf20Sopenharmony_ci- reg-names: "controller", "scheduler", "queuemgr" 368c2ecf20Sopenharmony_ci- #dma-cells: should be set to 2. The first number represents the 378c2ecf20Sopenharmony_ci channel number (0 … 3 for endpoints 1 … 4). 388c2ecf20Sopenharmony_ci The second number is 0 for RX and 1 for TX transfers. 398c2ecf20Sopenharmony_ci- #dma-channels: should be set to 4 representing the 4 endpoints. 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciExample: 428c2ecf20Sopenharmony_ci usb_phy: usb-phy { 438c2ecf20Sopenharmony_ci compatible = "ti,da830-usb-phy"; 448c2ecf20Sopenharmony_ci #phy-cells = <0>; 458c2ecf20Sopenharmony_ci }; 468c2ecf20Sopenharmony_ci usb0: usb@200000 { 478c2ecf20Sopenharmony_ci compatible = "ti,da830-musb"; 488c2ecf20Sopenharmony_ci reg = <0x00200000 0x1000>; 498c2ecf20Sopenharmony_ci ranges; 508c2ecf20Sopenharmony_ci #address-cells = <1>; 518c2ecf20Sopenharmony_ci #size-cells = <1>; 528c2ecf20Sopenharmony_ci interrupts = <58>; 538c2ecf20Sopenharmony_ci interrupt-names = "mc"; 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci dr_mode = "host"; 568c2ecf20Sopenharmony_ci vbus-supply = <&usb_vbus>; 578c2ecf20Sopenharmony_ci phys = <&usb_phy 0>; 588c2ecf20Sopenharmony_ci phy-names = "usb-phy"; 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci dmas = <&cppi41dma 0 0 &cppi41dma 1 0 618c2ecf20Sopenharmony_ci &cppi41dma 2 0 &cppi41dma 3 0 628c2ecf20Sopenharmony_ci &cppi41dma 0 1 &cppi41dma 1 1 638c2ecf20Sopenharmony_ci &cppi41dma 2 1 &cppi41dma 3 1>; 648c2ecf20Sopenharmony_ci dma-names = 658c2ecf20Sopenharmony_ci "rx1", "rx2", "rx3", "rx4", 668c2ecf20Sopenharmony_ci "tx1", "tx2", "tx3", "tx4"; 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci cppi41dma: dma-controller@201000 { 708c2ecf20Sopenharmony_ci compatible = "ti,da830-cppi41"; 718c2ecf20Sopenharmony_ci reg = <0x201000 0x1000 728c2ecf20Sopenharmony_ci 0x202000 0x1000 738c2ecf20Sopenharmony_ci 0x204000 0x4000>; 748c2ecf20Sopenharmony_ci reg-names = "controller", "scheduler", "queuemgr"; 758c2ecf20Sopenharmony_ci interrupts = <58>; 768c2ecf20Sopenharmony_ci #dma-cells = <2>; 778c2ecf20Sopenharmony_ci #dma-channels = <4>; 788c2ecf20Sopenharmony_ci }; 798c2ecf20Sopenharmony_ci 808c2ecf20Sopenharmony_ci }; 81