brintos

brintos / linux-shallow public Read only

0
0
Text · 3.8 KiB · 67c1c29 Raw
149 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2# Copyright (c) 2020 MediaTek Inc.3%YAML 1.24---5$id: http://devicetree.org/schemas/media/i2c/ovti,ov02a10.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: Omnivision OV02A10 CMOS Sensor9 10maintainers:11  - Dongchun Zhu <dongchun.zhu@mediatek.com>12 13description: |-14  The Omnivision OV02A10 is a low-cost, high performance, 1/5-inch, 2 megapixel15  image sensor, which is the latest production derived from Omnivision's CMOS16  image sensor technology. Ihis chip supports high frame rate speeds up to 30fps17  @ 1600x1200 (UXGA) resolution transferred over a 1-lane MIPI interface. The18  sensor output is available via CSI-2 serial data output.19 20allOf:21  - $ref: /schemas/media/video-interface-devices.yaml#22 23properties:24  compatible:25    const: ovti,ov02a1026 27  reg:28    maxItems: 129 30  clocks:31    maxItems: 132 33  clock-names:34    description:35      External clock for the sensor.36    items:37      - const: eclk38 39  clock-frequency:40    description:41      Frequency of the eclk clock in Hz.42 43  dovdd-supply:44    description:45      Definition of the regulator used as Digital I/O voltage supply.46 47  avdd-supply:48    description:49      Definition of the regulator used as Analog voltage supply.50 51  dvdd-supply:52    description:53      Definition of the regulator used as Digital core voltage supply.54 55  powerdown-gpios:56    description:57      Must be the device tree identifier of the GPIO connected to the58      PD_PAD pin. This pin is used to place the OV02A10 into standby mode59      or shutdown mode. As the line needs to be high for the powerdown mode60      to be active, it should be marked GPIO_ACTIVE_HIGH.61    maxItems: 162 63  reset-gpios:64    description:65      Must be the device tree identifier of the GPIO connected to the66      RST_PD pin. If specified, it will be asserted during driver probe.67      As the line needs to be low for the reset to be active, it should be68      marked GPIO_ACTIVE_LOW.69    maxItems: 170 71  port:72    $ref: /schemas/graph.yaml#/$defs/port-base73    additionalProperties: false74    description:75      Output port node, single endpoint describing the CSI-2 transmitter.76 77    properties:78      endpoint:79        $ref: /schemas/media/video-interfaces.yaml#80        unevaluatedProperties: false81 82        properties:83          link-frequencies: true84          ovti,mipi-clock-voltage:85            $ref: /schemas/types.yaml#/definitions/uint3286            description:87              Definition of MIPI clock voltage unit. This entry corresponds to88              the link speed defined by the 'link-frequencies' property.89              If present, the value shall be in the range of 0-4.90            default: 491 92        required:93          - link-frequencies94 95    required:96      - endpoint97 98required:99  - compatible100  - reg101  - clocks102  - clock-names103  - clock-frequency104  - dovdd-supply105  - avdd-supply106  - dvdd-supply107  - powerdown-gpios108  - reset-gpios109  - port110 111unevaluatedProperties: false112 113examples:114  - |115    #include <dt-bindings/gpio/gpio.h>116 117    i2c {118        #address-cells = <1>;119        #size-cells = <0>;120 121        ov02a10: camera-sensor@3d {122            compatible = "ovti,ov02a10";123            reg = <0x3d>;124 125            powerdown-gpios = <&pio 107 GPIO_ACTIVE_HIGH>;126            reset-gpios = <&pio 109 GPIO_ACTIVE_LOW>;127 128            clocks = <&ov02a10_clk>;129            clock-names = "eclk";130            clock-frequency = <24000000>;131 132            rotation = <180>;133 134            dovdd-supply = <&ov02a10_dovdd>;135            avdd-supply = <&ov02a10_avdd>;136            dvdd-supply = <&ov02a10_dvdd>;137 138            port {139                wcam_out: endpoint {140                    link-frequencies = /bits/ 64 <390000000>;141                    ovti,mipi-clock-voltage = <3>;142                    remote-endpoint = <&mipi_in_wcam>;143                };144            };145        };146    };147 148...149