xref: /freebsd/sys/contrib/device-tree/Bindings/media/i2c/alliedvision,alvium-csi2.yaml (revision 6580f5c38dd5b01aeeaed16b370f1a12423437f0)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/i2c/alliedvision,alvium-csi2.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allied Vision Alvium Camera
8
9maintainers:
10  - Tommaso Merciai <tomm.merciai@gmail.com>
11  - Martin Hecht <martin.hecht@avnet.eu>
12
13allOf:
14  - $ref: /schemas/media/video-interface-devices.yaml#
15
16properties:
17  compatible:
18    const: alliedvision,alvium-csi2
19
20  reg:
21    maxItems: 1
22
23  vcc-ext-in-supply:
24    description: |
25      The regulator that supplies power to the VCC_EXT_IN pins.
26
27  port:
28    description: Digital Output Port
29    $ref: /schemas/graph.yaml#/$defs/port-base
30    additionalProperties: false
31
32    properties:
33      endpoint:
34        $ref: /schemas/media/video-interfaces.yaml#
35        unevaluatedProperties: false
36
37        properties:
38          link-frequencies: true
39
40          data-lanes:
41            minItems: 1
42            items:
43              - const: 1
44              - const: 2
45              - const: 3
46              - const: 4
47
48        required:
49          - data-lanes
50          - link-frequencies
51
52required:
53  - compatible
54  - reg
55  - vcc-ext-in-supply
56  - port
57
58additionalProperties: false
59
60examples:
61  - |
62    i2c {
63        #address-cells = <1>;
64        #size-cells = <0>;
65
66        alvium: camera@3c {
67            compatible = "alliedvision,alvium-csi2";
68            reg = <0x3c>;
69            vcc-ext-in-supply = <&reg_vcc_ext_in>;
70
71            port {
72                alvium_out: endpoint {
73                    remote-endpoint = <&mipi_csi_0_in>;
74                    data-lanes = <1 2 3 4>;
75                    link-frequencies = /bits/ 64 <681250000>;
76                };
77            };
78        };
79    };
80
81...
82