PIN reduction ideas for interface

You can also get motor controllers that connect to i2c bus, like these.