ramips: add get_direction() callback and irq support to gpio-mt7621