ports-foc: fix irq number and capability allocation