In Chinese historiography
上古 traditionally covers the era before the Qin dynasty (221 BCE) — the time of the Three Sovereigns and Five Emperors,
夏/
商/
周 dynasties, and the Spring and Autumn period.
上古汉语 (Old Chinese) specifically refers to the language of this period, roughly through Han.