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
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.