Disclaimer: Always verify pinouts with the factory EWD for your specific vehicle model and year, as Toyota made running changes.
Always start with the pinout. Never throw parts at a diesel ECU until you verify voltage, ground, and signal at the pins. 1kz ecu pinout