1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/i2c/imx219.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Sony 1/4.0-Inch 8Mpixel CMOS Digital Image Sensor
8
9maintainers:
10  - Dave Stevenson <dave.stevenson@raspberrypi.com>
11
12description: |-
13  The Sony imx219 is a 1/4.0-inch CMOS active pixel digital image sensor
14  with an active array size of 3280H x 2464V. It is programmable through
15  I2C interface. The I2C address is fixed to 0x10 as per sensor data sheet.
16  Image data is sent through MIPI CSI-2, which is configured as either 2 or
17  4 data lanes.
18
19properties:
20  compatible:
21    const: sony,imx219
22
23  reg:
24    description: I2C device address
25    maxItems: 1
26
27  clocks:
28    maxItems: 1
29
30  VDIG-supply:
31    description:
32      Digital I/O voltage supply, 1.8 volts
33
34  VANA-supply:
35    description:
36      Analog voltage supply, 2.8 volts
37
38  VDDL-supply:
39    description:
40      Digital core voltage supply, 1.2 volts
41
42  reset-gpios:
43    description: |-
44      Reference to the GPIO connected to the xclr pin, if any.
45      Must be released (set high) after all supplies are applied.
46
47  # See ../video-interfaces.txt for more details
48  port:
49    type: object
50    properties:
51      endpoint:
52        type: object
53        properties:
54          data-lanes:
55            description: |-
56              The sensor supports either two-lane, or four-lane operation.
57              If this property is omitted four-lane operation is assumed.
58              For two-lane operation the property must be set to <1 2>.
59            items:
60              - const: 1
61              - const: 2
62
63          clock-noncontinuous:
64            type: boolean
65            description: |-
66              MIPI CSI-2 clock is non-continuous if this property is present,
67              otherwise it's continuous.
68
69          link-frequencies:
70            allOf:
71              - $ref: /schemas/types.yaml#/definitions/uint64-array
72            description:
73              Allowed data bus frequencies.
74
75        required:
76          - link-frequencies
77
78required:
79  - compatible
80  - reg
81  - clocks
82  - VANA-supply
83  - VDIG-supply
84  - VDDL-supply
85  - port
86
87additionalProperties: false
88
89examples:
90  - |
91    i2c0 {
92        #address-cells = <1>;
93        #size-cells = <0>;
94
95        imx219: sensor@10 {
96            compatible = "sony,imx219";
97            reg = <0x10>;
98            clocks = <&imx219_clk>;
99            VANA-supply = <&imx219_vana>;   /* 2.8v */
100            VDIG-supply = <&imx219_vdig>;   /* 1.8v */
101            VDDL-supply = <&imx219_vddl>;   /* 1.2v */
102
103            port {
104                imx219_0: endpoint {
105                    remote-endpoint = <&csi1_ep>;
106                    data-lanes = <1 2>;
107                    clock-noncontinuous;
108                    link-frequencies = /bits/ 64 <456000000>;
109                };
110            };
111        };
112    };
113
114...
115