Get him smart toys as he's growing, like the thing you mentioned, like Lego, like Makeblock (http://www.makeblock.cc/), toys that encourage creativity.
I'm sure you can find great resources for kids to learn how to code, that's where you come in. He expresses the wish to learn how to code, you find out what's best out there to do it in his age.