summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/media/i2c/alliedvision,alvium-csi2.yaml
blob: d3329e991d1652936fcf671012b8018e4317ea40 (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
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/i2c/alliedvision,alvium-csi2.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Allied Vision Alvium Camera

maintainers:
  - Tommaso Merciai <tomm.merciai@gmail.com>
  - Martin Hecht <martin.hecht@avnet.eu>

allOf:
  - $ref: /schemas/media/video-interface-devices.yaml#

properties:
  compatible:
    const: alliedvision,alvium-csi2

  reg:
    maxItems: 1

  vcc-ext-in-supply:
    description: |
      The regulator that supplies power to the VCC_EXT_IN pins.

  port:
    description: Digital Output Port
    $ref: /schemas/graph.yaml#/$defs/port-base
    additionalProperties: false

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

        properties:
          link-frequencies: true

          data-lanes:
            minItems: 1
            items:
              - const: 1
              - const: 2
              - const: 3
              - const: 4

        required:
          - data-lanes
          - link-frequencies

required:
  - compatible
  - reg
  - vcc-ext-in-supply
  - port

additionalProperties: false

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

        alvium: camera@3c {
            compatible = "alliedvision,alvium-csi2";
            reg = <0x3c>;
            vcc-ext-in-supply = <&reg_vcc_ext_in>;

            port {
                alvium_out: endpoint {
                    remote-endpoint = <&mipi_csi_0_in>;
                    data-lanes = <1 2 3 4>;
                    link-frequencies = /bits/ 64 <681250000>;
                };
            };
        };
    };

...