// SPDX-License-Identifier: GPL-2.0-or-later OR MIT /* * Copyright 2021 Toradex */ // CSI Camera Module 5MP OV5640 previously orderable at Toradex. /dts-v1/; /plugin/; #include / { compatible = "toradex,apalis-imx8x"; }; /* Apalis I2C3 (CAM) */ &i2c3 { #address-cells = <1>; #size-cells = <0>; status = "okay"; ov5640_mipi@3c { AVDD-supply = <®_module_3v3>; compatible = "ovti,ov5640"; clocks = <&xtal24m>; clock-names = "xclk"; csi_id = <0>; DOVDD-supply = <®_module_3v3>; DVDD-supply = <®_module_3v3>; mclk = <24000000>; mclk_source = <0>; mipi_csi; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio1>, <&pinctrl_gpio2>; powerdown-gpios = <&lsio_gpio3 22 GPIO_ACTIVE_HIGH>; /* Apalis GPIO2 */ reg = <0x3c>; reset-gpios = <&lsio_gpio3 21 GPIO_ACTIVE_LOW>; /* Apalis GPIO1 */ status = "okay"; port { ov5640_mipi_ep: endpoint { clock-lanes = <0>; data-lanes = <1 2>; remote-endpoint = <&mipi_csi0_ep>; }; }; }; }; &irqsteer_csi0 { status = "okay"; }; &isi_0 { /** * interface = * Input: 0-DC0, 1-DC1, 2-MIPI CSI0, 3-MIPI CSI1, 4-HDMI, 5-MEM, INPUT: 6-PARALLEL CSI * MIPI_VCx: 0-VC0, 1-VC1, 2-VC2, 3-VC3, MIPI CSI only * Output: 0-DC0, 1-DC1, 2-MEM */ interface = <2 0 2>; status = "okay"; cap_device { status = "okay"; }; m2m_device { status = "okay"; }; }; &mipi_csi_0 { #address-cells = <1>; #size-cells = <0>; /delete-property/virtual-channel; status = "okay"; /* Camera 0 MIPI CSI-2 (CSIS0) */ port@0 { reg = <0>; mipi_csi0_ep: endpoint { bus-type = <4>; data-lanes = <1 2>; remote-endpoint = <&ov5640_mipi_ep>; }; }; };