diff options
author | Guoniu.zhou <guoniu.zhou@nxp.com> | 2020-07-28 10:54:46 +0800 |
---|---|---|
committer | Guoniu.zhou <guoniu.zhou@nxp.com> | 2020-08-14 17:03:12 +0800 |
commit | 195e1f315402acdc9c8705d53a92a36755d999a4 (patch) | |
tree | fbe614640525d2b7364d58517a1181bca4ff47db /arch/arm64/boot/dts/freescale/imx8mp-evk-basler-ov5640.dts | |
parent | 2ba13c94fe16ab0eaaeb8731b72a72cb770d9130 (diff) |
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 <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
Diffstat (limited to 'arch/arm64/boot/dts/freescale/imx8mp-evk-basler-ov5640.dts')
-rw-r--r-- | arch/arm64/boot/dts/freescale/imx8mp-evk-basler-ov5640.dts | 76 |
1 files changed, 76 insertions, 0 deletions
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"; +}; |