// SPDX-License-Identifier: GPL-2.0-or-later OR MIT /* * Copyright 2020-2021 Toradex */ // CSI Camera Module 5MP OV5640. // Connected on either an Ixora V1.1 or later or the Apalis iMX8 Mezzanine X8 /dts-v1/; /plugin/; #include / { compatible = "toradex,apalis-imx8", "toradex,apalis-imx8-v1.1"; }; &{/} { regulator_camera_csi_1: regulator-camera-csi-1 { compatible = "regulator-fixed"; /* Apalis GPIO4 - Camera Connector 24 */ gpio = <&lsio_gpio0 13 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-name = "V_CSI"; startup-delay-us = <5000>; }; }; /* Apalis I2C3 (CAM) */ &i2c3 { #address-cells = <1>; #size-cells = <0>; status = "okay"; ov5640_mipi@3c { compatible = "ovti,ov5640"; clocks = <&xtal24m>; clock-names = "xclk"; csi_id = <0>; mclk = <24000000>; mclk_source = <0>; mipi_csi; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio1>, <&pinctrl_gpio2>; /* Apalis GPIO2 - Camera Connector 22 */ powerdown-gpios = <&lsio_gpio0 9 GPIO_ACTIVE_HIGH>; reg = <0x3c>; /* Apalis GPIO1 - Camera Connector 11 */ reset-gpios = <&lsio_gpio0 8 GPIO_ACTIVE_LOW>; AVDD-supply = <®ulator_camera_csi_1>; DOVDD-supply = <®ulator_camera_csi_1>; DVDD-supply = <®ulator_camera_csi_1>; status = "okay"; port { ov5640_mipi_1_ep: endpoint { clock-lanes = <0>; data-lanes = <1 2>; remote-endpoint = <&mipi_csi1_ep>; }; }; }; }; &isi_4 { status = "okay"; cap_device { status = "okay"; }; }; &mipi_csi_1 { #address-cells = <1>; #size-cells = <0>; /delete-property/virtual-channel; status = "okay"; /* Camera 1 MIPI CSI-2 (CSIS0) */ port@1 { reg = <1>; mipi_csi1_ep: endpoint { bus-type = <4>; data-lanes = <1 2>; remote-endpoint = <&ov5640_mipi_1_ep>; }; }; };