diff options
author | Sandor Yu <Sandor.yu@nxp.com> | 2017-12-15 17:56:36 +0800 |
---|---|---|
committer | Sandor Yu <Sandor.yu@nxp.com> | 2017-12-15 18:35:51 +0800 |
commit | aec02a26cf5bbc5ead13c5ba69d548a21acf71d5 (patch) | |
tree | 7feb1cc86b6a88ace7723fed8adcb2326362245a | |
parent | 679da391c069db2620835cad11dbe8ca62b75bda (diff) |
MLK-17223-1: dts: Add eight cameras dts for imx8qm mek board
Enable mipi csi 1 in the dts.
MAX support eight cameras for imx8qm mek board with the dtb.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
(cherry picked from commit cc8200ca13850d43c54f7df9f1a43b6fed0f8c09)
-rw-r--r-- | arch/arm64/boot/dts/freescale/Makefile | 1 | ||||
-rw-r--r-- | arch/arm64/boot/dts/freescale/fsl-imx8qm-mek-8cam.dts | 45 | ||||
-rw-r--r-- | arch/arm64/boot/dts/freescale/fsl-imx8qm-mek.dts | 40 |
3 files changed, 86 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 03691d9fa2a3..6583ad2e5e64 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_FSL_IMX8QM) += fsl-imx8qm-lpddr4-arm2.dtb \ fsl-imx8qm-lpddr4-arm2_ca53.dtb \ fsl-imx8qm-lpddr4-arm2_ca72.dtb \ fsl-imx8qm-mek.dtb \ + fsl-imx8qm-mek-8cam.dtb \ fsl-imx8qm-mek_ca53.dtb \ fsl-imx8qm-mek_ca72.dtb \ fsl-imx8qm-mek-hdmi.dtb \ diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8qm-mek-8cam.dts b/arch/arm64/boot/dts/freescale/fsl-imx8qm-mek-8cam.dts new file mode 100644 index 000000000000..3ae1956a3b28 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/fsl-imx8qm-mek-8cam.dts @@ -0,0 +1,45 @@ +/* + * Copyright 2017 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. + */ +/* + * MIPI CSI-2 eight cameras dts, + * One MIPI CSI-2 controller connected four cameras + * The first four cameras have enabled in mipi_csi_0. + * Enable the last four cameras in mipi_csi_1 here. + */ + +#include "fsl-imx8qm-mek.dts" + +&mipi_csi_1 { + status = "okay"; +}; + +&i2c0_mipi_csi1 { + status = "okay"; +}; + +&isi_4 { + status = "okay"; +}; + +&isi_5 { + status = "okay"; +}; + +&isi_6 { + status = "okay"; +}; + +&isi_7 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/fsl-imx8qm-mek.dts index c114e388a59d..a8e2a7df336e 100644 --- a/arch/arm64/boot/dts/freescale/fsl-imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/fsl-imx8qm-mek.dts @@ -1057,6 +1057,22 @@ }; }; +&mipi_csi_1 { + #address-cells = <1>; + #size-cells = <0>; + virtual-channel; + status = "disabled"; + + /* Camera 0 MIPI CSI-2 (CSIS1) */ + port@1 { + reg = <1>; + mipi_csi1_ep: endpoint { + remote-endpoint = <&max9286_1_ep>; + data-lanes = <1 2 3 4>; + }; + }; +}; + &mlb { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_mlb>; @@ -1087,6 +1103,30 @@ }; }; +&i2c0_mipi_csi1 { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + clock-frequency = <100000>; + status = "disabled"; + + max9286_mipi@6A { + compatible = "maxim,max9286_mipi"; + reg = <0x6A>; + clocks = <&clk IMX8QM_CLK_DUMMY>; + clock-names = "capture_mclk"; + mclk = <27000000>; + mclk_source = <0>; + virtual-channel; + port { + max9286_1_ep: endpoint { + remote-endpoint = <&mipi_csi1_ep>; + data-lanes = <1 2 3 4>; + }; + }; + }; +}; + &isi_0 { status = "okay"; }; |