全志适配TP9930时csi&isp setup link failed
-
在调试时出现CSI与ISP未能链接的情况,有没有人遇到过,帮忙看一下
应用程序测试
csi_test_usrptr 16 0 1280 720 /usr 4 10 25
csi_test_usrptr 17 0 1280 720 /usr 4 10 25
CSI 和 ISP 之间的链接时遇到问题
定位代码:bsp/drivers/vin/vin-video/vin_video.c
添加打印,确认isp和csi 都非空
media_entity_find_link函数的实现
kernel/linux-5.15/drivers/media/mc/mc-entity.c设备树:
在T527平台中,parser(csi)个数为4 个(parser0/1/2/3),其中 parser3可配置为并口输入。所以作为 BT656/BT1120 输入的时候,csi_sel 只能选择 3,不能选择其他选项csi3:csi@5823000 {
pinctrl-names = "default","sleep";
pinctrl-0 = <&ncsi_bt1120_pins_a>;
pinctrl-1 = <&ncsi_bt1120_pins_b>;
status = "okay";
};sensor1:sensor@5812010 { device_type = "sensor1"; sensor1_mname = "tp9930"; sensor1_twi_cci_id = <3>;//twi3, 连接的TWI 组号 sensor1_twi_addr = <0x8a>;//TWI地址 sensor1_mclk_id = <3>; //连接的MCLK组号 sensor1_pos = "front"; sensor1_isp_used = <0>; sensor1_fmt = <0>; sensor1_stby_mode = <0>; sensor1_vflip = <0>; sensor1_hflip = <0>; sensor1_iovdd-supply = <>; sensor1_iovdd_vol = <>; sensor1_avdd-supply = <>; sensor1_avdd_vol = <>; sensor1_dvdd-supply = <>; sensor1_dvdd_vol = <>; sensor1_power_en = <>; sensor1_reset = <&pio PK 10 GPIO_ACTIVE_LOW>; sensor1_reset = <>; sensor1_pwdn = <>; status = "okay"; }; vinc40:vinc@5834000 { vinc16_csi_sel = <3>; //代表选择的csi 接口 vinc16_mipi_sel = <0xff>; vinc16_isp_sel = <5>; vinc16_isp_tx_ch = <0>; vinc16_tdm_rx_sel = <0>; vinc16_rear_sensor_sel = <1>; vinc16_front_sensor_sel = <1>; vinc16_sensor_list = <0>; device_id = <16>; status = "okay"; }; vinc50:vinc@5835000 { vinc17_csi_sel = <3>; vinc17_mipi_sel = <0xff>; vinc17_isp_sel = <5>; vinc17_isp_tx_ch = <1>; vinc17_tdm_rx_sel = <0>; vinc17_rear_sensor_sel = <1>; vinc17_front_sensor_sel = <1>; vinc17_sensor_list = <0>; device_id = <17>; status = "okay"; };
-
已解决,csi驱动未成功注册驱动的原因
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号