MLK-17223-1: dts: Add eight cameras dts for imx8qm mek board
authorSandor Yu <Sandor.yu@nxp.com>
Fri, 15 Dec 2017 09:56:36 +0000 (17:56 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:51:44 +0000 (14:51 -0500)
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>
arch/arm64/boot/dts/freescale/Makefile
arch/arm64/boot/dts/freescale/fsl-imx8qm-mek-8cam.dts [new file with mode: 0644]
arch/arm64/boot/dts/freescale/fsl-imx8qm-mek.dts

index 58cb1aa..1694b6d 100644 (file)
@@ -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 (file)
index 0000000..3ae1956
--- /dev/null
@@ -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";
+};
index c114e38..a8e2a7d 100644 (file)
        };
 };
 
+&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>;
        };
 };
 
+&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";
 };