@veye_xumm 感谢回复,目前我主板的DPHY上使用贵司的摄像头已经成功了,我的主板只有一个dphy摄像头接口,还剩下两个DCPHY接口但是是24pin的,我想自己画转接板将接口转换一下,但不知道一个主板上能否同时使用两个VEYE的摄像头,是否会有冲突或者别的问题,希望得到您的答复
Q
Latest posts made by qianjunzhou
-
RE: VEYE IMX327S适配firefly主板问题
-
RE: VEYE IMX327S适配firefly主板问题
这是aio-3588sjd4.dts文件,其中include了两个官方摄像头的dtsi文件,我将aio-3588sjd4-cam-8ms1m.dtsi这个文件的内容替换成了贵司的rk3588-roc-pc-cam-veyecam2m.dtsi的内容
下面是3588sjd4-cam-8ms1m.dtsi这个文件的原内容/* * Copyright (c) 2021 Rockchip Electronics Co., Ltd. * */ / { cam_ircut0: cam_ircut { status = "disabled"; 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 { status = "disabled"; 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 = <&xc7160_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>; }; }; }; }; &csi2_dphy0_hw { status = "okay"; }; &i2c5 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&i2c5m3_xfer>; XC7160: XC7160b@1b{ compatible = "firefly,xc7160"; reg = <0x1b>; 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 = <&gpio1 RK_PA7 GPIO_ACTIVE_LOW>; reset-gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>; pwdn-gpios = <&gpio1 RK_PA6 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 { xc7160_out2: 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"; // memory-region = <&cif_reserved>; }; &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 = <&isp0_vir0>; }; }; }; &rkcif_mmu { status = "okay"; }; &rkisp0 { status = "disabled"; }; &isp0_mmu { status = "disabled"; }; &rkisp0_vir0 { status = "disabled"; port { #address-cells = <1>; #size-cells = <0>; isp0_vir0: endpoint@0 { reg = <0>; remote-endpoint = <&mipi_lvds2_sditf>; }; }; };
开机后,使用dmesg | grep veye会有如下报错
-
RE: VEYE IMX327S适配firefly主板问题
@veye_xumm 1.驱动目录下的Kconfig、Makefile已经更改,也生成了veyecam2m.o文件。firefly-linux.config中也添加了相应的驱动开关,然后用firefly的build脚本编译固件
2.我就是在原来的dts中include了veye的dtsi文件,并注释了原本的摄像头dtsi
3.没有驱动信息 -
VEYE IMX327S适配firefly主板问题
使用Firefly aio-3588sjd4主板,30pin mipi dphy接口,按照wiki添加了.c改了驱动目录下的kconfig、makefile,改了dtsi,但仍识别不到摄像头,用dmesg| grep veye没有查到驱动信息,请问如何解决排查