Doping P atom with a lone pair: an effective strategy to realize high HER catalytic activity and avoid deactivation under wide H* coverage on 2D silicene and germanene by increasing the structural rigidity.