File Index
Files and directories
Sign in
FILE

ovti,ov8856.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/media/i2c/ovti,ov8856.yaml YAML
  1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2# Copyright (c) 2019 MediaTek Inc.
  3%YAML 1.2
  4---
  5$id: http://devicetree.org/schemas/media/i2c/ovti,ov8856.yaml#
  6$schema: http://devicetree.org/meta-schemas/core.yaml#
  7
  8title: Omnivision OV8856 CMOS Sensor
  9
 10maintainers:
 11  - Sakari Ailus <sakari.ailus@linux.intel.com>
 12
 13description: |-
 14  The Omnivision OV8856 is a high performance, 1/4-inch, 8 megapixel, CMOS
 15  image sensor that delivers 3264x2448 at 30fps. It provides full-frame,
 16  sub-sampled, and windowed 10-bit MIPI images in various formats via the
 17  Serial Camera Control Bus (SCCB) interface. This chip is programmable
 18  through I2C and two-wire SCCB. The sensor output is available via CSI-2
 19  serial data output (up to 4-lane).
 20
 21properties:
 22  compatible:
 23    const: ovti,ov8856
 24
 25  reg:
 26    maxItems: 1
 27
 28  clocks:
 29    maxItems: 1
 30
 31  clock-names:
 32    description:
 33      Input clock for the sensor.
 34    items:
 35      - const: xvclk
 36
 37  clock-frequency:
 38    description:
 39      Frequency of the xvclk clock in Hertz.
 40    deprecated: true
 41
 42  dovdd-supply:
 43    description:
 44      Definition of the regulator used as interface power supply.
 45
 46  avdd-supply:
 47    description:
 48      Definition of the regulator used as analog power supply.
 49
 50  dvdd-supply:
 51    description:
 52      Definition of the regulator used as digital power supply.
 53
 54  reset-gpios:
 55    description:
 56      The phandle and specifier for the GPIO that controls sensor reset.
 57      This corresponds to the hardware pin XSHUTDOWN which is physically
 58      active low.
 59
 60  port:
 61    $ref: /schemas/graph.yaml#/$defs/port-base
 62    additionalProperties: false
 63
 64    properties:
 65      endpoint:
 66        $ref: /schemas/media/video-interfaces.yaml#
 67        unevaluatedProperties: false
 68
 69        properties:
 70          data-lanes:
 71            oneOf:
 72              - items:
 73                  - const: 1
 74              - items:
 75                  - const: 1
 76                  - const: 2
 77              - items:
 78                  - const: 1
 79                  - const: 2
 80                  - const: 3
 81                  - const: 4
 82
 83        required:
 84          - link-frequencies
 85
 86required:
 87  - compatible
 88  - reg
 89  - clocks
 90  - clock-names
 91  - dovdd-supply
 92  - avdd-supply
 93  - dvdd-supply
 94  - reset-gpios
 95  - port
 96
 97additionalProperties: false
 98
 99examples:
100  - |
101    #include <dt-bindings/gpio/gpio.h>
102
103    i2c {
104        #address-cells = <1>;
105        #size-cells = <0>;
106
107        ov8856: camera@10 {
108            compatible = "ovti,ov8856";
109            reg = <0x10>;
110
111            reset-gpios = <&pio 111 GPIO_ACTIVE_LOW>;
112            pinctrl-names = "default";
113            pinctrl-0 = <&clk_24m_cam>;
114
115            clocks = <&cam_osc>;
116            clock-names = "xvclk";
117
118            avdd-supply = <&mt6358_vcama2_reg>;
119            dvdd-supply = <&mt6358_vcamd_reg>;
120            dovdd-supply = <&mt6358_vcamio_reg>;
121
122            port {
123                wcam_out: endpoint {
124                    remote-endpoint = <&mipi_in_wcam>;
125                    data-lanes = <1 2 3 4>;
126                    link-frequencies = /bits/ 64 <360000000>;
127                };
128            };
129        };
130    };
131...
~/ Read-only file preview.