xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/media/i2c/ov5647.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*4882a593Smuzhiyun%YAML 1.2
3*4882a593Smuzhiyun---
4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/media/i2c/ov5647.yaml#
5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
6*4882a593Smuzhiyun
7*4882a593Smuzhiyuntitle: Omnivision OV5647 raw image sensor
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunmaintainers:
10*4882a593Smuzhiyun  - Dave Stevenson <dave.stevenson@raspberrypi.com>
11*4882a593Smuzhiyun  - Jacopo Mondi <jacopo@jmondi.org>
12*4882a593Smuzhiyun
13*4882a593Smuzhiyundescription: |-
14*4882a593Smuzhiyun  The OV5647 is a raw image sensor with MIPI CSI-2 and CCP2 image data
15*4882a593Smuzhiyun  interfaces and CCI (I2C compatible) control bus.
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunproperties:
18*4882a593Smuzhiyun  compatible:
19*4882a593Smuzhiyun    const: ovti,ov5647
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun  reg:
22*4882a593Smuzhiyun    description: I2C device address.
23*4882a593Smuzhiyun    maxItems: 1
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun  clocks:
26*4882a593Smuzhiyun    description: Reference to the xclk clock.
27*4882a593Smuzhiyun    maxItems: 1
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun  pwdn-gpios:
30*4882a593Smuzhiyun    description: Reference to the GPIO connected to the pwdn pin. Active high.
31*4882a593Smuzhiyun    maxItems: 1
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun  port:
34*4882a593Smuzhiyun    type: object
35*4882a593Smuzhiyun    description: |-
36*4882a593Smuzhiyun      Should contain one endpoint sub-node used to model connection to the
37*4882a593Smuzhiyun      video receiver according to the specification defined in
38*4882a593Smuzhiyun      Documentation/devicetree/bindings/media/video-interfaces.txt.
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun    properties:
41*4882a593Smuzhiyun      endpoint:
42*4882a593Smuzhiyun        type: object
43*4882a593Smuzhiyun
44*4882a593Smuzhiyun        properties:
45*4882a593Smuzhiyun          remote-endpoint:
46*4882a593Smuzhiyun            description: |-
47*4882a593Smuzhiyun              phandle to the video receiver input port.
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun          clock-noncontinuous:
50*4882a593Smuzhiyun            type: boolean
51*4882a593Smuzhiyun            description: |-
52*4882a593Smuzhiyun              Set to true to allow MIPI CSI-2 non-continuous clock operations.
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun        additionalProperties: false
55*4882a593Smuzhiyun
56*4882a593Smuzhiyun    additionalProperties: false
57*4882a593Smuzhiyun
58*4882a593Smuzhiyunrequired:
59*4882a593Smuzhiyun  - compatible
60*4882a593Smuzhiyun  - reg
61*4882a593Smuzhiyun  - clocks
62*4882a593Smuzhiyun  - port
63*4882a593Smuzhiyun
64*4882a593SmuzhiyunadditionalProperties: false
65*4882a593Smuzhiyun
66*4882a593Smuzhiyunexamples:
67*4882a593Smuzhiyun  - |
68*4882a593Smuzhiyun    #include <dt-bindings/gpio/gpio.h>
69*4882a593Smuzhiyun
70*4882a593Smuzhiyun    i2c {
71*4882a593Smuzhiyun        #address-cells = <1>;
72*4882a593Smuzhiyun        #size-cells = <0>;
73*4882a593Smuzhiyun
74*4882a593Smuzhiyun        ov5647: camera@36 {
75*4882a593Smuzhiyun            compatible = "ovti,ov5647";
76*4882a593Smuzhiyun            reg = <0x36>;
77*4882a593Smuzhiyun            clocks = <&camera_clk>;
78*4882a593Smuzhiyun            pwdn-gpios = <&pioE 29 GPIO_ACTIVE_HIGH>;
79*4882a593Smuzhiyun
80*4882a593Smuzhiyun            port {
81*4882a593Smuzhiyun                camera_out: endpoint {
82*4882a593Smuzhiyun                    remote-endpoint = <&csi1_ep1>;
83*4882a593Smuzhiyun                };
84*4882a593Smuzhiyun            };
85*4882a593Smuzhiyun        };
86*4882a593Smuzhiyun    };
87*4882a593Smuzhiyun
88*4882a593Smuzhiyun...
89