Check the signal at its source
Code P0022 describes a condition in the camshaft position system for bank two: the actual timing is lagging behind the commanded value by more than the control unit allows. That names where to look, but it does not by itself confirm which part has failed.
How to tell the paths apart: Read the live data and compare it against the expected range for current conditions before replacing anything.