We observed the coexistence of quantum anomalous Hall and valley Hall phases in the same photonic band gap. Under the broken time-reversal and parity symmetries, the phase tran-sition between the two topological phases can be flexibly manipu-lated. Relying on the bulk-edge correspondence, we built a pho-tonic waveguide with various boundary configurations that functioned with multi-channel selective light transmission.