Trinities originated in Africa as did Modern civilization. The biblical people of Egypt were Native Africans and the culture migrated from the ancient tribes of the the area of Kenya/Ethiopia towards the Mediterranean. It is very probable that at one point in history that land of Arabia was attached to Africa. This would mean at one point they may have had similar cultures.
In the pyramid texts there are names of ancient deities that were a part of a tribunal of Gods/spirits. The writings and drawings in the Pyramids and tombs of told stories are parallel to certain books in Genesis.
The name of one group of tribunal deities is the Ennead and the other group is the Ogdoad. Both are Greek translations of ancient African words. These could also be associated to the men of renown in the book of Genesis and the sons of God.
The Ogdoad is the tribunal of creation deities linked to the moon. It starts with Ptah and Thoth (thought) and then the male and female spirits associated to the darkness. Next we have the male and female related to the deep.
The next two deities are generally not mentioned but are a substantive force in creating the universe. Recently I have found out that these deities are related to the text Genesis 1:27 "In the image of God he created him, male and female he created them."
The Ennead is the tribunal associated to the solar deities. One of them is the creative Force, the next are two are Sky and Moisture. Next are the Earth and land who created the first celestial humans, Two females and two males.
Many of the wars that were fought in ancient Africa were because of these tribunal of Gods; most popular are two brothers. There were many debates and wars as to what deities should be worshiped or who should be the supreme ruler over all of the Gods also known as priesthoods.
This words in the bible and the ancient world have been impacted by translation and transliteration this is a process used by the ancients, where they change alphabets and then use an system of inversion (swamping letters around).
The next group is called the Ennead by the Greeks but the pre-translated name is said to be Psdt or Psdt. One thing to note there is a spirit with the name of sopdet this should be explored.
All information is subject to change upon receiving new information