From 195e1f315402acdc9c8705d53a92a36755d999a4 Mon Sep 17 00:00:00 2001 From: "Guoniu.zhou" Date: Tue, 28 Jul 2020 10:54:46 +0800 Subject: MLK-24494-6: arm64: dts: imx8mp: add new dts for basler + ov5640 support Add dts for Basler + OV5640 for iMX865-EVK board. Basler camera connect to CSI port 0 and OV5640 connect to CSI port 1, as bellow: Basler => CSI1 OV5640 => CSI2 Don't need to board rework. Signed-off-by: Guoniu.zhou Reviewed-by: Robby Cai --- .../dts/freescale/imx8mp-evk-basler-ov5640.dts | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-basler-ov5640.dts (limited to 'arch/arm64/boot/dts/freescale/imx8mp-evk-basler-ov5640.dts') diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-basler-ov5640.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk-basler-ov5640.dts new file mode 100644 index 000000000000..394975078018 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-basler-ov5640.dts @@ -0,0 +1,76 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2020 NXP + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "imx8mp-evk.dts" + +&i2c2 { + /delete-node/ov5640_mipi@3c; + + basler_camera@36 { + compatible = "basler,basler-camera-vvcam", "basler-camera-vvcam"; + reg = <0x36>; + csi_id = <0x00>; + status = "okay"; + + port { + basler_ep_0: endpoint { + data-lanes = <1 2 3 4>; + clock-lanes = <0>; + link-frequencies = /bits/ 64 <248000000>; + remote-endpoint = <&mipi_csi0_ep>; + }; + }; + }; +}; + +&mipi_csi_0 { + status = "okay"; + + port@0 { + mipi_csi0_ep: endpoint { + remote-endpoint = <&basler_ep_0>; + data-lanes = <4>; + csis-hs-settle = <16>; + }; + }; +}; + +&mipi_csi_1 { + status = "okay"; +}; + +&ov5640_1 { + powerdown-gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + csi_id = <1>; + + status = "okay"; +}; + +&isi_0 { + status = "disabled"; +}; + +&isi_1 { + status = "okay"; +}; + +&isp_0 { + status = "okay"; +}; + +&dewarp { + status = "okay"; +}; -- cgit v1.2.3