summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Gorochowik <tgorochowik@antmicro.com>2018-05-21 14:38:33 +0200
committerStefan Agner <stefan.agner@toradex.com>2018-05-23 15:05:14 +0200
commite42e656f28f91d10a2fb2035f9c7546d0814ad87 (patch)
tree210b4e27d3e46b73a99ddd499fedf37435ae5904
parent8746c5c44e5405f09cf5f4568c2e71f402b11933 (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.
-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 51ddbb407f78..587b4d9068fd 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>;
};
};
};