Thylakoid membranes are involved in ATP synthesis by:

Photolysis

Dark reaction

Chemiosmosis

Glycolysis