The light reactions of photosynthesis generate ATP by the action of chemiosmosis. These protons then flow down their electrochemical potential gradient through an enzyme called ATP-synthase, creating ATP by the phosphorylation of ADP to ATP.
Hope it helps uh