This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TDA4VM:如何配置 CDNs_csi2rx0

Guru**** 2364370 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1506643/tda4vm-how-to-configuration-cdns_csi2rx0

器件型号:TDA4VM

工具/软件:

你(们)好

我们使用 SDK 10。

我们希望使用 Linux 为 max96724 + max96717 +相机开发驱动程序。 现在、我们需要为 max96724和 cdns_csi2rx0配置设备树。

&main_i2c1 {  
    // MAX96724 Deserializer  
    max96724: gmsl-deserializer@27 {   
        status = "okay";  
        compatible = "maxim,max96724";  
        reg = <0x27>;  
        #address-cells = <1>;  
        #size-cells = <0>;  
        enable-gpios = <&main_gpio0 32 GPIO_ACTIVE_HIGH>;  
        
        i2c-alias-pool = <0x40 0x41 0x42 0x43>;  
        i2c-atr {  
            #address-cells = <1>;  
            #size-cells = <0>;      
        };  

        // Pipe configuration: bind Link A to Pipe 0  
        pipe@0 {  
            reg = <0>;  
            maxim,link-id = <0>;    // Link A  
            // If maxim,phy-id exists in the base DTS, leaving it out here removes it  
        };  

        // Channel configuration: Channel 0 input from Pipe 0, output to PHY1 (corresponding to CSI Port B)  
        channel@0 {  
            reg = <0>;              // Channel index 0  
            maxim,pipe-id = <0>;    // Data comes from Pipe 0  
            maxim,phy-id = <1>;     // Place maxim,phy-id under the Channel node  

            ports {  
                #address-cells = <1>;  
                #size-cells = <0>;  

                // Output port connected to CSI2RX  
                port@0 {  
                    reg = <0>;  
                    max96724_channelB_out: endpoint {  
                        remote-endpoint = <&csi2rx0_in_sensor>;  
                        bus-type = <4>;     // CSI2 D-PHY  
                        clock-lanes = <0>;  
                        data-lanes = <1 2 3 4>;  
                    };  
                };  

                // Input port  
                port@1 {  
                    reg = <1>;  
                    endpoint { };  
                };  
            };  
        };  
    };  
};  

/* CSI Receiver Configuration */  
&cdns_csi2rx0 {  
    status = "okay";  
    ports {  
        #address-cells = <1>;  
        #size-cells = <0>;  

        csi0_port0: port@0 {  
            reg = <0>;  
            status = "okay";  

            csi2rx0_in_sensor: endpoint {  
                remote-endpoint = <&max96724_channelB_out>;  
                bus-type = <4>; /* CSI2 DPHY */  
                clock-lanes = <0>;  
                data-lanes = <1 2 3 4>;  
            };  
        };  
    };  
};  

但根据日志,它似乎失败了。

[9.902459] max96724 1-0027:无法使用4504000.csi-bridge 创建设备链接(0x180)
[11.129724] cdns-csi2rx 4504000.csi-bridge:找不到 subdev max96724 1-0027的输出盘

如何修复它

BR

中断