How to use OV13850 on rk3399 with Linux system

307 views
Skip to first unread message

Bruce Li

unread,
Nov 7, 2017, 5:51:11 PM11/7/17
to linux-rockchip
I'm quite puzzled about how tu use a mipi camera on rk3399. There is no document or code example. I don't know how to get hand on it. Any instructions would be much appreciated. Thanks!

Verachten Bruno

unread,
Jul 29, 2019, 11:16:24 AM7/29/19
to linux-rockchip
Did you manage to get it to work?

Ponmadasamy Muthuraj

unread,
Sep 10, 2019, 9:56:41 PM9/10/19
to linux-rockchip
I have working buildroot set-up for ov13850

Verachten Bruno

unread,
Sep 12, 2019, 11:43:33 AM9/12/19
to linux-rockchip
That's great news.
Can you please share it?

ponmadasamy

unread,
Sep 12, 2019, 9:23:37 PM9/12/19
to Verachten Bruno, linux-rockchip
my connection is to MIPI_RX0

So you need this on your dts

&rkisp1_0 {
    status = "okay";

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

        isp0_mipi_inendpoint@0 {
            reg = <0>;
            remote-endpoint = <&dphy_rx0_out>;
        };
    };
};
&mipi_dphy_rx0 {
    status = "okay";

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

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

            mipi_in_ucam0endpoint@1 {
                reg = <1>;
                remote-endpoint = <&ucam_out0>;
                data-lanes = <1 2>;
            };
        };

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

            dphy_rx0_outendpoint@0 {
                reg = <0>;
                remote-endpoint = <&isp0_mipi_in>;
            };
        };
    };
};

&i2c1 {
    status = "okay";

    ov13850ov13850@10 {
        compatible = "ovti,ov13850";
        status = "okay";
        reg = <0x10>;
        clocks = <&cru SCLK_CIF_OUT>;
        clock-names = "xvclk";

        /* conflict with csi-ctl-gpios */
        reset-gpios = <&gpio2 27 GPIO_ACTIVE_HIGH>;
        pwdn-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
        pinctrl-names = "rockchip,camera_default";
        pinctrl-0 = <&cif_clkout>;

        port {
            ucam_out0endpoint {
                remote-endpoint = <&mipi_in_ucam0>;
                data-lanes = <1 2>;
            };
        };
    };
};


and enable OV13850 in kernel config. 

Cheers.,
M.P.Saami


On Thu, 12 Sep 2019 at 21:13, Verachten Bruno <goun...@gmail.com> wrote:
That's great news.
Can you please share it?

--
You received this message because you are subscribed to a topic in the Google Groups "linux-rockchip" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/linux-rockchip/IC4LyzphDcM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to linux-rockchi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/linux-rockchip/b8279d4e-9e90-4c3a-ab31-01a6eb0796a0%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages