The relevant file pins-imx8mm.h. is missing in path ndroid_build/variscite/kernel_imx/include/dt-bindings/pinctrl/
i am using Android OS or if there is othere path . Provide me the relavent path for pinctrl in Android for GPIO
what android bsp version do you use? and why do you need this?
i am using android bsp 10. and i want to configure GPIO in android bsp
in android 10 kernel, which file do you need pins-imx8mm.h? I found fsl-imx8mm.dtsi in the 4.14 kernel needs this, and can find dt-bindings/pinctrl/pins-imx8mm.h, but 5.10 kernel, I don't find this file
how to upgrade the kernel and which .img should i create again
you can keep this bsp and configure the gpio, what configure did you do and what error do you get?
i wanted to configure the gpio pins which i have attached below . And i am using Android 10 OS in imx8m mini evk board.
To export the GPIO for userspace use:
$ echo 117 > /sys/class/gpio/export
To configure as output:
$ echo out > /sys/class/gpio/gpio117/direction
Set GPIO high:
$ echo 1 > /sys/class/gpio/gpio117/value
Set GPIO low:
$ echo 0 > /sys/class/gpio/gpio117/value
To configure as input:
$ echo in > /sys/class/gpio/gpio117/direction
Read the current value:
$ cat /sys/class/gpio/gpio117/value
To free the GPIO after you're done using it:
$ echo 117 > /sys/class/gpio/unexport
I tried all these commands it showing permission denied or file is not present . i tried with su also still the same issue
i connect a LED in GPIO for testing purpose bt not able to control as the above commands are not working
and i tried to access the GPIO pins using Android APK also bt its getting crashed the link was done According to one of your colleague.
They sent link which uses Android things and other is Digi . which is not supporting in Android Studio
For now i just want to blink or control LED connected to the peripheral of imx8m mini
pls refer to the link as below, to double check if you set the correct iomux for gpio