D1 clamps the voltage coming into the opamp. For the ring, you are right, RC filter does provide some protection for the Teensy GPIO, combining R9 + Teensy's internal clamping diodes. I think, since there are two signals, i could throw an USB ESD protection chip there. The built it Zeners are...