Trick Daddy's taking a plea deal in his Miami bust for cocaine possession and driving under the influence, and now he's finally able to put the case behind him.
The District Attorney's Office tells us Trick cut a deal ... pleading guilty to possession of cocaine and getting credit for time served. In exchange, we're told the DUI charge was dropped.
We broke the story ... police bodycam footag…