xref: /linux/Documentation/devicetree/bindings/media/i2c/ovti,og01a1b.yaml (revision 55d0969c451159cff86949b38c39171cab962069)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2# Copyright (c) 2023-2024 Linaro Ltd.
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/media/i2c/ovti,og01a1b.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: OmniVision OG01A1B Image Sensor
9
10maintainers:
11  - Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
12
13description:
14  The OmniVision OG01A1B is black and white CMOS 1.3 Megapixel (1280x1024)
15  image sensor controlled over an I2C-compatible SCCB bus.
16  The sensor transmits images on a MIPI CSI-2 output interface with one or
17  two data lanes.
18
19allOf:
20  - $ref: /schemas/media/video-interface-devices.yaml#
21
22properties:
23  compatible:
24    const: ovti,og01a1b
25
26  reg:
27    maxItems: 1
28
29  clocks:
30    maxItems: 1
31
32  reset-gpios:
33    description: Active low GPIO connected to XSHUTDOWN pad of the sensor.
34    maxItems: 1
35
36  strobe-gpios:
37    description: Input GPIO connected to strobe pad of the sensor.
38    maxItems: 1
39
40  avdd-supply:
41    description: Analogue circuit voltage supply.
42
43  dovdd-supply:
44    description: I/O circuit voltage supply.
45
46  dvdd-supply:
47    description: Digital circuit voltage supply.
48
49  port:
50    $ref: /schemas/graph.yaml#/$defs/port-base
51    additionalProperties: false
52    description:
53      Output port node, single endpoint describing the CSI-2 transmitter.
54
55    properties:
56      endpoint:
57        $ref: /schemas/media/video-interfaces.yaml#
58        unevaluatedProperties: false
59
60        properties:
61          data-lanes:
62            minItems: 1
63            maxItems: 2
64            items:
65              enum: [1, 2]
66
67          link-frequencies: true
68
69        required:
70          - data-lanes
71          - link-frequencies
72
73required:
74  - compatible
75  - reg
76  - clocks
77  - port
78
79unevaluatedProperties: false
80
81examples:
82  - |
83    #include <dt-bindings/gpio/gpio.h>
84
85    i2c {
86        #address-cells = <1>;
87        #size-cells = <0>;
88
89        sensor@60 {
90            compatible = "ovti,og01a1b";
91            reg = <0x60>;
92            clocks = <&clk 0>;
93            reset-gpios = <&gpio 117 GPIO_ACTIVE_LOW>;
94            avdd-supply = <&vreg_3v3>;
95            dovdd-supply = <&vreg_1p8>;
96            dvdd-supply = <&vreg_1p2>;
97
98            port {
99                og01a1b_ep: endpoint {
100                    remote-endpoint = <&csiphy_ep>;
101                    data-lanes = <1 2>;
102                    link-frequencies = /bits/ 64 <500000000>;
103                };
104            };
105        };
106    };
107...
108