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