From 80bf7ea2932de8c7362ada992bde10b2abd76ef6 Mon Sep 17 00:00:00 2001 From: Louis <1270384833@qq.com> Date: Mon, 29 May 2023 16:33:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Di2c5=20ov8858=20pwdn=20?= =?UTF-8?q?=E5=92=8C=20reset=20io,=20=E5=B9=B6=E6=94=AF=E6=8C=81=E5=8F=8C?= =?UTF-8?q?=E7=9B=AE=E6=91=84=E5=83=8F=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dts/rockchip/rk3568-lubancat-2io-cam.dtsi | 63 +++++++++++++++++-- 1 file changed, 57 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-lubancat-2io-cam.dtsi b/arch/arm64/boot/dts/rockchip/rk3568-lubancat-2io-cam.dtsi index 3e1008e13a9b..af05e05bc801 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-lubancat-2io-cam.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3568-lubancat-2io-cam.dtsi @@ -251,8 +251,8 @@ dovdd-supply= <&cam1_dovdd>; /* 1.8v */ avdd-supply = <&cam1_avdd>; /* 2.8v */ dvdd-supply = <&cam1_dvdd>; /* 1.2v */ - pwdn-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; - reset-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>; + pwdn-gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; rotation = <180>; status = "okay"; @@ -351,12 +351,63 @@ dphy2_out: endpoint@1 { reg = <1>; - remote-endpoint = <&isp1_in>; + remote-endpoint = <&mipi_csi2_input>; }; }; }; }; +&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 = <&isp1_in>; + data-lanes = <1 2>; + }; + }; +}; &rkisp { status = "okay"; @@ -392,8 +443,8 @@ #size-cells = <0>; isp1_in: endpoint@0 { - reg = <0>; - remote-endpoint = <&dphy2_out>; + reg = <0>; + remote-endpoint = <&mipi_lvds_sditf>; }; }; }; @@ -417,4 +468,4 @@ }; }; -}; \ No newline at end of file +};