Photonic SNN chip reaches 1 GHz and supports on-chip learning