Why is Chile the country called chili?

The word Chile possibly came from the Incas of Peru, who called the valley of Aconcagua "Chili" by corruption of the name of a Picunche tribal chief called "Tili."