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