Skip to content
Snippets Groups Projects
Commit 0967af7c authored by Gianfranco Mariotti's avatar Gianfranco Mariotti
Browse files

[D18] add support to CSI camera

* csi0 and csi1 seco_config overlays
parent c7a2f5bc
No related merge requests found
DTC_FLAGS ?= -@ -H epapr
dtbo-$(CONFIG_ARCH_MXC) += \
seco-imx8qm-c26-lvds-dual.dtbo\
seco-imx8qm-c26-hdmi.dtbo\
seco-imx8qm-c26-lvds-1024x768.dtbo\
seco-imx8qm-c26-hdmi-lvds.dtbo\
seco-imx8mq-c20-hdmi.dtbo\
seco-imx8mq-c20-edp.dtbo\
seco-imx8mq-c20-pcie.dtbo\
seco-imx8mq-c20-lvds-dual.dtbo\
dtbo-$(CONFIG_ARCH_MXC) += \
seco-imx8mq-c12-hdmi.dtbo\
seco-imx8mq-c12-lvds-dual.dtbo\
seco-imx8mq-c12-dcss-sn65dsi84.dtbo\
seco-imx8mq-c12-lcdif-sn65dsi84.dtbo\
seco-imx8mq-c12-can-rtc.dtbo\
seco-imx8mq-c12-wilink.dtbo\
seco-imx8mq-c20-hdmi.dtbo\
seco-imx8mq-c20-edp.dtbo\
seco-imx8mq-c20-pcie.dtbo\
seco-imx8mq-c20-lvds-dual.dtbo\
seco-imx8qm-c26-lvds-dual.dtbo\
seco-imx8qm-c26-hdmi.dtbo\
seco-imx8qm-c26-lvds-1024x768.dtbo\
seco-imx8qm-c26-hdmi-lvds.dtbo\
seco-imx8qm-c43-hdmi.dtbo\
seco-imx8qm-c43-sn65dsi86.dtbo\
seco-imx8qm-c43-lvds-single.dtbo\
......@@ -24,9 +24,10 @@ dtbo-$(CONFIG_ARCH_MXC) += \
seco-imx8qm-c43-hdmi-lvds.dtbo\
seco-imx8qm-c43-hdmi-sn65dsi86-lvds.dtbo\
seco-imx8qm-c43-hdmiin.dtbo\
seco-imx8qm-c43-lvds-sn65dsi86.dtbo
#
seco-imx8qm-c43-lvds-sn65dsi86.dtbo\
seco-imx8mp-d18-camera-csi0.dtbo \
seco-imx8mp-d18-camera-csi1.dtbo
# seco-imx8qm-c26-dp.dtbo\
# seco-imx8qm-c26-lvds-single.dtbo\
# seco-imx8qm-c26-hdmi-lvds.dtbo\
......
/*
* Copyright 2021 SECO
*
* 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.
*/
/dts-v1/;
/plugin/;
/ {
compatible = "fsl,imx8mp-evk", "seco,imx8mp-d18", "fsl,imx8mp";
/* __________________________________________________________________________
* | |
* | CAMERA CSI0 |
* |__________________________________________________________________________|
*/
fragment@0 {
target = <&ov5640_0>;
__overlay__ {
status = "okay";
};
};
fragment@1 {
target = <&mipi_csi_0>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&cameradev>;
__overlay__ {
status = "okay";
};
};
fragment@3 {
target = <&isi_0>;
__overlay__ {
status = "okay";
cap_device {
status = "okay";
};
m2m_device {
status = "okay";
};
};
};
};
/*
* Copyright 2021 SECO
*
* 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.
*/
/dts-v1/;
/plugin/;
/ {
compatible = "fsl,imx8mp-evk", "seco,imx8mp-d18", "fsl,imx8mp";
/* __________________________________________________________________________
* | |
* | CAMERA CSI1 |
* |__________________________________________________________________________|
*/
fragment@0 {
target = <&ov5640_1>;
__overlay__ {
status = "okay";
};
};
fragment@1 {
target = <&mipi_csi_1>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&cameradev>;
__overlay__ {
status = "okay";
};
};
fragment@3 {
target = <&isi_1>;
__overlay__ {
status = "okay";
cap_device {
status = "okay";
};
};
};
};
......@@ -399,6 +399,8 @@
assigned-clock-parents = <&clk IMX8MP_CLK_24M>;
assigned-clock-rates = <24000000>;
csi_id = <0>;
powerdown-gpios = <&pca6416 0 GPIO_ACTIVE_HIGH>;
reset-gpios = <&pca6416 2 GPIO_ACTIVE_LOW>;
mclk = <24000000>;
mclk_source = <0>;
mipi_csi;
......@@ -460,6 +462,8 @@
assigned-clock-parents = <&clk IMX8MP_CLK_24M>;
assigned-clock-rates = <24000000>;
csi_id = <0>;
powerdown-gpios = <&pca6416 1 GPIO_ACTIVE_HIGH>;
reset-gpios = <&pca6416 3 GPIO_ACTIVE_LOW>;
mclk = <24000000>;
mclk_source = <0>;
mipi_csi;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment