ATP Synthase is ubiquitous throughout life on earth and so most probably evolved within the last universal common ancestor (LUCA) before that lineage diversified into the various kingdoms of life.
It is suggested that the functional domains comprising the ATP Synthase complex were cobbled together from pre-existing sub-units, each with with a related activity (e.g. the union of a proton motor with a DNA Helicase with ATPase activity), which seems reasonable, although a bit vague in the details.
The fact that a primitive ATP Synthase arose in the first place suggests that ATP already had a central role in cellular metabolism and so begs the question, what preceded ATP Synthase in the role of generating ATP in the LUCA cell?
Thanks in advance.