Sri Ramanujacharya (11th century) has written 3 Gadyas (Saranagathi gadyam, Sriranga Gadyam and Vaikuntha gadyam)
In Saranagathi Gadyam, Swami Ramanujacharya performs saranagathi to Sri Ranganatha and SriRanga nayaki (Lord Narayana and Goddess Lakshmi).
In Saranagathi Gadyam in 12th churnikka Sri Ramanujacharya uses verse quotes verses from PUranas and Bhagavad Gita. He quotes the following :
ananya SaraNa: tvat pAdAravinda yugaLam SaraNam aham prapadye |
pitaram mAtaram dArAn putrAn bandhUn sakhI gurUn |
ratnAni dhanadhAnyAni kshetrANi ca grhANi ca ||
Meaning : (I do prostrate before Thee) -- Renouncing my Father,
Mother, Wife, Children, relatives, Friends, even my teacher, precious stones,
wealth and goods, my field, my house, etc, all desires, and actions relating to
them, as well as Kaivalya. I prostrate at Thine feet, which bestrode the Three
worlds.
sarvadharmASca samtyajya sarvakAmASca sAksharAn |
lokavikrAntacaraNau SaraNam te-avrajam vibho! ||
tvameva mAtA ca pitA tvameva tvameva bandhuSca gurustvameva | tvameva vidyA draviNam tvameva tvameva sarvam mama devadeva ||
12.2: tvameva mAtA -- Oh Lord! I surrender myself unto Thee. Thou alone art
My Mother, My Father, Thou art My relations; even My Teacher Thou alone art;
So also My learning, My wealth. Indeed Thou art My All.
Sri Ramanuja goes on to give the full meaning of "ananya SaraNa:
SaraNam aham prapadye" by referring to quotations and passage from the
PurANaas.
Calling himself as an ananya SaraNa (helpless person), RaamAnuja makes the
surrender. "tvat pAadAravinda yugaLam" points out that He is possessed of all
various virtues and qualities mentioned before and hence the person to be
approached.
"aravinda" because such prayer at His feet is a pleasant performance. YugaLa
can be said to be explanatory of the dual (caraNau) mentioned in dvaya mantra.
"aham" denotes the thought: "I" who am a great sinner, who has accumulated an
ocean of sins.
"prapadye" - I surrender. Up to this, the first portion of dvaya Mantra (pUrva
bhAgam) has been expounded.
Then Sri Ramanuja goes on to give the full meaning of "ananya SaraNa:
SaraNam aham prapadye" by referring to quotations and passage from the
PurANaas.
In the slokAs quoted, all the things mentioned up to and including "gurUn" (i.e.,the first portion) denote upAyAs (means to attain the goal). In this case dArA (wife) is included in the first portion as she is the means as well as bhogya. The second half of the sloka mentions other things such as ratna etc., as they are considered valuable in this world. Then in the next sloka beginning with " sarva dharmASca", is set out the upAyAs to be used in the Paraloka (the other world) and the gains to be obtained through them. The word "akshara" denotes Kaivalyam (enjoyment by the soul of itself only). By the word loka vikrAnta and vibho are denoted His qualities of easy accessibility and almightiness.
Then the word "SaraNam" is expounded in the next slokam (tvameva
mAtA….) where the idea is conveyed that BhagavAn is the real Father and
relation in the matter of protection etc., and to show that He does this
function fully and better than the natural father and others. The words "tvam
eva" is repeated at intervals. The idea that "not only is He my Father but He is
also the Father of the whole world" is sought to be conveyed by sloka
So, the verse "tva meva mata pita tvameve..." is from Upabrahmanas viz Smritis Ithihasas, Puranas etc
Aarti
to Lord Ganesha. Now I read the answer below and know who the deity is. But to be honest, the wording of this Shloka is such that it can be applied to any/all deity by a devotee!