AnsweredAssumed Answered

i.mx8mq tvin(adv7282M)

Question asked by li yu on Dec 2, 2019
Latest reply on Dec 2, 2019 by li yu

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?

Outcomes