External GPIO Chip not present iMX8MP android

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

External GPIO Chip not present iMX8MP android

Jump to solution
773 Views
bradoconnell
Contributor I

I am attempting to use the external gpio header (gpiochip5) on the iMX8MP-EVK running android but the device does not appear to be loaded. On debian (built with flexbuild) this chip is loaded fine and can be controlled with "gpioset gpiochip5" type commands but on the android build the device /dev/gpiochip5 is never created. This issue is present both in the stock android build and after ensuring that CONFIG_GPIO_PCA953X=y and CONFIG_GPIO_PCA953X_IRQ=y are set, that gpio-pca953x.o is built during the kernel build, and then re-flashing the boot and vendor_boot partitions.

Tags (1)
0 Kudos
Reply
1 Solution
730 Views
bradoconnell
Contributor I

No, those aren't the ones I'm referring to. /dev/gpiochip5 is created for the external gpio header by the pca953x driver (which I believe connects to a tca6416 chip on the EVK, but that I'm not certain of).

My kernel is working now to correctly create that device as shown below so this is fixed. I think what fixed my build was a full "make clean" before rebuilding the kernel (still with CONFIG_GPIO_PCA953X=y and CONFIG_GPIO_PCA953X_IRQ=y in imx8mp_gki.fragment)

bradoconnell_0-1743715282499.png

View solution in original post

0 Kudos
Reply
3 Replies
749 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @bradoconnell 

Maybe this is a sequence issue.   in my side , it start from gpiochip0

GPIO1 to GPIO5 listed as gpiochip0 to gpiochip4.

danielchen_0-1743651324745.png

Regards

Daniel

0 Kudos
Reply
731 Views
bradoconnell
Contributor I

No, those aren't the ones I'm referring to. /dev/gpiochip5 is created for the external gpio header by the pca953x driver (which I believe connects to a tca6416 chip on the EVK, but that I'm not certain of).

My kernel is working now to correctly create that device as shown below so this is fixed. I think what fixed my build was a full "make clean" before rebuilding the kernel (still with CONFIG_GPIO_PCA953X=y and CONFIG_GPIO_PCA953X_IRQ=y in imx8mp_gki.fragment)

bradoconnell_0-1743715282499.png

0 Kudos
Reply
719 Views
danielchen
NXP TechSupport
NXP TechSupport

thanks for sharing.

0 Kudos
Reply