|
发表于 2023-1-15 17:36:35
浏览:5238
|
回复:1
打印
只看该作者
[复制链接]
楼主
-
固件类型:
自行编译的固件
-
SDK包名称:
AIO-3588Q_Ubuntu_v1.0.2a_230115
-
SDK更新到哪个COMMIT:
0000-00-00 00:00:00
-
SDK修改内容:
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2021 Rockchip Electronics Co., Ltd.
*
*/
/ {
cam_ircut0: cam_ircut {
status = "okay";
compatible = "rockchip,ircut";
ircut-open-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
ircut-close-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
rockchip,camera-module-index = <0>;
rockchip,camera-module-facing = "back";
};
vcc_mipidphy0: vcc-mipidcphy0-regulator {
compatible = "regulator-fixed";
gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&mipidphy0_pwr>;
regulator-name = "vcc_mipidphy0";
enable-active-high;
};
};
&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 = <&imx415_out0>;
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>;
};
};
};
};
&csi2_dphy0_hw {
status = "okay";
};
&i2c3 {
status = "okay";
imx415: imx415@37 {
compatible = "sony,imx415";
reg = <0x37>;
clocks = <&cru CLK_MIPI_CAMARAOUT_M3>;
clock-names = "xvclk";
pinctrl-names = "default";
pinctrl-0 = <&mipim0_camera3_clk>;
power-domains = <&power RK3588_PD_VI>;
//reset-gpios = <&gpio1 RK_PB3 GPIO_ACTIVE_HIGH>;
pwdn-gpios = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>;
avdd-supply = <&vcc_mipidphy0>;
rockchip,camera-module-index = <0>;
rockchip,camera-module-facing = "back";
rockchip,camera-module-name = "CMK-OT2022-PX1";
rockchip,camera-module-lens-name = "IR0147-50IRC-8M-F20";
lens-focus = <&cam_ircut0>;
port {
imx415_out0: endpoint {
remote-endpoint = <&mipidphy0_in_ucam0>;
data-lanes = <1 2 3 4>;
};
};
};
};
&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>;
};
};
};
};
&pinctrl {
cam {
mipidphy0_pwr: mipidphy0-pwr {
rockchip,pins =
/* camera power en */
<1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
&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 = <&isp0_vir0>;
};
};
};
&rkcif_mmu {
status = "okay";
};
&rkisp0 {
status = "okay";
};
&isp0_mmu {
status = "okay";
};
&rkisp0_vir0 {
status = "okay";
port {
#address-cells = <1>;
#size-cells = <0>;
isp0_vir0: endpoint@0 {
reg = <0>;
remote-endpoint = <&mipi_lvds2_sditf>;
};
};
};
-
Log日志:
out.zip
问题描述及复现步骤:
接入IMX415摄像头模组,使用两个不同的415模组,出现了不同的问题:
1,第一个模组可以接收到MIPI数据,但是MIPI数据不正确,out.zip为收到的YUV图像,执行命令为v4l2-ctl --verbose -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat='NV12' --stream-mmap=4 --set-selection=target=crop,flags=0,top=0,left=0,width=1920,height=1080 --stream-to=/home/firefly/out.yuv
2,使用另一个imx415模组,执行相同的命令出现以下日志:
[ 110.730544] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730591] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730610] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730621] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730636] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730653] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730666] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730681] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730696] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730711] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730730] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730743] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730755] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730770] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730784] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730800] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730814] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730829] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730844] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730859] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730873] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730888] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730903] mipi2-csi2 ERR1:0x10000000 (ecc2)
[ 110.730918] mipi2-csi2 ERR1:0x10000000 (ecc2)
|
-
-
out.zip
9.26 MB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1
|