summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTomasz Gorochowik <tgorochowik@antmicro.com>2018-05-21 14:38:33 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2018-10-11 19:40:23 +0200
commit9526fe529a57ace54108ee8e22cf378fdeeb3daa (patch)
tree890014d134ff48ec79e93f4a903e719e6bac39d2 /arch
parent0b621d9cd8df6967fbfa659d9cf34f336f5afc98 (diff)
dtb: apalis-imx8qm: Add proper ov5640 instantiation
This commit makes the camera instantiation use the proper driver and fixes all the settings so it works with Apalis. (cherry picked from commit e42e656f28f91d10a2fb2035f9c7546d0814ad87) (cherry picked from commit 2940c6461138f8de95ea77bc2db86619914d8f53)
Diffstat (limited to 'arch')
-rw-r--r--arch/arm64/boot/dts/freescale/fsl-imx8qm-apalis.dts22
1 files changed, 8 insertions, 14 deletions
diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8qm-apalis.dts b/arch/arm64/boot/dts/freescale/fsl-imx8qm-apalis.dts
index b667cfd8e7f0..dbe04811b295 100644
--- a/arch/arm64/boot/dts/freescale/fsl-imx8qm-apalis.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-imx8qm-apalis.dts
@@ -646,28 +646,22 @@
status = "okay";
ov5640_mipi@3c {
- /*compatible = "ovti,ov564x_mipi";*/
compatible = "ovti,ov5640_mipi";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_cam>;
reg = <0x3c>;
- /*
- DOVDD-supply = <&reg_1p8v>;
- AVDD-supply = <&reg_2p5v>;
- DVDD-supply = <&reg_1p8v>;
- */
pwn-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
rst-gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
- ipu_id = <0>;
- csi_id = <1>;
+
mclk = <24000000>;
mclk_source = <0>;
- status = "disabled";
+ virtual-channel;
+ status = "okay";
port {
ov5640_ep: endpoint {
remote-endpoint = <&mipi_csi1_ep>;
- data-lanes = <1 2 3 4>;
+ data-lanes = <1 2>;
};
};
};
@@ -708,14 +702,14 @@
#address-cells = <1>;
#size-cells = <0>;
virtual-channel;
- status = "disabled";
+ status = "okay";
/* Camera 0 MIPI CSI-2 (CSIS1) */
- port@1 {
- reg = <1>;
+ port@0 {
+ reg = <0>;
mipi_csi1_ep: endpoint {
remote-endpoint = <&ov5640_ep>;
- data-lanes = <1 2 3 4>;
+ data-lanes = <1 2>;
};
};
};