Dual camera connected to SD820 som is not working

Hi Loic and Team,

We have a SD820 SOM connected to a carrier board comprising two cci and csi ports.

I am not able to have both of them working together. Our device tree looks as below:

    cci@a0c000 {
            status = "ok";

            i2c-bus@0 {
                    reg = <0>;
                    #address-cells = <1>;
                    #size-cells = <0>;
                    status = "okay";
                    camera_board@36 {
                            compatible = "ovti,oc0sa";
                            reg = <0x36>;

                            shtdwn-gpios = <&msmgpio 135 GPIO_ACTIVE_HIGH>;
                            fsin-gpios = <&msmgpio 29 GPIO_ACTIVE_HIGH>;

                            pinctrl-names = "default";
                            pinctrl-0 = <&camera_primary_default>;

                            clocks = <&mmcc CAMSS_MCLK0_CLK>;
                            assigned-clocks = <&mmcc CAMSS_MCLK0_CLK>;
                            clock-names = "xclk";
                            clock-frequency = <24000000>;

                            status = "okay";

                            port {
                                    ovc0sa_1_ep: endpoint {
                                            clock-lanes = <1>;
                                            data-lanes = <0>;
                                            remote-endpoint = <&csiphy0_ep>;
                                    };
                            };
                    };
            };

            i2c-bus@1 {
                    reg = <1>;
                    #address-cells = <1>;
                    #size-cells = <0>;

                    camera_board@3c {
                            compatible = "ovti,ov5645";
                            reg = <0x3c>;

                            reset-gpios = <&msmgpio 23 GPIO_ACTIVE_LOW>;
                            enable-gpios = <&msmgpio 130 GPIO_ACTIVE_HIGH>;
                            pinctrl-names = "default";
                            pinctrl-0 = <&camera_secondary_default &camera_powerdown &camera_enable>;

                            clocks = <&mmcc CAMSS_MCLK1_CLK>;
                            assigned-clocks = <&mmcc CAMSS_MCLK1_CLK>;
                            clock-names = "xclk";
                            clock-frequency = <24000000>;

                            vdddo-supply = <&camera_vdddo_1v8>;
                            vdda-supply = <&camera_vdda_2v8>;
                            vddd-supply = <&camera_vddd_1v5>;

                            status = "ok";

                            port {
                                    ov5645_2_ep: endpoint {
                                            clock-lanes = <1>;
                                            data-lanes = <0 2>;
                                            remote-endpoint = <&csiphy1_ep>;
                                    };
                            };
                    };
            };
    };
   
    camss@a00000 {
            status = "ok";

            ports {
                    #address-cells = <1>;
                    #size-cells = <0>;
                    port@0 {
                            reg = <0>;
                            csiphy0_ep: endpoint {
                                    clock-lanes = <7>;
                                    data-lanes = <0>;
                                    remote-endpoint = <&ovc0sa_1_ep>;
                                    status = "okay";
                            };
                    };
                    port@1 {
                            reg = <1>;
                            csiphy1_ep: endpoint {
                                    clock-lanes = <7>;
                                    data-lanes = <0 1>;
                                    remote-endpoint = <&ov5645_2_ep>;
                                    status = "disabled";
                            };
                    };
            };
    };

Problem statement:
When I have both the ports, i.e., port@0 status = “okay” and port@1 status= “okay”, I am not able to see the
/dev/media0 node, what could be the problem?
only when I have the port@0 status=“okay”, and port@1 status=“disabled” the /dev/media0 node is being populated.

Kindly let me know what is the fix to make both the camera devices working ?

Regards,
Shiva Shankar K.