1*38d07a96SBenjamin Mugnier# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*38d07a96SBenjamin Mugnier# Copyright (c) 2022 STMicroelectronics SA.
3*38d07a96SBenjamin Mugnier%YAML 1.2
4*38d07a96SBenjamin Mugnier---
5*38d07a96SBenjamin Mugnier$id: http://devicetree.org/schemas/media/i2c/st,st-vgxy61.yaml#
6*38d07a96SBenjamin Mugnier$schema: http://devicetree.org/meta-schemas/core.yaml#
7*38d07a96SBenjamin Mugnier
8*38d07a96SBenjamin Mugniertitle: STMicroelectronics VGxy61 HDR Global Shutter Sensor Family Device Tree Bindings
9*38d07a96SBenjamin Mugnier
10*38d07a96SBenjamin Mugniermaintainers:
11*38d07a96SBenjamin Mugnier  - Benjamin Mugnier <benjamin.mugnier@foss.st.com>
12*38d07a96SBenjamin Mugnier  - Sylvain Petinot <sylvain.petinot@foss.st.com>
13*38d07a96SBenjamin Mugnier
14*38d07a96SBenjamin Mugnierdescription: |-
15*38d07a96SBenjamin Mugnier  STMicroelectronics VGxy61 family has a CSI-2 output port. CSI-2 output is a
16*38d07a96SBenjamin Mugnier  quad lanes 800Mbps per lane.
17*38d07a96SBenjamin Mugnier  Supported formats are RAW8, RAW10, RAW12, RAW14 and RAW16.
18*38d07a96SBenjamin Mugnier  Following part number are supported
19*38d07a96SBenjamin Mugnier  - VG5661 and VG6661 are 1.6 Mpx (1464 x 1104) monochrome and color sensors.
20*38d07a96SBenjamin Mugnier  Maximum frame rate is 75 fps.
21*38d07a96SBenjamin Mugnier  - VG5761 and VG6761 are 2.3 Mpx (1944 x 1204) monochrome and color sensors.
22*38d07a96SBenjamin Mugnier  Maximum frame rate is 60 fps.
23*38d07a96SBenjamin Mugnier
24*38d07a96SBenjamin Mugnierproperties:
25*38d07a96SBenjamin Mugnier  compatible:
26*38d07a96SBenjamin Mugnier    const: st,st-vgxy61
27*38d07a96SBenjamin Mugnier
28*38d07a96SBenjamin Mugnier  reg:
29*38d07a96SBenjamin Mugnier    maxItems: 1
30*38d07a96SBenjamin Mugnier
31*38d07a96SBenjamin Mugnier  clocks:
32*38d07a96SBenjamin Mugnier    maxItems: 1
33*38d07a96SBenjamin Mugnier
34*38d07a96SBenjamin Mugnier  VCORE-supply:
35*38d07a96SBenjamin Mugnier    description:
36*38d07a96SBenjamin Mugnier      Sensor digital core supply. Must be 1.2 volts.
37*38d07a96SBenjamin Mugnier
38*38d07a96SBenjamin Mugnier  VDDIO-supply:
39*38d07a96SBenjamin Mugnier    description:
40*38d07a96SBenjamin Mugnier      Sensor digital IO supply. Must be 1.8 volts.
41*38d07a96SBenjamin Mugnier
42*38d07a96SBenjamin Mugnier  VANA-supply:
43*38d07a96SBenjamin Mugnier    description:
44*38d07a96SBenjamin Mugnier      Sensor analog supply. Must be 2.8 volts.
45*38d07a96SBenjamin Mugnier
46*38d07a96SBenjamin Mugnier  reset-gpios:
47*38d07a96SBenjamin Mugnier    description:
48*38d07a96SBenjamin Mugnier      Reference to the GPIO connected to the reset pin, if any.
49*38d07a96SBenjamin Mugnier      This is an active low signal to the vgxy61.
50*38d07a96SBenjamin Mugnier
51*38d07a96SBenjamin Mugnier  st,strobe-gpios-polarity:
52*38d07a96SBenjamin Mugnier    description:
53*38d07a96SBenjamin Mugnier      Invert polarity of illuminator's lights strobe GPIOs.
54*38d07a96SBenjamin Mugnier      These GPIOs directly drive the illuminator LEDs.
55*38d07a96SBenjamin Mugnier    type: boolean
56*38d07a96SBenjamin Mugnier
57*38d07a96SBenjamin Mugnier  port:
58*38d07a96SBenjamin Mugnier    $ref: /schemas/graph.yaml#/$defs/port-base
59*38d07a96SBenjamin Mugnier    additionalProperties: false
60*38d07a96SBenjamin Mugnier
61*38d07a96SBenjamin Mugnier    properties:
62*38d07a96SBenjamin Mugnier      endpoint:
63*38d07a96SBenjamin Mugnier        $ref: /schemas/media/video-interfaces.yaml#
64*38d07a96SBenjamin Mugnier        unevaluatedProperties: false
65*38d07a96SBenjamin Mugnier
66*38d07a96SBenjamin Mugnier        properties:
67*38d07a96SBenjamin Mugnier          data-lanes:
68*38d07a96SBenjamin Mugnier            description:
69*38d07a96SBenjamin Mugnier              CSI lanes to use
70*38d07a96SBenjamin Mugnier            items:
71*38d07a96SBenjamin Mugnier              - const: 1
72*38d07a96SBenjamin Mugnier              - const: 2
73*38d07a96SBenjamin Mugnier              - const: 3
74*38d07a96SBenjamin Mugnier              - const: 4
75*38d07a96SBenjamin Mugnier
76*38d07a96SBenjamin Mugnier          remote-endpoint: true
77*38d07a96SBenjamin Mugnier
78*38d07a96SBenjamin Mugnier        required:
79*38d07a96SBenjamin Mugnier          - data-lanes
80*38d07a96SBenjamin Mugnier
81*38d07a96SBenjamin Mugnierrequired:
82*38d07a96SBenjamin Mugnier  - compatible
83*38d07a96SBenjamin Mugnier  - clocks
84*38d07a96SBenjamin Mugnier  - VCORE-supply
85*38d07a96SBenjamin Mugnier  - VDDIO-supply
86*38d07a96SBenjamin Mugnier  - VANA-supply
87*38d07a96SBenjamin Mugnier  - port
88*38d07a96SBenjamin Mugnier
89*38d07a96SBenjamin MugnieradditionalProperties: false
90*38d07a96SBenjamin Mugnier
91*38d07a96SBenjamin Mugnierexamples:
92*38d07a96SBenjamin Mugnier  - |
93*38d07a96SBenjamin Mugnier    #include <dt-bindings/gpio/gpio.h>
94*38d07a96SBenjamin Mugnier    i2c {
95*38d07a96SBenjamin Mugnier        #address-cells = <1>;
96*38d07a96SBenjamin Mugnier        #size-cells = <0>;
97*38d07a96SBenjamin Mugnier        vgxy61: csi2tx@10 {
98*38d07a96SBenjamin Mugnier            compatible = "st,st-vgxy61";
99*38d07a96SBenjamin Mugnier            reg = <0x10>;
100*38d07a96SBenjamin Mugnier            clocks = <&clk_ext_camera>;
101*38d07a96SBenjamin Mugnier            VCORE-supply = <&v1v2>;
102*38d07a96SBenjamin Mugnier            VDDIO-supply = <&v1v8>;
103*38d07a96SBenjamin Mugnier            VANA-supply = <&v2v8>;
104*38d07a96SBenjamin Mugnier            reset-gpios = <&mfxgpio 18 GPIO_ACTIVE_LOW>;
105*38d07a96SBenjamin Mugnier            port {
106*38d07a96SBenjamin Mugnier                ep0: endpoint {
107*38d07a96SBenjamin Mugnier                    data-lanes = <1 2 3 4>;
108*38d07a96SBenjamin Mugnier                    remote-endpoint = <&mipi_csi2_out>;
109*38d07a96SBenjamin Mugnier                };
110*38d07a96SBenjamin Mugnier            };
111*38d07a96SBenjamin Mugnier        };
112*38d07a96SBenjamin Mugnier    };
113*38d07a96SBenjamin Mugnier...
114