What does photosynthesis add to earth's atmosphere?

Photosynthesis adds Oxygen to our planet, and it givers the plants energy.
Its Chemical equation is:

carbon dioxide + water =light energy=> glucose + oxygen

6CO2 + 6H2O =light energy=> C6H12O6 + 6O2