Firefly开源社区

打印 上一主题 下一主题

[Linux] 一款HDMI转MIPI桥片对接

205

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
205
QQ

一款HDMI转MIPI桥片对接

发表于 2022-3-8 16:42:02      浏览:3396 | 回复:3        打印      只看该作者   [复制链接] 楼主
您好:
    这个桥片是4LANE的,我的DTS文件如下:请问有什么问题吗?
我的系统报错:rockchip-csi2-dphy0: No link between dphy and sensor,从源码上看是描述链接关系时出错了。
&csi2_dphy_hw {
        status = "okay";
};

&i2c3 {
        status = "okay";

        lt6911uxc: lt6911uxc@2b {
                status = "okay";
                reg = <0x2b>;
                compatible = "lontium,lt6911uxc";
                //jst clocks = <&ext_cam_clk>;
                //clock-names = "xvclk";
                interrupt-parent = <&gpio0>;
                interrupts = <RK_PC6 IRQ_TYPE_EDGE_FALLING>;
                //JST power-gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
                reset-gpios = <&gpio1 RK_PB3 GPIO_ACTIVE_LOW>;
                //plugin-det-gpios = <&gpio0 RK_PC6 IRQ_TYPE_EDGE_FALLING>;
                //JST hpd-ctl-gpios = <&gpio3 27 GPIO_ACTIVE_LOW>;
                rockchip,camera-module-index = <0>;
                rockchip,camera-module-facing = "back";
                rockchip,camera-module-name = "LT6911UXC";
                rockchip,camera-module-lens-name = "NC";

                port {
                        lt6911uxc_out: endpoint {
                                remote-endpoint = <&hdmi_to_mipi_in>;
                                data-lanes = <1 2 3 4>;
                        };
                };
        };
};

&csi2_dphy0 {
        status = "okay";

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

                        hdmi_to_mipi_in: endpoint@1 {
                                reg = <1>;
                                remote-endpoint = <&lt6911uxc_out>;
                                data-lanes = <1 2 3 4>;
                        };
                };

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

                        csidphy_out_jst: endpoint@1 {
                                reg = <1>;
                                remote-endpoint = <&mipi_csi2_input>;
                                data-lanes = <1 2 3 4>;
                        };
                };
        };
};

&mipi_csi2 {
        status = "okay";

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

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

                        mipi_csi2_input: endpoint@1 {
                                reg = <1>;
                                remote-endpoint = <&csidphy_out_jst>;
                                data-lanes = <1 2 3 4>;
                        };
                };

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

                        mipi_csi2_output: endpoint@0 {
                                reg = <0>;
                                remote-endpoint = <&cif_mipi_in>;
                                data-lanes = <1 2 3 4>;
                        };
                };
        };
};

&rkcif_mipi_lvds {
        status = "okay";

        port {
                cif_mipi_in: endpoint {
                        remote-endpoint = <&mipi_csi2_output>;
                        data-lanes = <1 2 3 4>;
                };
        };
};
/*
&rkcif_mipi_lvds_sditf {
    status = "okay";
    port {
        mipi_lvds_sditf: endpoint {
            remote-endpoint = <&isp1_in>;
            data-lanes = <1 2>;
        };
    };
};
*/
&rkcif_mmu {
    status = "okay";
};

&rkcif {
    status = "okay";
};



&flash_led {
        status = "okay";
};

&vcc_camera {
        status = "okay";
        gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_HIGH>;
        /delete-property/ pinctrl-names;
        /delete-property/ pinctrl-0;
};

&pwm11 {
        status = "okay";
        pinctrl-0 = <&pwm11m1_pins>;
};
多谢!
回复

使用道具 举报

205

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
205
QQ
发表于 2022-3-10 15:41:46        只看该作者  沙发
楼主:
    不用回复了,我已经搞定了,是DTS文件有问题。
回复

使用道具 举报

205

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
205
QQ
发表于 2023-1-10 17:18:40        只看该作者  板凳
这是LT6911UXC用的,确认过好用。
回复

使用道具 举报

22

积分

0

威望

0

贡献

技术小白

积分
22
发表于 2023-5-15 09:13:32        只看该作者  地板
具体是什么原因呢,可以说一下吗?我也遇到了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表