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