summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stickel <Michael.Stickel@baslerweb.com>2020-02-05 21:05:28 +0100
committerOliver Brown <oliver.brown@nxp.com>2020-04-23 13:49:35 -0500
commit972cc03234a99d42cf28ecd1dc89b281096d6ff3 (patch)
treec1837efc45e87c6ca3e7ad776b9d70ebdffd4b2e
parent87bcafe6925d24bcd75b16aa71c4f2aecb13daf8 (diff)
MLK-23808: arch: arm64: imx8mp: Add device tree file for Basler camera
Added device tree support for the basler camera module on the imx8mp-evk Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
-rw-r--r--arch/arm64/boot/dts/freescale/Makefile2
-rw-r--r--arch/arm64/boot/dts/freescale/imx8mp-evk-basler.dts38
2 files changed, 39 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile
index 22794e0c405e..227a96543e40 100644
--- a/arch/arm64/boot/dts/freescale/Makefile
+++ b/arch/arm64/boot/dts/freescale/Makefile
@@ -61,7 +61,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk.dtb imx8mp-evk-root.dtb imx8mp-evk-inmate.d
imx8mp-evk-rm67191.dtb imx8mp-evk-hdmi.dtb imx8mp-evk-flexcan2.dtb \
imx8mp-evk-it6263-lvds-dual-channel.dtb imx8mp-evk-it6263-lvds-channel0.dtb \
imx8mp-evk-jdi-wuxga-lvds-panel.dtb imx8mp-ab2.dtb imx8mp-evk-sof-wm8960.dtb \
- imx8mp-evk-dsp.dtb imx8mp-evk-ov2775.dtb
+ imx8mp-evk-dsp.dtb imx8mp-evk-ov2775.dtb imx8mp-evk-basler.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk.dtb imx8mq-evk-rpmsg.dtb imx8mq-evk-pcie1-m2.dtb imx8mq-evk-usd-wifi.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk-ak4497.dtb imx8mq-evk-audio-tdm.dtb imx8mq-evk-pdm.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk-root.dtb imx8mq-evk-inmate.dtb
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-basler.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk-basler.dts
new file mode 100644
index 000000000000..12697d243746
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-basler.dts
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (C) 2020 Basler AG
+ * 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-ov2775.dts"
+
+&ov2775_0 {
+ status = "disabled";
+};
+
+&i2c2 {
+ basler_camera@36 {
+ compatible = "basler,basler-camera", "basler-camera";
+ reg = <0x36>;
+ csi_id = <0x00>;
+ status = "okay";
+
+ port {
+ endpoint {
+ data-lanes = <1 2 3 4>;
+ clock-lanes = <0>;
+ link-frequencies = /bits/ 64 <248000000>;
+ };
+ };
+ };
+};