Drivers from 12 train companies are expected to walk out on two days in the long-running row over pay.