xref: /linux/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml (revision 0526b56cbc3c489642bd6a5fe4b718dea7ef0ee8)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/i2c/sony,imx415.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Sony IMX415 CMOS Image Sensor
8
9maintainers:
10  - Michael Riesch <michael.riesch@wolfvision.net>
11
12description: |-
13  The Sony IMX415 is a diagonal 6.4 mm (Type 1/2.8) CMOS active pixel type
14  solid-state image sensor with a square pixel array and 8.46 M effective
15  pixels. This chip operates with analog 2.9 V, digital 1.1 V, and interface
16  1.8 V triple power supply, and has low power consumption.
17  The IMX415 is programmable through I2C interface. The sensor output is
18  available via CSI-2 serial data output (two or four lanes).
19
20allOf:
21  - $ref: ../video-interface-devices.yaml#
22
23properties:
24  compatible:
25    const: sony,imx415
26
27  reg:
28    maxItems: 1
29
30  clocks:
31    description: Input clock (24 MHz, 27 MHz, 37.125 MHz, 72 MHz or 74.25 MHz)
32    maxItems: 1
33
34  avdd-supply:
35    description: Analog power supply (2.9 V)
36
37  dvdd-supply:
38    description: Digital power supply (1.1 V)
39
40  ovdd-supply:
41    description: Interface power supply (1.8 V)
42
43  reset-gpios:
44    description: Sensor reset (XCLR) GPIO
45    maxItems: 1
46
47  flash-leds: true
48
49  lens-focus: true
50
51  orientation: true
52
53  rotation: true
54
55  port:
56    $ref: /schemas/graph.yaml#/$defs/port-base
57
58    properties:
59      endpoint:
60        $ref: /schemas/media/video-interfaces.yaml#
61        unevaluatedProperties: false
62
63        properties:
64          data-lanes:
65            oneOf:
66              - items:
67                  - const: 1
68                  - const: 2
69              - items:
70                  - const: 1
71                  - const: 2
72                  - const: 3
73                  - const: 4
74
75        required:
76          - data-lanes
77          - link-frequencies
78
79    required:
80      - endpoint
81
82required:
83  - compatible
84  - reg
85  - clocks
86  - avdd-supply
87  - dvdd-supply
88  - ovdd-supply
89  - port
90
91additionalProperties: false
92
93examples:
94  - |
95    #include <dt-bindings/gpio/gpio.h>
96
97    i2c {
98        #address-cells = <1>;
99        #size-cells = <0>;
100
101        imx415: camera-sensor@1a {
102            compatible = "sony,imx415";
103            reg = <0x1a>;
104            avdd-supply = <&vcc2v9_cam>;
105            clocks = <&clock_cam>;
106            dvdd-supply = <&vcc1v1_cam>;
107            lens-focus = <&vcm>;
108            orientation = <2>;
109            ovdd-supply = <&vcc1v8_cam>;
110            reset-gpios = <&gpio_expander 14 GPIO_ACTIVE_LOW>;
111            rotation = <180>;
112
113            port {
114                imx415_ep: endpoint {
115                    data-lanes = <1 2 3 4>;
116                    link-frequencies = /bits/ 64 <445500000>;
117                    remote-endpoint = <&mipi_in>;
118                };
119            };
120        };
121    };
122...
123