Just to clear some things, Kublai Khan established the Yuan dynasty in China, to appeal in an attempt to appeal to Chinese citizens in China. As a result Toghon Temur was a descendant of Kublai Khan. Another point is the Northern Yuan dynasty was simply what became of the Yuan dynasty after the fall of Yingchang to the Ming Dynasty. As result they are all from the same dynasty if that's what you were trying to determine.
Genghis Khan Mongol Rule- Lane George.
The troubled empire: China in the Yuan and Ming dynasties - Brook Timothy