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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,898 次查看
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

 

标签 (1)
0 项奖励
回复
7 回复数

1,890 次查看
joanxie
NXP TechSupport
NXP TechSupport

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

 

0 项奖励
回复

1,881 次查看
Ruban1
Contributor II

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

 

0 项奖励
回复

1,871 次查看
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 项奖励
回复

1,868 次查看
Ruban1
Contributor II

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

0 项奖励
回复

1,856 次查看
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 项奖励
回复

1,853 次查看
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 项奖励
回复

1,696 次查看
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 项奖励
回复