We follow android_build/vendor/nxp-opensource/uboot-imx/board/freescale/imx8qm_mek/imx8qm_mek.c using API "gpio_request" and "gpio_direction_output" to set GPIO pin to high/low. For example:
gpio_request(IMX_GPIO_NR(2, 21), "power_enable");
gpio_direction_output(IMX_GPIO_NR(2, 21), 1);
These API can work in android_p9.0.0_2.0.0-ga and L4.14.98_2.0.0 but failed in android_p9.0.0_2.1.0-auto-ga.
Thanks.