Navigation

    VEYE IMAGING Forum

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    1. Home
    2. jihua
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 9
    • Best 0
    • Groups 0

    jihua

    @jihua

    0
    Reputation
    3
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Email jihuausst@163.com

    jihua Follow

    Latest posts made by jihua

    • RE: rk3588开发板接RAW-MIPI-SC132M无法获取图片

      @veye_xumm
      获取一张图片报错
      615c996e-a120-4b35-b746-5a72e174d46c-企业微信截图_17327790824880.png

      posted in Rockchip App camera
      J
      jihua
    • RE: rk3588开发板接RAW-MIPI-SC132M无法获取图片

      @veye_xumm
      VCC3V3 测量到是3.3V,MIPI_CK_N 时钟是固定的吗?时钟是多少的?设置帧率后这个时钟会变吗?

      posted in Rockchip App camera
      J
      jihua
    • RE: rk3588开发板接RAW-MIPI-SC132M无法获取图片

      @veye_xumm
      排线长度有26厘米长
      d573eebf-ed60-4955-872c-b7609ef8ecc0-ad04fd8f-6c28-4da6-a785-2304d7f0e416.jpg [图片]

      posted in Rockchip App camera
      J
      jihua
    • RE: rk3588开发板接RAW-MIPI-SC132M无法获取图片

      @veye_xumm
      内核打印的信息显示datarate是1.5G,用示波器测量不到时钟波形,只能测到数据波形,这个模块的实际datarate是多少的?现在抓图的时候,内核驱动报crc错误,怀疑是排线太长或者datarate对不上。
      5f8b98d4-7dd7-4905-8b58-1490b43c355b-dmesg内核打印信息.png

      posted in Rockchip App camera
      J
      jihua
    • RE: rk3588开发板接RAW-MIPI-SC132M无法获取图片

      @veye_xumm
      读取相机的datarate返回是-1代表什么意思。
      c006446a-1d69-44e7-a9e7-7c242ec15f9d-企业微信截图_17327734029064.png

      posted in Rockchip App camera
      J
      jihua
    • RE: rk3588开发板接RAW-MIPI-SC132M无法获取图片

      执行指令结果如下:
      873ce878-1078-4470-9adb-eb9d860562c4-企业微信截图_17326077017593.png
      硬件是有转接板的,量过了线序是对应的上的:
      e879d659-7b46-4beb-96cd-039196f1506c-e764d81e-9d1c-4ba5-b1ca-151e0dcfba18.jpg [图片]

      posted in Rockchip App camera
      J
      jihua
    • RE: rk3588开发板接RAW-MIPI-SC132M无法获取图片

      取图时的信息和dmesg信息如下:
      6f0ecb2f-5ad3-4e06-b96a-741e39a7b953-企业微信截图_17325887892697.png
      5cee45f4-122d-4061-be17-8372fa9b88c3-企业微信截图_17325888947942.png
      下面是原来系统里的设备树,接imx415是通的:

      // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
      /*
       * Copyright (c) 2020 Rockchip Electronics Co., Ltd.
       *
       */
      
      / {
      	ext_cam2_37m_clk: external-camera-37m-clock {
      		compatible = "fixed-clock";
      		clock-frequency = <37125000>;
      		clock-output-names = "ext_cam_37m_clk";
      		#clock-cells = <0>;
      	};
      
      	ext_cam2_25m_clk: external-camera-25m-clock {
      		compatible = "fixed-clock";
      		clock-frequency = <25000000>;
      		clock-output-names = "ext_cam_25m_clk";
      		#clock-cells = <0>;
      	};
      
      	ext_cam2_24m_clk: external-camera-24m-clock {
      		compatible = "fixed-clock";
      		#clock-cells = <0>;
      		clock-frequency = <24000000>;
      		clock-output-names = "ext_cam_24m_clk";
      	};
      
      	vdd_cam2_5v: vdd-cam2-5v-regulator {
      		compatible = "regulator-fixed";
      		regulator-name = "vdd_cam_5v";
      		regulator-always-on;
      		regulator-boot-on;
      		regulator-min-microvolt = <3300000>;
      		regulator-max-microvolt = <3300000>;
      	};
      
      	cam2_dovdd: cam2-dovdd {
      		compatible = "regulator-fixed";
      		regulator-name = "cam_dovdd";
      		regulator-always-on;
      		regulator-boot-on;
      		regulator-min-microvolt = <1800000>;
      		regulator-max-microvolt = <1800000>;
      		vin-supply = <&vdd_cam2_5v>;
      	};
      
      	cam2_avdd: cam2-avdd {
      		compatible = "regulator-fixed";
      		regulator-name = "cam_avdd";
      		regulator-always-on;
      		regulator-boot-on;
      		regulator-min-microvolt = <2800000>;
      		regulator-max-microvolt = <2800000>;
      		vin-supply = <&vdd_cam2_5v>;
      	};
      
      	cam2_dvdd: cam2-dvdd {
      		compatible = "regulator-fixed";
      		regulator-name = "cam_dvdd";
      		regulator-always-on;
      		regulator-boot-on;
      		regulator-min-microvolt = <1200000>;
      		regulator-max-microvolt = <1200000>;
      		vin-supply = <&vdd_cam2_5v>;
      	};
      };
      
      /* Link path: sensor->csi2_dphy0->mipi2_csi2->rkcif_mipi_lvds2--->rkcif_mipi_lvds2_sditf->rkisp0_vir2 */
      &i2c6 {
      	status = "okay";
      	pinctrl-names = "default";
      	pinctrl-0 = <&i2c6m3_xfer>;
      
      	
      	dw9714: dw9714@c {
      		status = "okay";
      		compatible = "dongwoon,dw9714";
      		reg = <0xc>;
      		rockchip,camera-module-index = <0>;
      		rockchip,vcm-max-current = <100>;
      		rockchip,vcm-start-current = <0>;
      		rockchip,vcm-rated-current = <100>;
      		rockchip,vcm-step-mode = <0xd>;
      		rockchip,vcm-dlc-enable = <0>;
      		rockchip,vcm-mclk = <0>;	
      		rockchip,vcm-t-src = <0>;
      		rockchip,camera-module-facing = "back";
      	};
      
      	ov5647: ov5647@36 {
      		compatible = "ovti,ov5647";
      		status = "disabled";
      		reg = <0x36>;
      		clocks = <&ext_cam2_25m_clk>;
      		clock-names = "ext_cam_25m_clk";
      		pwdn-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_LOW>;
      		lens-focus = <&dw9714>;
      
      		port {
      			ov5647_out: endpoint {
      				remote-endpoint = <&dphy0_in_ov5647>;
      				data-lanes = <1 2>;
      			};
      		};
      	};
      
      	ov5648: camera@36 {
      		compatible = "ovti,ov5648";
      		status = "disabled";
      		reg = <0x36>;
      		clocks = <&ext_cam2_24m_clk>;
      		clock-names = "xvclk";
      		dovdd-supply= <&cam2_dovdd>; /* 1.8v */
      		avdd-supply = <&cam2_avdd>;  /* 2.8v */
      		dvdd-supply = <&cam2_dvdd>;  /* 1.2v */
      		pwdn-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
      		reset-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_LOW>;
      		rotation = <180>;
      
      		rockchip,camera-module-index = <2>;
      		rockchip,camera-module-facing = "back";
      		rockchip,camera-module-name = "THDS11073";
      		rockchip,camera-module-lens-name = "Largan-40122a1";
      		lens-focus = <&dw9714>;
      
      		port {
      			/* MIPI CSI-2 bus endpoint */
      			ov5648_out: endpoint {
      				remote-endpoint = <&dphy0_in_ov5648>;
      				clock-lanes = <0>;
      				data-lanes = <1 2>;
      			};
      		};
      	};
      
      	ov8858: ov8858@36 {
      		compatible = "ovti,ov8858";
      		status = "disabled";
      		reg = <0x36>;
      		clocks = <&ext_cam2_24m_clk>;
      		clock-names = "xvclk";
      		dovdd-supply= <&cam2_dovdd>; /* 1.8v */
      		avdd-supply = <&cam2_avdd>;  /* 2.8v */
      		dvdd-supply = <&cam2_dvdd>;  /* 1.2v */
      		pwdn-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
      		reset-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
      		rotation = <180>;
      
      		rockchip,camera-module-index = <2>;
      		rockchip,camera-module-facing = "back";
      		rockchip,camera-module-name = "HS5885-BNSM1018-V01";
      		rockchip,camera-module-lens-name = "default";
      		lens-focus = <&dw9714>;
      
      		port {
      			/* MIPI CSI-2 bus endpoint */
      			ov8858_out: endpoint {
      				remote-endpoint = <&dphy0_in_ov8858>;
      				clock-lanes = <0>;
      				data-lanes = <1 2>;
      			};
      		};
      	};
      
      	ov13850: ov13850@10 {
      		compatible = "ovti,ov13850";
      		status = "disabled";
      		reg = <0x10>;
      		clocks = <&ext_cam2_24m_clk>;
      		clock-names = "xvclk";
      		dovdd-supply= <&cam2_dovdd>; /* 1.8v */
      		avdd-supply = <&cam2_avdd>;  /* 2.8v */
      		dvdd-supply = <&cam2_dvdd>;  /* 1.2v */
      		pwdn-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
      		reset-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
      		rotation = <180>;
      
      		rockchip,camera-module-index = <2>;
      		rockchip,camera-module-facing = "back";
      		rockchip,camera-module-name = "ZC-OV13850R2A-V1";
      		rockchip,camera-module-lens-name = "Largan-50064B31";
      		lens-focus = <&dw9714>;
      
      		port {
      			/* MIPI CSI-2 bus endpoint */
      			ov13850_out: endpoint {
      				remote-endpoint = <&dphy0_in_ov13850>;
      				clock-lanes = <0>;
      				data-lanes = <1 2>;
      			};
      		};
          };
      
      	imx415_2: imx415-2@1a {
      		compatible = "sony,imx415";
      		status = "okay";
      		reg = <0x1a>;
      		clocks = <&ext_cam2_37m_clk>;
      		clock-names = "xvclk";
      		avdd-supply = <&cam2_avdd>;
      		dovdd-supply = <&cam2_dovdd>;
      		dvdd-supply = <&cam2_dvdd>;
      		reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_LOW>;
      
      		rockchip,camera-module-index = <2>;
      		rockchip,camera-module-facing = "back";
      		rockchip,camera-module-name = "CMK-OT2022-PX1";
      		rockchip,camera-module-lens-name = "IR0147-50IRC-8M-F20";
      		port {
      			imx415_out2: endpoint {
      				remote-endpoint = <&dphy0_in_imx415>;
      				data-lanes = <1 2 3 4>;
      			};
      		};
      	};
      
      };
      
      &csi2_dphy0_hw {
      	status = "okay";
      };
      
      &csi2_dphy0 {
      	status = "okay";
      	
      	ports {
      		#address-cells = <1>;
      		#size-cells = <0>;
      
      		port@0 {
      			reg = <0>;
      			#address-cells = <1>;
      			#size-cells = <0>;
      
      			dphy0_in_ov5648: endpoint@1 {
      				reg = <1>;
      				remote-endpoint = <&ov5648_out>;
      				data-lanes = <1 2>;
      			};
      
      			dphy0_in_ov8858: endpoint@2 {
      				reg = <2>;
      				remote-endpoint = <&ov8858_out>;
      				data-lanes = <1 2>;
      			};
      
      			dphy0_in_ov13850: endpoint@3 {
      				reg = <3>;
      				remote-endpoint = <&ov13850_out>;
      				data-lanes = <1 2>;
      			};
      
      			dphy0_in_ov5647: endpoint@4 {
      				reg = <4>;
      				remote-endpoint = <&ov5647_out>;
      				data-lanes = <1 2>;
      			};
      
      			dphy0_in_imx415: endpoint@5 {
      				reg = <5>;
      				remote-endpoint = <&imx415_out2>;
      				data-lanes = <1 2 3 4>;
      			};
      		};
      
      		port@1 {
      			reg = <1>;
      			#address-cells = <1>;
      			#size-cells = <0>;
      
      			csidphy0_out: endpoint@0 {
      				reg = <0>;
      				remote-endpoint = <&mipi2_csi2_input>;
      			};
      		};
      	};
      };
      
      &mipi2_csi2 {
      	status = "okay";
      
      	ports {
      		#address-cells = <1>;
      		#size-cells = <0>;
      
      		port@0 {
      			reg = <0>;
      			#address-cells = <1>;
      			#size-cells = <0>;
      
      			mipi2_csi2_input: endpoint@1 {
      				reg = <1>;
      				remote-endpoint = <&csidphy0_out>;
      			};
      		};
      
      		port@1 {
      			reg = <1>;
      			#address-cells = <1>;
      			#size-cells = <0>;
      
      			mipi2_csi2_output: endpoint@0 {
      				reg = <0>;
      				remote-endpoint = <&cif_mipi2_in0>;
      			};
      		};
      	};
      };
      
      &rkcif {
      	status = "okay";
      };
      
      &rkcif_mipi_lvds2 {
      	status = "okay";
      
      	port {
      		cif_mipi2_in0: endpoint {
      			remote-endpoint = <&mipi2_csi2_output>;
      		};
      	};
      };
      
      &rkcif_mipi_lvds2_sditf {
      	status = "okay";
      
      	port {
      		mipi_lvds2_sditf: endpoint {
      			remote-endpoint = <&isp1_vir0>;
      		};
      	};
      };
      
      &rkcif_mmu {
      	status = "okay";
      };
      
      &rkisp1 {
      	status = "okay";
      };
      
      &isp1_mmu {
      	status = "okay";
      };
      
      &rkisp1_vir0 {
      	status = "okay";
      
      	port {
      		#address-cells = <1>;
      		#size-cells = <0>;
      
      		isp1_vir0: endpoint@0 {
      			reg = <0>;
      			remote-endpoint = <&mipi_lvds2_sditf>;
      		};
      	};
      };
      
      
      posted in Rockchip App camera
      J
      jihua
    • RE: rk3588开发板接RAW-MIPI-SC132M无法获取图片

      硬件接口如下:
      9b68a26c-f85d-4ecd-8a55-138b21c82f3f-企业微信截图_17325329997953.png
      b476dd42-f0d7-479a-8a54-36231b27abcd-企业微信截图_17325330417825.png

      a9bab366-2293-4a9f-9f64-60e76ee1aecc-企业微信截图_17325329097794.png
      设备树配置如下:

      // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
      /*
       * Copyright (c) 2020 Rockchip Electronics Co., Ltd.
       *
       */
      
      / {
      
      	vdd_cam2_5v: vdd-cam2-5v-regulator {
      		compatible = "regulator-fixed";
      		regulator-name = "vdd_cam_5v";
      		regulator-always-on;
      		regulator-boot-on;
      		regulator-min-microvolt = <3300000>;
      		regulator-max-microvolt = <3300000>;
      	};
      
      	cam2_dovdd: cam2-dovdd {
      		compatible = "regulator-fixed";
      		regulator-name = "cam_dovdd";
      		regulator-always-on;
      		regulator-boot-on;
      		regulator-min-microvolt = <1800000>;
      		regulator-max-microvolt = <1800000>;
      		vin-supply = <&vdd_cam2_5v>;
      	};
      
      	cam2_avdd: cam2-avdd {
      		compatible = "regulator-fixed";
      		regulator-name = "cam_avdd";
      		regulator-always-on;
      		regulator-boot-on;
      		regulator-min-microvolt = <2800000>;
      		regulator-max-microvolt = <2800000>;
      		vin-supply = <&vdd_cam2_5v>;
      	};
      
      	cam2_dvdd: cam2-dvdd {
      		compatible = "regulator-fixed";
      		regulator-name = "cam_dvdd";
      		regulator-always-on;
      		regulator-boot-on;
      		regulator-min-microvolt = <1200000>;
      		regulator-max-microvolt = <1200000>;
      		vin-supply = <&vdd_cam2_5v>;
      	};
      };
      
      /* Link path: sensor->csi2_dphy0->mipi2_csi2->rkcif_mipi_lvds2--->rkcif_mipi_lvds2_sditf->rkisp0_vir2 */
      &i2c6 {
      	status = "okay";
      	pinctrl-names = "default";
      	pinctrl-0 = <&i2c6m3_xfer>;
      
          mvcam: mvcam@3b{
                 compatible = "veye,mvcam";
                 reg = <0x3b>;
                 //clocks = <&cru CLK_MIPI_CAMARAOUT_M1>;
                 //clock-names = "xvclk";
                 //pinctrl-names = "default";
                 //pinctrl-0 = <&mipim1_camera1_clk>;
                 power-domains = <&power RK3588_PD_VI>;
      
                 //power-gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_LOW>;
                 reset-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
                 pwdn-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
      
                 //avdd-supply = <&vcc_mipidcphy0>;
                 //firefly,clkout-enabled-index = <0>;
                 rockchip,camera-module-index = <0>;
                 rockchip,camera-module-facing = "back";
                 rockchip,camera-module-name = "NC";
                 rockchip,camera-module-lens-name = "NC";
                 port {
                          mvcam_out0: endpoint {
                                 remote-endpoint = <&mipidphy0_in_ucam0>;
                                 data-lanes = <1 2>;
                         };
                 };
         };
      
      };
      
      &csi2_dphy0_hw {
      	status = "okay";
      };
      
      &csi2_dphy0 {
      	status = "okay";
      	
      	ports {
      		#address-cells = <1>;
      		#size-cells = <0>;
      		port@0 {
      			reg = <0>;
      			#address-cells = <1>;
      			#size-cells = <0>;
      
      			mipidphy0_in_ucam0: endpoint@1 {
      				reg = <1>;
      				remote-endpoint = <&mvcam_out0>;
      				data-lanes = <1 2>;
      			};
      		};
      		port@1 {
      			reg = <1>;
      			#address-cells = <1>;
      			#size-cells = <0>;
      
      			csidphy0_out: endpoint@0 {
      				reg = <0>;
      				remote-endpoint = <&mipi2_csi2_input>;
      			};
      		};
      	};
      };
      
      &mipi2_csi2 {
      	status = "okay";
      
      	ports {
      		#address-cells = <1>;
      		#size-cells = <0>;
      
      		port@0 {
      			reg = <0>;
      			#address-cells = <1>;
      			#size-cells = <0>;
      
      			mipi2_csi2_input: endpoint@1 {
      				reg = <1>;
      				remote-endpoint = <&csidphy0_out>;
      			};
      		};
      
      		port@1 {
      			reg = <1>;
      			#address-cells = <1>;
      			#size-cells = <0>;
      
      			mipi2_csi2_output: endpoint@0 {
      				reg = <0>;
      				remote-endpoint = <&cif_mipi2_in0>;
      			};
      		};
      	};
      };
      
      &rkcif {
      	status = "okay";
      };
      
      &rkcif_mipi_lvds2 {
      	status = "okay";
      
      	port {
      		cif_mipi2_in0: endpoint {
      			remote-endpoint = <&mipi2_csi2_output>;
      		};
      	};
      };
      
      &rkcif_mipi_lvds2_sditf {
      	status = "disabled";
      
      	port {
      		mipi_lvds2_sditf: endpoint {
      			remote-endpoint = <&isp1_vir0>;
      		};
      	};
      };
      
      &rkcif_mmu {
      	status = "okay";
      };
      
      &rkisp1 {
      	status = "disabled";
      };
      
      &isp1_mmu {
      	status = "disabled";
      };
      
      &rkisp1_vir0 {
      	status = "disabled";
      
      	port {
      		#address-cells = <1>;
      		#size-cells = <0>;
      
      		isp1_vir0: endpoint@0 {
      			reg = <0>;
      			remote-endpoint = <&mipi_lvds2_sditf>;
      		};
      	};
      };
      
      
      
      posted in Rockchip App camera
      J
      jihua
    • rk3588开发板接RAW-MIPI-SC132M无法获取图片

      模块上电后,查看触发模式是流模式,配置imgacq为1后,读取图片阻塞不动一直读取不到图片,用示波器测量lane clk pin无信号。
      b323d086-83cb-4b57-b0ac-7484505787fc-企业微信截图_17325232881890.png
      e3bb2ae9-c54a-4cfe-9c5f-b932cd085eaa-企业微信截图_17325233165877.png

      posted in Rockchip App camera
      J
      jihua