Now our client board is using 4 channels of CSI, how should I configure it?


As shown in the schematic above, how should I configure the device tree and which device nodes should I mainly configure. What are these nodes used for, can you introduce them?

First, configure the CSI section to recognize/dev/vedioX

        tegra-capture-vi  {
                ports {
                        port@0 {
                                endpoint {
                                        port-index = <1>;
                                };
                        };
                };
        };

  
      host1x@13e00000 {
                nvcsi@15a00000 {
                        channel@0 {
                                ports {
                                        port@0 {
                                                endpoint@0 {
                                                        port-index = <1>;
                                                };
                                        };
                                };
                        };
                };
        };

        cam_i2cmux{
                i2c@0 {
                        rbpcv2_imx219_a@10 {
                                mode0 {
                                        tegra_sinterface = "serial_b";
                                        lane_polarity = "6";
                                };
                                mode1 {
                                        tegra_sinterface = "serial_b";
                                        lane_polarity = "6";
                                };
                                mode2 {
                                        tegra_sinterface = "serial_b";
                                        lane_polarity = "6";
                                };
                                mode3 {
                                        tegra_sinterface = "serial_b";
                                        lane_polarity = "6";
                                };
                                mode4 {
                                        tegra_sinterface = "serial_b";
                                        lane_polarity = "6";
                                };
                                ports {
                                        port@0 {
                                                endpoint {
                                                        port-index = <1>;
                                                };
                                        };
                                };
                        };

                        rbpcv3_imx477_a@1a {
                                mode0 {
                                        tegra_sinterface = "serial_b";
                                        lane_polarity = "6";
                                };
                                mode1 {
                                        tegra_sinterface = "serial_b";
                                        lane_polarity = "6";
                                };
                                ports {
                                        port@0 {
                                                endpoint {
                                                        port-index = <1>;
                                                };
                                        };
                                };
                        };
                };

I can find the three nodes above, but I don’t know what each field represents, how to configure it, and if there are any other nodes that need to be configured?

evb board default use dts:
tegra234-camera-rbpcv2-imx219.dtsi tegra234-camera-rbpcv3-imx477.dtsi

现在四路相机,电路图如上所示,设备树中应该怎么配置CSI的相关部分?这个有相关文档说明吗?
tegra-capture-vi 节点和 host1x@13e00000 节点的作用是干啥?

Please check the programing guide for it.

https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/SD/CameraDevelopment/SensorSoftwareDriverProgramming.html?highlight=port%20index#