The relevant file pins-imx8mm.h. is missing in kernel

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

The relevant file pins-imx8mm.h. is missing in kernel

1,435 Views
Ruban1
Contributor II

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

 

Labels (1)
0 Kudos
Reply
7 Replies

1,427 Views
joanxie
NXP TechSupport
NXP TechSupport

what android bsp version do you use? and why do you need this?

 

0 Kudos
Reply

1,418 Views
Ruban1
Contributor II

i am using android bsp 10. and i want to configure GPIO in android bsp

 

0 Kudos
Reply

1,408 Views
joanxie
NXP TechSupport
NXP TechSupport

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

 

0 Kudos
Reply

1,405 Views
Ruban1
Contributor II

how to upgrade the kernel and which .img should i create again

0 Kudos
Reply

1,393 Views
joanxie
NXP TechSupport
NXP TechSupport

you can keep this bsp and configure the gpio, what configure did you do and what error do you get?

0 Kudos
Reply

1,390 Views
Ruban1
Contributor II

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

0 Kudos
Reply

1,233 Views
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the link as below, to double check if you set the correct iomux for gpio

https://community.nxp.com/t5/i-MX-Processors/How-To-Use-GPIO-and-CAN-on-i-MX8MM-with-Yocto/m-p/96603...

 

0 Kudos
Reply