https://www.chemistry.wustl.edu/people/ ... lankenship
from his list of publications there you can follow the evolution of modern photosynthesis. It first appeared in cyanobacteria prior to the cambrian. photosystems I and II were derived from different bacterial origin.
Prior to that, no bacteria had two separate photosystems. Only when you have both can you break the H-O-H bonds that leads to spitting out molecular O2 as a waste product. Prior to this process becoming the major route our planet had no oxygen in the atmosphere.