Navigation

    VEYE IMAGING Forum

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc

    SOLVED 相机驱动

    VEYE MIPI camera
    3
    38
    5107
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lin last edited by

      5e02f1ec-9b2f-48b6-a6c4-a64680a91dd2-image.png
      af23b8cc-024a-4319-9a88-6f9adc49d132-image.png 请问,这种情况是因为设备树有问题,还是驱动需要更改呢?

      &i2c7 {
      status = "okay";
      clock-frequency = <400000>;//?

      cam3_ar0234m_3b: cam3_ar0234m@3b {
          compatible = "veye1,mvcam1";
          status = "okay";
          reg = <0x3b>;
      
          clocks = <&ext_cam_clk>;//?
          clock-names = "xclk";
          clock-frequency = <24000000>;//?
      
          enable-gpios = <&extio EXTIO_GPIO_P05 GPIO_ACTIVE_HIGH>;
          reset-gpios = <&extio EXTIO_GPIO_P04 GPIO_ACTIVE_LOW>;
          rockchip,camera-module-index = <0>;
          rockchip,camera-module-facing = "back";
          rockchip,camera-module-name = "NC";
          rockchip,camera-module-lens-name = "NC";
          port {
              cam3_ar0234m_3b_out: endpoint {
                  remote-endpoint = <&mipi_in_ucam3_3b>;
                  data-lanes = <1 2>;
              };
          };
      };
      L 1 Reply Last reply Reply Quote 0
      • L
        lin @lin last edited by

        @lin fa17f74b-04e8-4ebb-9b58-e903ff8a3cb5-image.png 这个函数报错cfda272c-806a-409c-a6a7-089b58d467f0-image.png

        veye_xumm 1 Reply Last reply Reply Quote 0
        • veye_xumm
          veye_xumm @lin last edited by

          @lin 如果i2c用的总线没有配置错误,需要检查一下硬件连接是否正确,比如供电、fpc排线方向、poweron那个pin的配置。

          L 1 Reply Last reply Reply Quote 0
          • L
            lin @veye_xumm last edited by

            @veye_xumm 09cab23d-b212-4d88-9720-5044a9e191fe-6bc9afde4424ec08acfc689902c206d5.jpg [图片]没有用到power on引脚

            L 1 Reply Last reply Reply Quote 0
            • L
              lin @lin last edited by

              @lin 0a4117cc-8f57-4c69-a2cb-98a7eb47faba-image.png 开发板csi接口,上面是我们自己画的一个转接板

              veye_xumm 1 Reply Last reply Reply Quote 0
              • veye_xumm
                veye_xumm @lin last edited by

                @lin 我们相机的i2c是3.3V电平标准,不知你原理图上有没有做电平转换?

                L 1 Reply Last reply Reply Quote 0
                • L
                  lin @veye_xumm last edited by

                  @veye_xumm enable线外接的底板是1.8v能触发工作吗

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    lin @lin last edited by

                    @lin i2c 、vcc都做了电平转换为3.3v。enable端不做电平转换直接由底板(1.8V)引出连接给相机,会导致无法正常工作吗?最低要求电压是多少?用i2cdetect -y 7检测不到设备
                    93a5a509-e3b1-4b64-a51a-f524f7a66c5e-image.png

                    veye_xumm L 2 Replies Last reply Reply Quote 0
                    • veye_xumm
                      veye_xumm @lin last edited by veye_xumm

                      @lin
                      334fbe86-1034-41ae-9437-0f41f32c8ba3-image.png
                      我们的SYS_RSTn对应的是你的17,现在是NC的,我们内部有上拉,这样i2c应该直接就是通的。你是接到i2c-7上了吗?另外,你的fpc线方向有没有插反了?

                      L 1 Reply Last reply Reply Quote 0
                      • L
                        lin @veye_xumm last edited by

                        @veye_xumm !是i2c7

                        e8f962cc-2cc4-48f2-9008-1621852c68f3-image.png

                        @lin said in 相机驱动:

                        @lin 0a4117cc-8f57-4c69-a2cb-98a7eb47faba-image.png 开发板csi接口,上面是我们自己画的一个转接板

                        L 1 Reply Last reply Reply Quote 0
                        • L
                          lin @lin last edited by

                          @lin poweron这个引脚在哪里,相机给出的22个引脚中没有

                          veye_xumm 1 Reply Last reply Reply Quote 0
                          • veye_xumm
                            veye_xumm @lin last edited by

                            @lin

                            @lin said in 相机驱动:

                            poweron这个引脚在哪里,相机给出的22个引脚中没有
                            不好意思,我之前说的就是SYS_RSTn引脚的意思。

                            拍一下你硬件连接的照片我看看。

                            L 1 Reply Last reply Reply Quote 0
                            • L
                              lin @veye_xumm last edited by

                              @veye_xumm复位端未与底板连接,由于相机上上拉的原因应该是属于持续工作的状态吧? 驱动没加载上的话,i2cdetect 能检测到挂载设备吗?868fc94a-ccc9-477f-ba64-a417a027d43f-image.png

                              veye_xumm 1 Reply Last reply Reply Quote 0
                              • veye_xumm
                                veye_xumm @lin last edited by

                                @lin said in 相机驱动:

                                复位端未与底板连接,由于相机上上拉的原因应该是属于持续工作的状态吧? 驱动没加载上的话,i2cdetect 能检测到挂载设备吗?

                                是的。 你这个camera3是对应的i2c-7吗? 如果无误,问题进展到这一步,我只能说上万用表,示波器量一下吧。先量供电,再量I2C。

                                L 1 Reply Last reply Reply Quote 0
                                • L
                                  lin @veye_xumm last edited by

                                  @veye_xumm 用示波器测量i2c应该是什么情况能说明设备被连上了呢?

                                  veye_xumm 1 Reply Last reply Reply Quote 0
                                  • veye_xumm
                                    veye_xumm @lin last edited by

                                    @lin
                                    可以用mv_mipi_i2c.sh脚本执行读写寄存器操作,同时观察示波器上面波形。
                                    i2c协议和寄存器介绍:https://wiki.veye.cc/index.php/MV_Series_MIPI_Camera_Register_Map/zh

                                    L 1 Reply Last reply Reply Quote 0
                                    • L
                                      lin @veye_xumm last edited by

                                      @veye_xumm 测量没反应?

                                      L 1 Reply Last reply Reply Quote 0
                                      • L
                                        lin @lin last edited by

                                        @lin 测量相机的RST引脚电压是1.6v,相机可以正常工作吗?

                                        L 0 2 Replies Last reply Reply Quote 0
                                        • L
                                          lin @lin last edited by

                                          This post is deleted!
                                          1 Reply Last reply Reply Quote 0
                                          • 0
                                            023 @lin last edited by

                                            @veye_xumm 相机使能端(Sys_RSTn)正常工作下电平最低要求是多少

                                            veye_xumm 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post