xref: /freebsd/sys/contrib/device-tree/Bindings/media/i2c/sony,imx334.yaml (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1*5def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*5def4c47SEmmanuel Vadot# Copyright (C) 2021 Intel Corporation
3*5def4c47SEmmanuel Vadot%YAML 1.2
4*5def4c47SEmmanuel Vadot---
5*5def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/media/i2c/sony,imx334.yaml#
6*5def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7*5def4c47SEmmanuel Vadot
8*5def4c47SEmmanuel Vadottitle: Sony IMX334 Sensor
9*5def4c47SEmmanuel Vadot
10*5def4c47SEmmanuel Vadotmaintainers:
11*5def4c47SEmmanuel Vadot  - Paul J. Murphy <paul.j.murphy@intel.com>
12*5def4c47SEmmanuel Vadot  - Daniele Alessandrelli <daniele.alessandrelli@intel.com>
13*5def4c47SEmmanuel Vadot
14*5def4c47SEmmanuel Vadotdescription:
15*5def4c47SEmmanuel Vadot  IMX334 sensor is a Sony CMOS active pixel digital image sensor with an active
16*5def4c47SEmmanuel Vadot  array size of 3864H x 2202V. It is programmable through I2C interface. The
17*5def4c47SEmmanuel Vadot  I2C client address is fixed to 0x1a as per sensor data sheet. Image data is
18*5def4c47SEmmanuel Vadot  sent through MIPI CSI-2.
19*5def4c47SEmmanuel Vadot
20*5def4c47SEmmanuel Vadotproperties:
21*5def4c47SEmmanuel Vadot  compatible:
22*5def4c47SEmmanuel Vadot    const: sony,imx334
23*5def4c47SEmmanuel Vadot  reg:
24*5def4c47SEmmanuel Vadot    description: I2C address
25*5def4c47SEmmanuel Vadot    maxItems: 1
26*5def4c47SEmmanuel Vadot
27*5def4c47SEmmanuel Vadot  assigned-clocks: true
28*5def4c47SEmmanuel Vadot  assigned-clock-parents: true
29*5def4c47SEmmanuel Vadot  assigned-clock-rates: true
30*5def4c47SEmmanuel Vadot
31*5def4c47SEmmanuel Vadot  clocks:
32*5def4c47SEmmanuel Vadot    description: Clock frequency from 6 to 27 MHz, 37.125MHz, 74.25MHz
33*5def4c47SEmmanuel Vadot    maxItems: 1
34*5def4c47SEmmanuel Vadot
35*5def4c47SEmmanuel Vadot  reset-gpios:
36*5def4c47SEmmanuel Vadot    description: Reference to the GPIO connected to the XCLR pin, if any.
37*5def4c47SEmmanuel Vadot
38*5def4c47SEmmanuel Vadot  port:
39*5def4c47SEmmanuel Vadot    additionalProperties: false
40*5def4c47SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/port
41*5def4c47SEmmanuel Vadot
42*5def4c47SEmmanuel Vadot    properties:
43*5def4c47SEmmanuel Vadot      endpoint:
44*5def4c47SEmmanuel Vadot        $ref: /schemas/media/video-interfaces.yaml#
45*5def4c47SEmmanuel Vadot        unevaluatedProperties: false
46*5def4c47SEmmanuel Vadot
47*5def4c47SEmmanuel Vadot        properties:
48*5def4c47SEmmanuel Vadot          data-lanes: true
49*5def4c47SEmmanuel Vadot          link-frequencies: true
50*5def4c47SEmmanuel Vadot
51*5def4c47SEmmanuel Vadot        required:
52*5def4c47SEmmanuel Vadot          - data-lanes
53*5def4c47SEmmanuel Vadot          - link-frequencies
54*5def4c47SEmmanuel Vadot
55*5def4c47SEmmanuel Vadot    required:
56*5def4c47SEmmanuel Vadot      - endpoint
57*5def4c47SEmmanuel Vadot
58*5def4c47SEmmanuel Vadotrequired:
59*5def4c47SEmmanuel Vadot  - compatible
60*5def4c47SEmmanuel Vadot  - reg
61*5def4c47SEmmanuel Vadot  - clocks
62*5def4c47SEmmanuel Vadot  - port
63*5def4c47SEmmanuel Vadot
64*5def4c47SEmmanuel VadotadditionalProperties: false
65*5def4c47SEmmanuel Vadot
66*5def4c47SEmmanuel Vadotexamples:
67*5def4c47SEmmanuel Vadot  - |
68*5def4c47SEmmanuel Vadot    i2c0 {
69*5def4c47SEmmanuel Vadot        #address-cells = <1>;
70*5def4c47SEmmanuel Vadot        #size-cells = <0>;
71*5def4c47SEmmanuel Vadot
72*5def4c47SEmmanuel Vadot        camera@1a {
73*5def4c47SEmmanuel Vadot            compatible = "sony,imx334";
74*5def4c47SEmmanuel Vadot            reg = <0x1a>;
75*5def4c47SEmmanuel Vadot            clocks = <&imx334_clk>;
76*5def4c47SEmmanuel Vadot
77*5def4c47SEmmanuel Vadot            assigned-clocks = <&imx334_clk>;
78*5def4c47SEmmanuel Vadot            assigned-clock-parents = <&imx334_clk_parent>;
79*5def4c47SEmmanuel Vadot            assigned-clock-rates = <24000000>;
80*5def4c47SEmmanuel Vadot
81*5def4c47SEmmanuel Vadot            port {
82*5def4c47SEmmanuel Vadot                imx334: endpoint {
83*5def4c47SEmmanuel Vadot                    remote-endpoint = <&cam>;
84*5def4c47SEmmanuel Vadot                    data-lanes = <1 2 3 4>;
85*5def4c47SEmmanuel Vadot                    link-frequencies = /bits/ 64 <891000000>;
86*5def4c47SEmmanuel Vadot                };
87*5def4c47SEmmanuel Vadot            };
88*5def4c47SEmmanuel Vadot        };
89*5def4c47SEmmanuel Vadot    };
90*5def4c47SEmmanuel Vadot...
91