xref: /openbmc/linux/Documentation/devicetree/bindings/media/i2c/sony,imx335.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1932741d4SMartina Krasteva# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2932741d4SMartina Krasteva# Copyright (C) 2021 Intel Corporation
3932741d4SMartina Krasteva%YAML 1.2
4932741d4SMartina Krasteva---
5932741d4SMartina Krasteva$id: http://devicetree.org/schemas/media/i2c/sony,imx335.yaml#
6932741d4SMartina Krasteva$schema: http://devicetree.org/meta-schemas/core.yaml#
7932741d4SMartina Krasteva
8932741d4SMartina Krastevatitle: Sony IMX335 Sensor
9932741d4SMartina Krasteva
10932741d4SMartina Krastevamaintainers:
11932741d4SMartina Krasteva  - Paul J. Murphy <paul.j.murphy@intel.com>
12932741d4SMartina Krasteva  - Daniele Alessandrelli <daniele.alessandrelli@intel.com>
13932741d4SMartina Krasteva
14932741d4SMartina Krastevadescription:
15932741d4SMartina Krasteva  IMX335 sensor is a Sony CMOS active pixel digital image sensor with an active
16932741d4SMartina Krasteva  array size of 2592H x 1944V. It is programmable through I2C interface. The
17932741d4SMartina Krasteva  I2C client address is fixed to 0x1a as per sensor data sheet. Image data is
18932741d4SMartina Krasteva  sent through MIPI CSI-2.
19932741d4SMartina Krasteva
20932741d4SMartina Krastevaproperties:
21932741d4SMartina Krasteva  compatible:
22932741d4SMartina Krasteva    const: sony,imx335
23932741d4SMartina Krasteva  reg:
24932741d4SMartina Krasteva    description: I2C address
25932741d4SMartina Krasteva    maxItems: 1
26932741d4SMartina Krasteva
27932741d4SMartina Krasteva  assigned-clocks: true
28932741d4SMartina Krasteva  assigned-clock-parents: true
29932741d4SMartina Krasteva  assigned-clock-rates: true
30932741d4SMartina Krasteva
31932741d4SMartina Krasteva  clocks:
32932741d4SMartina Krasteva    description: Clock frequency from 6 to 27 MHz, 37.125MHz, 74.25MHz
33932741d4SMartina Krasteva    maxItems: 1
34932741d4SMartina Krasteva
35932741d4SMartina Krasteva  reset-gpios:
36932741d4SMartina Krasteva    description: Reference to the GPIO connected to the XCLR pin, if any.
37932741d4SMartina Krasteva    maxItems: 1
38932741d4SMartina Krasteva
39932741d4SMartina Krasteva  port:
40932741d4SMartina Krasteva    additionalProperties: false
4155442e6aSRob Herring    $ref: /schemas/graph.yaml#/$defs/port-base
42932741d4SMartina Krasteva
43932741d4SMartina Krasteva    properties:
44932741d4SMartina Krasteva      endpoint:
45932741d4SMartina Krasteva        $ref: /schemas/media/video-interfaces.yaml#
46932741d4SMartina Krasteva        unevaluatedProperties: false
47932741d4SMartina Krasteva
48932741d4SMartina Krasteva        properties:
49932741d4SMartina Krasteva          data-lanes: true
50932741d4SMartina Krasteva          link-frequencies: true
51932741d4SMartina Krasteva
52932741d4SMartina Krasteva        required:
53932741d4SMartina Krasteva          - data-lanes
54932741d4SMartina Krasteva          - link-frequencies
55932741d4SMartina Krasteva
56932741d4SMartina Krasteva    required:
57932741d4SMartina Krasteva      - endpoint
58932741d4SMartina Krasteva
59932741d4SMartina Krastevarequired:
60932741d4SMartina Krasteva  - compatible
61932741d4SMartina Krasteva  - reg
62932741d4SMartina Krasteva  - clocks
63932741d4SMartina Krasteva  - port
64932741d4SMartina Krasteva
65932741d4SMartina KrastevaadditionalProperties: false
66932741d4SMartina Krasteva
67932741d4SMartina Krastevaexamples:
68932741d4SMartina Krasteva  - |
69*20a72af1SRob Herring    i2c {
70932741d4SMartina Krasteva        #address-cells = <1>;
71932741d4SMartina Krasteva        #size-cells = <0>;
72932741d4SMartina Krasteva
73932741d4SMartina Krasteva        camera@1a {
74932741d4SMartina Krasteva            compatible = "sony,imx335";
75932741d4SMartina Krasteva            reg = <0x1a>;
76932741d4SMartina Krasteva            clocks = <&imx335_clk>;
77932741d4SMartina Krasteva
78932741d4SMartina Krasteva            assigned-clocks = <&imx335_clk>;
79932741d4SMartina Krasteva            assigned-clock-parents = <&imx335_clk_parent>;
80932741d4SMartina Krasteva            assigned-clock-rates = <24000000>;
81932741d4SMartina Krasteva
82932741d4SMartina Krasteva            port {
83932741d4SMartina Krasteva                imx335: endpoint {
84932741d4SMartina Krasteva                    remote-endpoint = <&cam>;
85932741d4SMartina Krasteva                    data-lanes = <1 2 3 4>;
86932741d4SMartina Krasteva                    link-frequencies = /bits/ 64 <594000000>;
87932741d4SMartina Krasteva                };
88932741d4SMartina Krasteva            };
89932741d4SMartina Krasteva        };
90932741d4SMartina Krasteva    };
91932741d4SMartina Krasteva...
92