早い vs 速い — same reading, different kanji?

Both are はやい but I keep mixing up which one to use for "the train is fast" vs "I woke up early." Is there a clean rule or do I just have to memorize per word?
Post
沐學 Mizuru