i.mx8mq tvin(adv7282M)

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

i.mx8mq tvin(adv7282M)

1,411 Views
liyu1
Contributor III

Hello everyone !

      I have a custom board。

      my hardware:  i.mx8mq 

      OS: android 9_1.0.0

      The question I want to ask is: Is there any relevant document about  i.mx8mq Android 9 TVin?

       

       Now I register the name of the device driver of adv7282 as adv7180 _decoder

      static const struct i2c_device_id adv7282m_id[] = {
824 {"adv7180_decoder", 0},
825 };
826
827 MODULE_DEVICE_TABLE(i2c, adv7282m_id);
828
829 static const struct of_device_id adv7282m_of_match[] = {
830 { .compatible = "adv,adv7180_decoder" },
831 { /* sentinel */ }
832 };
833
834 static struct i2c_driver adv7282m_i2c_driver = {
835 .driver = {
836 .owner = THIS_MODULE,
837 .name = "adv7180_decoder",
838 .of_match_table = of_match_ptr(adv7282m_of_match),
839 },
840 .probe = adv7282m_probe,
841 .remove = adv7282m_remove,
842 .id_table = adv7282m_id,
843 };
844
845 module_i2c_driver(adv7282m_i2c_driver);
846
847 MODULE_AUTHOR("NXP Semiconductor, Inc.");
848 MODULE_DESCRIPTION("adv7282m Video Decoder Driver");
849 MODULE_LICENSE("GPL");
850 MODULE_VERSION("1.0");
851 MODULE_ALIAS("CSI");

HAL print is :

01-01 00:00:45.768 2934 2934 I FslCameraHAL: enumSensorSet
01-01 00:00:45.768 2934 2934 I FslCameraHAL: matchDevNodes
01-01 00:00:45.768 2934 2934 I FslCameraHAL: getNodeName: dev path:/dev/video0
01-01 00:00:45.769 2934 2934 I FslCameraHAL: getNodeName: node name:mx6s-csi
01-01 00:00:45.769 2934 2934 I FslCameraHAL: getNodeName CHIP_IDENT dev path:/dev/video0 failed
01-01 00:00:45.769 2934 2934 I FslCameraHAL: getNodeNames: node name:mx6s-csi,i.MX6S_CSI
01-01 00:00:45.769 2934 2934 I FslCameraHAL: matchPropertyName: index:0, mx6s-csi
01-01 00:00:45.769 2934 2934 I FslCameraHAL: index:0, propName:mx6s-csi
01-01 00:00:45.769 2934 2934 I FslCameraHAL: matchNodeName
01-01 00:00:45.769 2934 2934 I FslCameraHAL: matchNodeName: sensor:mx6s-csi,i.MX6S_CSI, dev:/dev/video0, node:mx6s-csi, index:0
01-01 00:00:45.769 2934 2934 I FslCameraHAL: Camera ID 0: name mx6s-csi,i.MX6S_CSI, Facing 0, orientation 0, dev path /dev/video0
01-01 00:00:45.769 2934 2934 I FslCameraHAL: matchPropertyName: index:1, uvc
01-01 00:00:45.769 2934 2934 I FslCameraHAL: index:1, propName:uvc
01-01 00:00:45.769 2934 2934 I FslCameraHAL: matchNodeName
01-01 00:00:45.769 2934 2934 I FslCameraHAL: create id:0 5640-csi-8mq device
01-01 00:00:45.769 2934 2934 I FslCameraHAL: Camera:0: new camera device
01-01 00:00:45.769 2934 2934 I FslCameraHAL: camera number is 1

Now I have successfully registered the adv7282m driver, and the driver name is adv7180_decoder,

But the HAL layer creates the ov5640 object。

My init.rc:

setprop camera.disable_zsl_mode 1
67 setprop back_camera_name mx6s-csi
68 setprop back_camera_orient 0
69 setprop front_camera_name uvc
70 setprop front_camera_orient 0

I want to know what else I need to change?

Tags (1)
0 Kudos
Reply
2 Replies

1,195 Views
igorpadykov
NXP Employee
NXP Employee

Hi li

I am afraid adv7282m is not supported in nxp software bsps and not aware

of relevant documentation. As suggestion one can look at efforts on

iMX8M MIPI-CSI 4-lane configuration 

and driver sources, check function csi_tvdec_enable()
mx6s_capture.c\capture\mxc\platform\media\drivers - linux-imx - i.MX Linux kernel 

unit tests:

mxc_v4l2_test\test - imx-test - i.MX Driver Test Application Software 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,194 Views
liyu1
Contributor III

@igorpadykov :

    Thank you for your reply !

      

    I have implemented the driver of adv7282m, refer to adv7180,  But the Android Hal layer,I doesn't know how to modify it , The object created by default is ov5640  : 

 

     log  :       

 01-01 00:00:45.769 2934 2934 I FslCameraHAL: index:1, propName:uvc
01-01 00:00:45.769 2934 2934 I FslCameraHAL: matchNodeName
01-01 00:00:45.769 2934 2934 I FslCameraHAL: create id:0 5640-csi-8mq device
01-01 00:00:45.769 2934 2934 I FslCameraHAL: Camera:0: new camera device
01-01 00:00:45.769 2934 2934 I FslCameraHAL: camera number is 1

     But my driver name is adv7180_decoder !   Does init.rc need to be changed ?

     setprop back_camera_name mx6s-csi
     setprop back_camera_orient 0
     setprop front_camera_name uvc

     setprop front_camera_orient 0

    Attachment: drive of adv7282m, Thanks!

0 Kudos
Reply