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

title: Sony IMX390 Camera Sensor

maintainers:
  - Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>

description: |-
  Sony IMX390 camera sensor.

properties:
  compatible:
    enum:
      - sony,imx390

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-names:
    const: inck

  xclr-gpios:
    maxItems: 1
    description:
      Specifier for the GPIO connected to the XCLR (System Reset) pin.

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

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

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

additionalProperties: false

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

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

        camera@21 {
            compatible = "sony,imx390";
            reg = <0x21>;

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

            xclr-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>;

            port {
                camera1: endpoint {
                    remote-endpoint = <&vin1a_ep>;
                };
            };
        };
    };

...