Toyota wiring diagram
S (white) = voltage sense, should have 12V+ from battery
L (yellow) = charge light (on dash)
IG (black and yellow)= ignition, should have 12V+ when ignition key turned on
8mm stud on side goes directly to the battery.
The color in parentheses is from the original Toyota wiring loom.
Explanation of the Toyota Charging Systems: link