Philip K. Dick
His later works, especially the VALIS trilogy, were heavily autobiographical.The word VALIS is the acronym for Vast Active Living Intelligence System; it is the title of a novel. The theme can be found in at least three more novels.