WATERLOO, Iowa (AP) _ James ''Jimmy'' Holiday, who composed songs for such artists as Sonny and Cher, Ray Charles and The Staple Singers, has died at age 52.

Holiday died of heart failure Sunday at University Hospitals in Iowa City.

His songs have been recorded by Ray Charles, Glen Campbell, Jackie DeShannon, The Staple Singers, Sonny and Cher, Mac Davis, Sam Cooke, Kenny Rogers, Dottie West and others.

He wrote ''All I Ever Need is You,'' recorded by Sonny and Cher; ''Put a Little Love in Your Heart,'' by Jackie DeShannon; ''Hey Mister,'' by Ray Charles; ''God Bless the Children,'' by The Staple Singers; and ''The Girls of Texas,'' by Ry Cooder.

He was born July 24, 1934, in Sallis, Miss., and grew up in Waterloo.

He was a self-employed singer and composer before retiring from singing in 1969, but he continued to compose until the time of his death.

Holiday combined Charles' musical style with his own and credited the late Sam Cooke with teaching him music writing skills.

Burial was scheduled for Friday in Waterloo.