You can use a gear joint to link the rotational motion of a revolute joint to the rotational motion of another revolute joint.