1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/*
* Copyright 2020-2021 Toradex
*/
// CSI Camera Module 5MP AR0521 from e-con Systems.
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
/ {
compatible = "toradex,apalis-imx8";
};
/* Apalis I2C3 (CAM) */
&i2c3 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
ar0521_mipi@42 {
compatible = "ar0521";
camera_mipi_lanes = <4>;
clocks = <&xtal24m>;
clock-names = "xclk";
csi_id = <0>;
mclk = <24000000>;
mclk_source = <0>;
mipi_csi;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio1>, <&pinctrl_gpio2>;
pwn-gpios = <&lsio_gpio0 9 GPIO_ACTIVE_HIGH>; /* Apalis GPIO2 */
reg = <0x42>;
rst-gpios = <&lsio_gpio0 8 GPIO_ACTIVE_LOW>; /* Apalis GPIO1 */
status = "okay";
port {
ar0521_ep: endpoint {
remote-endpoint = <&mipi_csi1_ep>;
};
};
};
};
&iomuxc {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_cam1_gpios>, <&pinctrl_dap1_gpios>,
<&pinctrl_esai0_gpios>, <&pinctrl_fec2_gpios>,
<&pinctrl_gpio3>, <&pinctrl_gpio4>,
<&pinctrl_gpio_usbh_oc_n>, <&pinctrl_lpuart1ctrl>,
<&pinctrl_lvds0_i2c0_gpio>, <&pinctrl_lvds1_i2c0_gpios>,
<&pinctrl_mipi_dsi_0_1_en>, <&pinctrl_mipi_dsi1_gpios>,
<&pinctrl_mlb_gpios>, <&pinctrl_qspi1a_gpios>,
<&pinctrl_sata1_act>, <&pinctrl_sim0_gpios>,
<&pinctrl_usdhc1_gpios>;
};
&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 3 4>;
remote-endpoint = <&ar0521_ep>;
};
};
};
|