What are the requirements for photosynthesis to occur, and what is the role of ATP in this reaction?