xref: /linux/Documentation/devicetree/bindings/media/i2c/sony,imx412.yaml (revision 55442e6af03434c500541782f01730a89162eb27)
1333b3125SMartina Krasteva# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2333b3125SMartina Krasteva# Copyright (C) 2021 Intel Corporation
3333b3125SMartina Krasteva%YAML 1.2
4333b3125SMartina Krasteva---
5333b3125SMartina Krasteva$id: http://devicetree.org/schemas/media/i2c/sony,imx412.yaml#
6333b3125SMartina Krasteva$schema: http://devicetree.org/meta-schemas/core.yaml#
7333b3125SMartina Krasteva
8333b3125SMartina Krastevatitle: Sony IMX412 Sensor
9333b3125SMartina Krasteva
10333b3125SMartina Krastevamaintainers:
11333b3125SMartina Krasteva  - Paul J. Murphy <paul.j.murphy@intel.com>
12333b3125SMartina Krasteva  - Daniele Alessandrelli <daniele.alessandrelli@intel.com>
13333b3125SMartina Krasteva
14333b3125SMartina Krastevadescription:
15333b3125SMartina Krasteva  IMX412 sensor is a Sony CMOS active pixel digital image sensor with an active
16333b3125SMartina Krasteva  array size of 4072H x 3176V. It is programmable through I2C interface. The
17333b3125SMartina Krasteva  I2C client address is fixed to 0x1a as per sensor data sheet. Image data is
18333b3125SMartina Krasteva  sent through MIPI CSI-2.
19333b3125SMartina Krasteva
20333b3125SMartina Krastevaproperties:
21333b3125SMartina Krasteva  compatible:
22333b3125SMartina Krasteva    const: sony,imx412
23333b3125SMartina Krasteva  reg:
24333b3125SMartina Krasteva    description: I2C address
25333b3125SMartina Krasteva    maxItems: 1
26333b3125SMartina Krasteva
27333b3125SMartina Krasteva  assigned-clocks: true
28333b3125SMartina Krasteva  assigned-clock-parents: true
29333b3125SMartina Krasteva  assigned-clock-rates: true
30333b3125SMartina Krasteva
31333b3125SMartina Krasteva  clocks:
32333b3125SMartina Krasteva    description: Clock frequency 6MHz, 12MHz, 18MHz, 24MHz or 27MHz
33333b3125SMartina Krasteva    maxItems: 1
34333b3125SMartina Krasteva
35333b3125SMartina Krasteva  reset-gpios:
36333b3125SMartina Krasteva    description: Reference to the GPIO connected to the XCLR pin, if any.
37333b3125SMartina Krasteva    maxItems: 1
38333b3125SMartina Krasteva
39333b3125SMartina Krasteva  port:
40333b3125SMartina Krasteva    additionalProperties: false
41*55442e6aSRob Herring    $ref: /schemas/graph.yaml#/$defs/port-base
42333b3125SMartina Krasteva
43333b3125SMartina Krasteva    properties:
44333b3125SMartina Krasteva      endpoint:
45333b3125SMartina Krasteva        $ref: /schemas/media/video-interfaces.yaml#
46333b3125SMartina Krasteva        unevaluatedProperties: false
47333b3125SMartina Krasteva
48333b3125SMartina Krasteva        properties:
49333b3125SMartina Krasteva          data-lanes: true
50333b3125SMartina Krasteva          link-frequencies: true
51333b3125SMartina Krasteva
52333b3125SMartina Krasteva        required:
53333b3125SMartina Krasteva          - data-lanes
54333b3125SMartina Krasteva          - link-frequencies
55333b3125SMartina Krasteva
56333b3125SMartina Krasteva    required:
57333b3125SMartina Krasteva      - endpoint
58333b3125SMartina Krasteva
59333b3125SMartina Krastevarequired:
60333b3125SMartina Krasteva  - compatible
61333b3125SMartina Krasteva  - reg
62333b3125SMartina Krasteva  - clocks
63333b3125SMartina Krasteva  - port
64333b3125SMartina Krasteva
65333b3125SMartina KrastevaadditionalProperties: false
66333b3125SMartina Krasteva
67333b3125SMartina Krastevaexamples:
68333b3125SMartina Krasteva  - |
69333b3125SMartina Krasteva    i2c0 {
70333b3125SMartina Krasteva        #address-cells = <1>;
71333b3125SMartina Krasteva        #size-cells = <0>;
72333b3125SMartina Krasteva
73333b3125SMartina Krasteva        camera@1a {
74333b3125SMartina Krasteva            compatible = "sony,imx412";
75333b3125SMartina Krasteva            reg = <0x1a>;
76333b3125SMartina Krasteva            clocks = <&imx412_clk>;
77333b3125SMartina Krasteva
78333b3125SMartina Krasteva            assigned-clocks = <&imx412_clk>;
79333b3125SMartina Krasteva            assigned-clock-parents = <&imx412_clk_parent>;
80333b3125SMartina Krasteva            assigned-clock-rates = <24000000>;
81333b3125SMartina Krasteva
82333b3125SMartina Krasteva            port {
83333b3125SMartina Krasteva                imx412: endpoint {
84333b3125SMartina Krasteva                    remote-endpoint = <&cam>;
85333b3125SMartina Krasteva                    data-lanes = <1 2 3 4>;
86333b3125SMartina Krasteva                    link-frequencies = /bits/ 64 <600000000>;
87333b3125SMartina Krasteva                };
88333b3125SMartina Krasteva            };
89333b3125SMartina Krasteva        };
90333b3125SMartina Krasteva    };
91333b3125SMartina Krasteva...
92