1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/media/i2c/ovti,ov5640.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: OmniVision OV5640 Image Sensor Device Tree Bindings
10 - Steve Longerbeam <slongerbeam@gmail.com>
13 - $ref: /schemas/media/video-interface-devices.yaml#
23 description: XCLK Input Clock
29 description: Analog voltage supply, 2.8 volts
32 description: Digital core voltage supply, 1.5 volts
35 description: Digital I/O voltage supply, 1.8 volts
40 Reference to the GPIO connected to the powerdown pin, if any.
45 Reference to the GPIO connected to the reset pin, if any.
53 description: Digital Output Port
54 $ref: /schemas/graph.yaml#/$defs/port-base
55 additionalProperties: false
59 $ref: /schemas/media/video-interfaces.yaml#
60 unevaluatedProperties: false
88 additionalProperties: false
92 #include <dt-bindings/clock/imx6qdl-clock.h>
93 #include <dt-bindings/gpio/gpio.h>
100 compatible = "ovti,ov5640";
101 pinctrl-names = "default";
102 pinctrl-0 = <&pinctrl_ov5640>;
104 clocks = <&clks IMX6QDL_CLK_CKO>;
105 clock-names = "xclk";
106 DOVDD-supply = <&vgen4_reg>; /* 1.8v */
107 AVDD-supply = <&vgen3_reg>; /* 2.8v */
108 DVDD-supply = <&vgen2_reg>; /* 1.5v */
109 powerdown-gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>;
110 reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
114 /* MIPI CSI-2 bus endpoint */
115 ov5640_to_mipi_csi2: endpoint {
116 remote-endpoint = <&mipi_csi2_from_ov5640>;
126 #address-cells = <1>;
130 compatible = "ovti,ov5640";
131 pinctrl-names = "default";
132 pinctrl-0 = <&pinctrl_ov5640>;
134 clocks = <&clk_ext_camera>;
135 clock-names = "xclk";
136 DOVDD-supply = <&vgen4_reg>; /* 1.8v */
137 AVDD-supply = <&vgen3_reg>; /* 2.8v */
138 DVDD-supply = <&vgen2_reg>; /* 1.5v */
141 /* Parallel bus endpoint */
142 ov5640_to_parallel: endpoint {
143 remote-endpoint = <¶llel_from_ov5640>;
145 data-shift = <2>; /* lines 9:2 are used */