Tesla rewrote their software to use newer chips as soon as the crisis hit.
Toyota could have done that a long time ago (they know a thing or two about supply chain, don't they?) but they prefer to keep the shortage as an excuse for their poor sales performance.