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