Note about Gpio Numbering in Common CPU NXP i.MX8 U-Boot gpio_n = (((port) * 32) + ((index) & 31)) Kernel gpio_n = 480 - ((bank_n * 32) + pin_n)