Proposed method for detection of the pseudospin-1/2 Berry phase in a photonic crystal with a Dirac spectrum