11b5071afSJacopo Mondi# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
21b5071afSJacopo Mondi%YAML 1.2
31b5071afSJacopo Mondi---
4*35cb6aa8SJacopo Mondi$id: http://devicetree.org/schemas/media/i2c/ovti,ov5647.yaml#
51b5071afSJacopo Mondi$schema: http://devicetree.org/meta-schemas/core.yaml#
61b5071afSJacopo Mondi
71b5071afSJacopo Mondititle: Omnivision OV5647 raw image sensor
81b5071afSJacopo Mondi
91b5071afSJacopo Mondimaintainers:
101b5071afSJacopo Mondi  - Dave Stevenson <dave.stevenson@raspberrypi.com>
111b5071afSJacopo Mondi  - Jacopo Mondi <jacopo@jmondi.org>
121b5071afSJacopo Mondi
131b5071afSJacopo Mondidescription: |-
141b5071afSJacopo Mondi  The OV5647 is a raw image sensor with MIPI CSI-2 and CCP2 image data
151b5071afSJacopo Mondi  interfaces and CCI (I2C compatible) control bus.
161b5071afSJacopo Mondi
171b5071afSJacopo Mondiproperties:
181b5071afSJacopo Mondi  compatible:
191b5071afSJacopo Mondi    const: ovti,ov5647
201b5071afSJacopo Mondi
211b5071afSJacopo Mondi  reg:
221b5071afSJacopo Mondi    description: I2C device address.
231b5071afSJacopo Mondi    maxItems: 1
241b5071afSJacopo Mondi
251b5071afSJacopo Mondi  clocks:
261b5071afSJacopo Mondi    description: Reference to the xclk clock.
271b5071afSJacopo Mondi    maxItems: 1
281b5071afSJacopo Mondi
291b5071afSJacopo Mondi  pwdn-gpios:
301b5071afSJacopo Mondi    description: Reference to the GPIO connected to the pwdn pin. Active high.
311b5071afSJacopo Mondi    maxItems: 1
321b5071afSJacopo Mondi
331b5071afSJacopo Mondi  port:
341b5071afSJacopo Mondi    type: object
351b5071afSJacopo Mondi    description: |-
361b5071afSJacopo Mondi      Should contain one endpoint sub-node used to model connection to the
371b5071afSJacopo Mondi      video receiver according to the specification defined in
381b5071afSJacopo Mondi      Documentation/devicetree/bindings/media/video-interfaces.txt.
391b5071afSJacopo Mondi
401b5071afSJacopo Mondi    properties:
411b5071afSJacopo Mondi      endpoint:
421b5071afSJacopo Mondi        type: object
431b5071afSJacopo Mondi
441b5071afSJacopo Mondi        properties:
451b5071afSJacopo Mondi          remote-endpoint:
461b5071afSJacopo Mondi            description: |-
471b5071afSJacopo Mondi              phandle to the video receiver input port.
481b5071afSJacopo Mondi
491b5071afSJacopo Mondi          clock-noncontinuous:
501b5071afSJacopo Mondi            type: boolean
511b5071afSJacopo Mondi            description: |-
521b5071afSJacopo Mondi              Set to true to allow MIPI CSI-2 non-continuous clock operations.
531b5071afSJacopo Mondi
541b5071afSJacopo Mondi        additionalProperties: false
551b5071afSJacopo Mondi
561b5071afSJacopo Mondi    additionalProperties: false
571b5071afSJacopo Mondi
581b5071afSJacopo Mondirequired:
591b5071afSJacopo Mondi  - compatible
601b5071afSJacopo Mondi  - reg
611b5071afSJacopo Mondi  - clocks
621b5071afSJacopo Mondi  - port
631b5071afSJacopo Mondi
641b5071afSJacopo MondiadditionalProperties: false
651b5071afSJacopo Mondi
661b5071afSJacopo Mondiexamples:
671b5071afSJacopo Mondi  - |
681b5071afSJacopo Mondi    #include <dt-bindings/gpio/gpio.h>
691b5071afSJacopo Mondi
701b5071afSJacopo Mondi    i2c {
711b5071afSJacopo Mondi        #address-cells = <1>;
721b5071afSJacopo Mondi        #size-cells = <0>;
731b5071afSJacopo Mondi
741b5071afSJacopo Mondi        ov5647: camera@36 {
751b5071afSJacopo Mondi            compatible = "ovti,ov5647";
761b5071afSJacopo Mondi            reg = <0x36>;
771b5071afSJacopo Mondi            clocks = <&camera_clk>;
781b5071afSJacopo Mondi            pwdn-gpios = <&pioE 29 GPIO_ACTIVE_HIGH>;
791b5071afSJacopo Mondi
801b5071afSJacopo Mondi            port {
811b5071afSJacopo Mondi                camera_out: endpoint {
821b5071afSJacopo Mondi                    remote-endpoint = <&csi1_ep1>;
831b5071afSJacopo Mondi                };
841b5071afSJacopo Mondi            };
851b5071afSJacopo Mondi        };
861b5071afSJacopo Mondi    };
871b5071afSJacopo Mondi
881b5071afSJacopo Mondi...
89