Chris Brown has settled his custody battle with Nia Guzman over their daughter, TMZ reports.

The singer has been granted joint custody of their child, whose name the court ruled is Royalty Brown. The father will get her 12 days per month and not have required supervised visitation, as Guzman requested.

Brown will have to pay the mother $15,000 in back support and $2,500 per month in child support. He will pay for his daughter’s schooling, health insurance, medical bills and childcare.

Brown’s required drug test came back positive for marijuana and codeine, but the site says he has a prescription for both.

The singer responded to the settlement on Twitter.

“Court went great today,” he says. “Glad this all worked out.”

Brown has named his forthcoming album Royalty after his daughter. The project does not have a release date.

For additional Chris Brown coverage, watch the following DX Daily: