Just a little adjustment
When you go north to Quito, go inland along the center of the Andes in Aug/Sep (even better July/Aug) as that is when it is winter. Don't get me wrong... it doesn't snow then. It is the dry season and blue sky and sunshine every day. 65 to 75 degrees as long as the sun is up. If you wait later than Oct, you will not have as nice of weather.
From Santiago go north to Iquique, then over via San Pedro de Atacama, Salta (Arg), then north to Tarija and Santa Cruz (Bol), then west to Cochabamba and La Paz. After Cuzco, Peru, continue north thru Ayacucho, Huancayo, Huanuco, Huaraz, all the way to Cajamarca. Then turn east to Chachapoyas.
After seeing the Gocta Falls (3rd in the world) and the pre-Incan fortress of Kuelap, head north and west to Jaen, then directly north up the center of Ecuador to Cuenca and finally Quito. I've ridden most of all that within the last 4 years and on a 250cc bike. It will struggle a little, but the roads climb slowly.
After that you can return via the coast, but I will warn you BOOORRRIIINNNGGG!!! Just desert (and corrupt policemen) mile after mile after mile!