xref: /linux/Documentation/devicetree/bindings/media/i2c/ovti,ov9282.yaml (revision ff32fcca64437f679a2bf1c0a19d5def389a18e2)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2# Copyright (C) 2021 Intel Corporation
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/media/i2c/ovti,ov9282.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: OmniVision OV9282 Sensor
9
10maintainers:
11  - Paul J. Murphy <paul.j.murphy@intel.com>
12  - Daniele Alessandrelli <daniele.alessandrelli@intel.com>
13
14description:
15  OV9282 sensor is an OmniVision black & white CMOS active pixel digital image
16  sensor with an active array size of 1296H x 816V. It is programmable through
17  I2C interface. The I2C client address is fixed to 0x60/0x70 as per sensor data
18  sheet. Image data is sent through MIPI CSI-2.
19  OV9281 has a different lens chief ray angle.
20
21properties:
22  compatible:
23    enum:
24      - ovti,ov9281
25      - ovti,ov9282
26  reg:
27    description: I2C address
28    maxItems: 1
29
30  assigned-clocks: true
31  assigned-clock-parents: true
32  assigned-clock-rates: true
33
34  clocks:
35    description: Clock frequency from 6 to 27MHz
36    maxItems: 1
37
38  reset-gpios:
39    description: Reference to the GPIO connected to the XCLR pin, if any.
40    maxItems: 1
41
42  avdd-supply:
43    description: Analog voltage supply, 2.8 volts
44
45  dvdd-supply:
46    description: Digital core voltage supply, 1.2 volts
47
48  dovdd-supply:
49    description: Digital I/O voltage supply, 1.8 volts
50
51  port:
52    additionalProperties: false
53    $ref: /schemas/graph.yaml#/$defs/port-base
54
55    properties:
56      endpoint:
57        $ref: /schemas/media/video-interfaces.yaml#
58        unevaluatedProperties: false
59
60        properties:
61          data-lanes: true
62          link-frequencies: true
63
64        required:
65          - data-lanes
66          - link-frequencies
67
68    required:
69      - endpoint
70
71required:
72  - compatible
73  - reg
74  - clocks
75  - port
76
77additionalProperties: false
78
79examples:
80  - |
81    i2c {
82        #address-cells = <1>;
83        #size-cells = <0>;
84
85        camera@60 {
86            compatible = "ovti,ov9282";
87            reg = <0x60>;
88            clocks = <&ov9282_clk>;
89
90            assigned-clocks = <&ov9282_clk>;
91            assigned-clock-parents = <&ov9282_clk_parent>;
92            assigned-clock-rates = <24000000>;
93
94            port {
95                ov9282: endpoint {
96                    remote-endpoint = <&cam>;
97                    data-lanes = <1 2>;
98                    link-frequencies = /bits/ 64 <800000000>;
99                };
100            };
101        };
102    };
103...
104