Flash LED integration in Android 11 for IMX8MM

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

Flash LED integration in Android 11 for IMX8MM

459 次查看
deepakbeniya
Contributor III

I Have imx8m mini custom board which use android 11 . I have integrated OV5640 camera & it's working fine .
Now I need flash light need to be worked on when I capture a picture.
For LED FLASH Drive I am using LM2753 IC . which need two GPIOs , 1st GPIO is for enabel the IC & 2nd GPIO is to turn on LED.

Manually I can turn on and turn off the Flash LED .But, I need to integrate with Android source .
Kernel Version is 5.4.70


v4l2-flash-led-class.c
led-class-flash.c
led-class.c
led-gpio.c
ledtrig-camera.c

I went through these files , I couldn't find where to give my gpio pins So, that LED should work when I capture the picture or turn on flashlight as mobile phone.

If anyone have any idea or referance link , how it can be done ?

Thanks & Regards
Deepak Kumar Beniya

0 项奖励
回复
1 回复

436 次查看
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @deepakbeniya 

 

NXP does not have a solution for this. But it appears you need modify the HAL layer as you can see in Android user guide in section 8.1.

 

I hope this can helps.

 

Best regards.

 

Salas.

标记 (1)
0 项奖励
回复