Branches to the deep muscles of the posterior compartment originate from the tibial nerve deep to the soleus muscle in the upper half of the leg and innervate the tibialis posterior, flexor hallucis longus, and flexor digitorum longus muscles.