Tx1 device tree about camera

Hi,

I want to update device tree for my camera, but my camera have two output stream, for each stream it use two MIPI vitural channel, so I need to create two video device node and two links for one device.
what should I do?

thanks.

Hi cloundliu
You can reference to the tegra210-camera-e3333-a00.dtsi the DT for multi camera use case. Also you can download the document from below link and reference to the “Sensor Driver Programming Guide” chapter

http://developer.nvidia.com/embedded/dlc/l4t-documentation-24-2

Hi ShaneCCC,

I have already read this document you mentioned above, but it is useless for me.
I just want to know how to create two video device node and two links for one device.

for example:

|----->output_stream_1--->CSI_0-->.....
video_device_1
             |----->output_stream_2--->CSI_1-->.....

the device-tree write as follows:

vi {
        num-channels = <2>;
        ports {
                 #address-cells = <1>;
                 #size-cells = <0>;
                 port@0 {
                           reg = <0>;
                           vi_in0: endpoint {
                                     csi-port = <0>;
                                     bus-width = <2>;
                                      remote-endpoint = <&device_out0>;
                                      };
                 };
                 port@1 {
                            reg = <1>;
                            vi_in1: endpoint {
                                     csi-port = <1>;
                                     bus-width = <2>;
                                     remote-endpoint = <&device_out1>;
                                     };
                 };
         };
};

video_device@xxx{
          ......
          ports {
                 #address-cells = <1>;
                 #size-cells = <0>;
                 port@0 {
                        reg = <0>;
                        device_out0: endpoint {
                                 csi-port = <0>;
                                 bus-width = <2>;
                                 remote-endpoint = <&vi_in0>;
                                 };
                          };
                 };
                 port@1 {
                        reg = <1>;
                        device_out1: endpoint {
                                 csi-port = <1>;
                                 bus-width = <2>;
                                 remote-endpoint = <&vi_in1>;
                                 };
                          };
                 };
          ......
};

Is it right?

thanks

Hi cloundliu
Yes, you can create 2 sensor node like that.

Hi cloundliu,

Have you managed to update the device tree and create 2 sensor node successfully?
Any good result can be shared?

Thanks