summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/media/i2c/ovti,ox05b.yaml
blob: f84ccd4d5d9148f1a98f0a18bdb460314203d944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/i2c/ovti,ox05b.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: OmniVision OX05B1S Camera Sensor

maintainers:
  - Abhishek Sharma <abhishek.sharma@ti.com>

description: |-
  Omnivision OX05B1S is an RGBIR camera sensor with an active array size of
  2592x1944. It is programmable through the I2C interface. The i2c client
  address is fixed at 0x36 as per the sensor datasheet. Every alternate frame,
  the sensor changes the exposure/gain registers to stream an -
  A. IR-dominant frame on CSI-2 virtual channel 0
  B. RGB-dominant frame on CSI-2 virtual channel 1

  Both streams are captured at a resolution 2592x1944, 30 fps each
  (60 fps total). The sensor also supports a few v4l2 controls like
  exposure and gain controls.

properties:
  compatible:
    enum:
      - ovti,ox05b

  reg:
    description: I2C address
    maxItems: 1

  clocks:
    maxItems: 1

  clock-names:
    const: inck

  pwdn-gpios:
    maxItems: 1
    description:
      Specifier for the GPIO connected to the PWDN pin.

  port:
    $ref: /schemas/graph.yaml#/properties/port
    additionalProperties: false

    properties:
      endpoint:
        $ref: /schemas/media/video-interfaces.yaml#
        unevaluatedProperties: false

required:
  - compatible
  - reg
  - clocks
  - clock-names
  - port

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

    i2c {
      #address-cells = <1>;
      #size-cells = <0>;

      ox05b1s: camera@36 {
        compatible = "ovti,ox05b";
        reg = <0x36>;

        clocks = <&clk_ox05b1s_fixed>;
        clock-names = "inck";

        pwdn-gpios = <&exp1 13 GPIO_ACTIVE_LOW>;

        port {
          csi2_cam0: endpoint {
            remote-endpoint = <&csi2rx0_in_sensor>;
          };
        };
      };
    };

...