添加自己双目摄像头,能识别到sensor_id,但是不能出图。
使用 camera0->csi_dphy1->isp_vir0 / camera1->csi_dphy2->isp_vir1 可单独出图。
如果使用sensor2->csi_dphy2->mipi_csi2->vicap->isp_vir1,需要额外配置其他东西吗
现在的dtsi 配置 如下:
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
- Copyright (c) 2020 Rockchip Electronics Co., Ltd.
*/
/* 2M dual camera gc2053(IR)/gc2093(RGB) */
/*
- csi2_dphy0: used for csi2 dphy full mode,
is mutually exclusive with
csi2_dphy1 and csi2_dphy2 - csi2_dphy1: used for csi2 dphy split mode,
physical lanes use lane0 and lane1,
can be used with csi2_dphy2 parallel - csi2_dphy2: used for csi2 dphy split mode,
physical lanes use lane2 and lane3,
can be used with csi2_dphy1 parallel
*/
&csi2_dphy_hw {
status = “okay”;
};
&rkisp {
status = “okay”;
};
&rkisp_mmu {
status = “okay”;
};
&rkcif {
status = “okay”;
};
&rkcif_mmu {
status = “okay”;
};
&csi2_dphy0 {
status = “disabled”;
};
&csi2_dphy1 {
status = “okay”;
/*
* dphy1 only used for split mode,
* can be used concurrently with dphy2
* full mode and split mode are mutually exclusive
*/
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
dphy1_in: endpoint@1 {
reg = <1>;
remote-endpoint = <&ov02k10_out>;
data-lanes = <1 2>;
};
};
port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
dphy1_out: endpoint@1 {
reg = <1>;
remote-endpoint = <&isp1_in>;
data-lanes = <1 2>;
};
};
};
};
&csi2_dphy2 {
status = “okay”;
/*
* dphy2 only used for split mode,
* can be used concurrently with dphy1
* full mode and split mode are mutually exclusive
*/
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
dphy2_in: endpoint@1 {
reg = <1>;
remote-endpoint = <&ov9281_out>;
data-lanes = <1 2>;
};
};
port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
dphy2_out: endpoint@1 {
reg = <1>;
remote-endpoint = <&mipi_csi2_input>;
data-lanes = <1 2>;
};
};
};
};
&rkisp_vir0 {
status = “okay”;
ports {
port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
isp1_in: endpoint@1 {
reg = <1>;
remote-endpoint = <&dphy1_out>;
};
};
};
};
&rkisp_vir1 {
status = “okay”;
ports {
port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
isp2_in: endpoint@0 {
reg = <0>;
remote-endpoint = <&mipi_lvds_sditf>;
};
};
};
};
&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 = <&dphy2_out>;
data-lanes = <1 2>;
};
};
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>;
};
};
};
};
&rkcif_mipi_lvds {
status = “okay”;
port {
cif_mipi_in: endpoint {
remote-endpoint = <&mipi_csi2_output>;
data-lanes = <1 2>;
};
};
};
&rkcif_mipi_lvds_sditf {
status = “okay”;
port {
mipi_lvds_sditf: endpoint {
remote-endpoint = <&isp2_in>;
data-lanes = <1 2>;
};
};
};
&i2c4 {
status = “okay”;
ov02k10: ov02k10@36{ //RGB
status = "okay";
compatible = "ovti,ov02k10";
reg = <0x36>;
avdd-supply = <&vcc_camera>;
power-domains = <&power RK3568_PD_VI>;
clocks = <&cru CLK_CIF_OUT>;
clock-names = "xvclk";
pinctrl-names = "rockchip,camera_default";
pinctrl-0 = <&cif_clk>;
flash-leds = <&flash_led>;
reset-gpios = <&pca9555 PCA_IO0_0 GPIO_ACTIVE_HIGH>;
pwdn-gpios = <&pca9555 PCA_IO0_1 GPIO_ACTIVE_HIGH>;
firefly,clkout-enabled-index = <0>;
rockchip,camera-module-index = <0>;
rockchip,camera-module-facing = "back";
rockchip,camera-module-name = "default";
rockchip,camera-module-lens-name = "default";
port {
ov02k10_out: endpoint {
remote-endpoint = <&dphy1_in>;
data-lanes = <1 2>;
};
};
};
ov9281: ov9281@60 { //IR
status = "okay";
compatible = "ovti,ov9281";
reg = <0x60>;
avdd-supply = <&vcc_camera>;
clocks = <&pmucru CLK_WIFI>;
clock-names = "xvclk";
power-domains = <&power RK3568_PD_VI>;
pinctrl-names = "rockchip,camera_default";
pinctrl-0 = <&refclk_pins>;
reset-gpios = <&pca9555 PCA_IO0_3 GPIO_ACTIVE_HIGH>;
//pwdn-gpios = <&pca9555 PCA_IO0_4 GPIO_ACTIVE_LOW>;
firefly,clkout-enabled-index = <1>;
rockchip,camera-module-index = <1>;
rockchip,camera-module-facing = "front";
rockchip,camera-module-name = "default";
rockchip,camera-module-lens-name = "default";
port {
ov9281_out: endpoint {
remote-endpoint = <&dphy2_in>;
data-lanes = <1 2>;
};
};
};
};