DTC P0976: Shift Solenoid "B" Control Circuit Low (Shift Solenoid Valve S2); DTC P0977: Shift Solenoid "B" Control Circuit High (Shift Solenoid Valve S2): Wiring Diagram
WARNING: This page is about a different car, the 2011 Toyota Matrix. However, it is still accessible from the selected car via links, so may be relevant.