1*34487ad0SDongchun Zhu# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*34487ad0SDongchun Zhu# Copyright (c) 2020 MediaTek Inc. 3*34487ad0SDongchun Zhu%YAML 1.2 4*34487ad0SDongchun Zhu--- 5*34487ad0SDongchun Zhu$id: http://devicetree.org/schemas/media/i2c/ovti,ov02a10.yaml# 6*34487ad0SDongchun Zhu$schema: http://devicetree.org/meta-schemas/core.yaml# 7*34487ad0SDongchun Zhu 8*34487ad0SDongchun Zhutitle: Omnivision OV02A10 CMOS Sensor Device Tree Bindings 9*34487ad0SDongchun Zhu 10*34487ad0SDongchun Zhumaintainers: 11*34487ad0SDongchun Zhu - Dongchun Zhu <dongchun.zhu@mediatek.com> 12*34487ad0SDongchun Zhu 13*34487ad0SDongchun Zhudescription: |- 14*34487ad0SDongchun Zhu The Omnivision OV02A10 is a low-cost, high performance, 1/5-inch, 2 megapixel 15*34487ad0SDongchun Zhu image sensor, which is the latest production derived from Omnivision's CMOS 16*34487ad0SDongchun Zhu image sensor technology. Ihis chip supports high frame rate speeds up to 30fps 17*34487ad0SDongchun Zhu @ 1600x1200 (UXGA) resolution transferred over a 1-lane MIPI interface. The 18*34487ad0SDongchun Zhu sensor output is available via CSI-2 serial data output. 19*34487ad0SDongchun Zhu 20*34487ad0SDongchun Zhuproperties: 21*34487ad0SDongchun Zhu compatible: 22*34487ad0SDongchun Zhu const: ovti,ov02a10 23*34487ad0SDongchun Zhu 24*34487ad0SDongchun Zhu reg: 25*34487ad0SDongchun Zhu maxItems: 1 26*34487ad0SDongchun Zhu 27*34487ad0SDongchun Zhu clocks: 28*34487ad0SDongchun Zhu maxItems: 1 29*34487ad0SDongchun Zhu 30*34487ad0SDongchun Zhu clock-names: 31*34487ad0SDongchun Zhu description: 32*34487ad0SDongchun Zhu External clock for the sensor. 33*34487ad0SDongchun Zhu items: 34*34487ad0SDongchun Zhu - const: eclk 35*34487ad0SDongchun Zhu 36*34487ad0SDongchun Zhu clock-frequency: 37*34487ad0SDongchun Zhu description: 38*34487ad0SDongchun Zhu Frequency of the eclk clock in Hz. 39*34487ad0SDongchun Zhu 40*34487ad0SDongchun Zhu dovdd-supply: 41*34487ad0SDongchun Zhu description: 42*34487ad0SDongchun Zhu Definition of the regulator used as Digital I/O voltage supply. 43*34487ad0SDongchun Zhu 44*34487ad0SDongchun Zhu avdd-supply: 45*34487ad0SDongchun Zhu description: 46*34487ad0SDongchun Zhu Definition of the regulator used as Analog voltage supply. 47*34487ad0SDongchun Zhu 48*34487ad0SDongchun Zhu dvdd-supply: 49*34487ad0SDongchun Zhu description: 50*34487ad0SDongchun Zhu Definition of the regulator used as Digital core voltage supply. 51*34487ad0SDongchun Zhu 52*34487ad0SDongchun Zhu powerdown-gpios: 53*34487ad0SDongchun Zhu description: 54*34487ad0SDongchun Zhu Must be the device tree identifier of the GPIO connected to the 55*34487ad0SDongchun Zhu PD_PAD pin. This pin is used to place the OV02A10 into standby mode 56*34487ad0SDongchun Zhu or shutdown mode. As the line needs to be high for the powerdown mode 57*34487ad0SDongchun Zhu to be active, it should be marked GPIO_ACTIVE_HIGH. 58*34487ad0SDongchun Zhu maxItems: 1 59*34487ad0SDongchun Zhu 60*34487ad0SDongchun Zhu reset-gpios: 61*34487ad0SDongchun Zhu description: 62*34487ad0SDongchun Zhu Must be the device tree identifier of the GPIO connected to the 63*34487ad0SDongchun Zhu RST_PD pin. If specified, it will be asserted during driver probe. 64*34487ad0SDongchun Zhu As the line needs to be low for the reset to be active, it should be 65*34487ad0SDongchun Zhu marked GPIO_ACTIVE_LOW. 66*34487ad0SDongchun Zhu maxItems: 1 67*34487ad0SDongchun Zhu 68*34487ad0SDongchun Zhu rotation: 69*34487ad0SDongchun Zhu description: 70*34487ad0SDongchun Zhu Definition of the sensor's placement. 71*34487ad0SDongchun Zhu allOf: 72*34487ad0SDongchun Zhu - $ref: "/schemas/types.yaml#/definitions/uint32" 73*34487ad0SDongchun Zhu - enum: 74*34487ad0SDongchun Zhu - 0 # Sensor Mounted Upright 75*34487ad0SDongchun Zhu - 180 # Sensor Mounted Upside Down 76*34487ad0SDongchun Zhu default: 0 77*34487ad0SDongchun Zhu 78*34487ad0SDongchun Zhu # See ../video-interfaces.txt for details 79*34487ad0SDongchun Zhu port: 80*34487ad0SDongchun Zhu type: object 81*34487ad0SDongchun Zhu additionalProperties: false 82*34487ad0SDongchun Zhu description: 83*34487ad0SDongchun Zhu Output port node, single endpoint describing the CSI-2 transmitter. 84*34487ad0SDongchun Zhu 85*34487ad0SDongchun Zhu properties: 86*34487ad0SDongchun Zhu endpoint: 87*34487ad0SDongchun Zhu type: object 88*34487ad0SDongchun Zhu additionalProperties: false 89*34487ad0SDongchun Zhu 90*34487ad0SDongchun Zhu properties: 91*34487ad0SDongchun Zhu link-frequencies: true 92*34487ad0SDongchun Zhu ovti,mipi-clock-voltage: 93*34487ad0SDongchun Zhu allOf: 94*34487ad0SDongchun Zhu - $ref: "/schemas/types.yaml#/definitions/uint32" 95*34487ad0SDongchun Zhu description: 96*34487ad0SDongchun Zhu Definition of MIPI clock voltage unit. This entry corresponds to 97*34487ad0SDongchun Zhu the link speed defined by the 'link-frequencies' property. 98*34487ad0SDongchun Zhu If present, the value shall be in the range of 0-4. 99*34487ad0SDongchun Zhu default: 4 100*34487ad0SDongchun Zhu remote-endpoint: true 101*34487ad0SDongchun Zhu 102*34487ad0SDongchun Zhu required: 103*34487ad0SDongchun Zhu - link-frequencies 104*34487ad0SDongchun Zhu - remote-endpoint 105*34487ad0SDongchun Zhu 106*34487ad0SDongchun Zhu required: 107*34487ad0SDongchun Zhu - endpoint 108*34487ad0SDongchun Zhu 109*34487ad0SDongchun Zhurequired: 110*34487ad0SDongchun Zhu - compatible 111*34487ad0SDongchun Zhu - reg 112*34487ad0SDongchun Zhu - clocks 113*34487ad0SDongchun Zhu - clock-names 114*34487ad0SDongchun Zhu - clock-frequency 115*34487ad0SDongchun Zhu - dovdd-supply 116*34487ad0SDongchun Zhu - avdd-supply 117*34487ad0SDongchun Zhu - dvdd-supply 118*34487ad0SDongchun Zhu - powerdown-gpios 119*34487ad0SDongchun Zhu - reset-gpios 120*34487ad0SDongchun Zhu - port 121*34487ad0SDongchun Zhu 122*34487ad0SDongchun ZhuadditionalProperties: false 123*34487ad0SDongchun Zhu 124*34487ad0SDongchun Zhuexamples: 125*34487ad0SDongchun Zhu - | 126*34487ad0SDongchun Zhu #include <dt-bindings/gpio/gpio.h> 127*34487ad0SDongchun Zhu 128*34487ad0SDongchun Zhu i2c { 129*34487ad0SDongchun Zhu #address-cells = <1>; 130*34487ad0SDongchun Zhu #size-cells = <0>; 131*34487ad0SDongchun Zhu 132*34487ad0SDongchun Zhu ov02a10: camera-sensor@3d { 133*34487ad0SDongchun Zhu compatible = "ovti,ov02a10"; 134*34487ad0SDongchun Zhu reg = <0x3d>; 135*34487ad0SDongchun Zhu 136*34487ad0SDongchun Zhu powerdown-gpios = <&pio 107 GPIO_ACTIVE_HIGH>; 137*34487ad0SDongchun Zhu reset-gpios = <&pio 109 GPIO_ACTIVE_LOW>; 138*34487ad0SDongchun Zhu 139*34487ad0SDongchun Zhu clocks = <&ov02a10_clk>; 140*34487ad0SDongchun Zhu clock-names = "eclk"; 141*34487ad0SDongchun Zhu clock-frequency = <24000000>; 142*34487ad0SDongchun Zhu 143*34487ad0SDongchun Zhu rotation = <180>; 144*34487ad0SDongchun Zhu 145*34487ad0SDongchun Zhu dovdd-supply = <&ov02a10_dovdd>; 146*34487ad0SDongchun Zhu avdd-supply = <&ov02a10_avdd>; 147*34487ad0SDongchun Zhu dvdd-supply = <&ov02a10_dvdd>; 148*34487ad0SDongchun Zhu 149*34487ad0SDongchun Zhu port { 150*34487ad0SDongchun Zhu wcam_out: endpoint { 151*34487ad0SDongchun Zhu link-frequencies = /bits/ 64 <390000000>; 152*34487ad0SDongchun Zhu ovti,mipi-clock-voltage = <3>; 153*34487ad0SDongchun Zhu remote-endpoint = <&mipi_in_wcam>; 154*34487ad0SDongchun Zhu }; 155*34487ad0SDongchun Zhu }; 156*34487ad0SDongchun Zhu }; 157*34487ad0SDongchun Zhu }; 158*34487ad0SDongchun Zhu 159*34487ad0SDongchun Zhu... 160