1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2354d7675SEmmanuel Vadot# Copyright (C) 2021 Intel Corporation
3354d7675SEmmanuel Vadot%YAML 1.2
4354d7675SEmmanuel Vadot---
5354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/media/i2c/sony,imx335.yaml#
6354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7354d7675SEmmanuel Vadot
8354d7675SEmmanuel Vadottitle: Sony IMX335 Sensor
9354d7675SEmmanuel Vadot
10354d7675SEmmanuel Vadotmaintainers:
11354d7675SEmmanuel Vadot  - Paul J. Murphy <paul.j.murphy@intel.com>
12354d7675SEmmanuel Vadot  - Daniele Alessandrelli <daniele.alessandrelli@intel.com>
13354d7675SEmmanuel Vadot
14354d7675SEmmanuel Vadotdescription:
15354d7675SEmmanuel Vadot  IMX335 sensor is a Sony CMOS active pixel digital image sensor with an active
16354d7675SEmmanuel Vadot  array size of 2592H x 1944V. It is programmable through I2C interface. The
17354d7675SEmmanuel Vadot  I2C client address is fixed to 0x1a as per sensor data sheet. Image data is
18354d7675SEmmanuel Vadot  sent through MIPI CSI-2.
19354d7675SEmmanuel Vadot
20354d7675SEmmanuel Vadotproperties:
21354d7675SEmmanuel Vadot  compatible:
22354d7675SEmmanuel Vadot    const: sony,imx335
23354d7675SEmmanuel Vadot  reg:
24354d7675SEmmanuel Vadot    description: I2C address
25354d7675SEmmanuel Vadot    maxItems: 1
26354d7675SEmmanuel Vadot
27354d7675SEmmanuel Vadot  assigned-clocks: true
28354d7675SEmmanuel Vadot  assigned-clock-parents: true
29354d7675SEmmanuel Vadot  assigned-clock-rates: true
30354d7675SEmmanuel Vadot
31354d7675SEmmanuel Vadot  clocks:
32354d7675SEmmanuel Vadot    description: Clock frequency from 6 to 27 MHz, 37.125MHz, 74.25MHz
33354d7675SEmmanuel Vadot    maxItems: 1
34354d7675SEmmanuel Vadot
35*8d13bc63SEmmanuel Vadot  avdd-supply:
36*8d13bc63SEmmanuel Vadot    description: Analog power supply (2.9V)
37*8d13bc63SEmmanuel Vadot
38*8d13bc63SEmmanuel Vadot  ovdd-supply:
39*8d13bc63SEmmanuel Vadot    description: Interface power supply (1.8V)
40*8d13bc63SEmmanuel Vadot
41*8d13bc63SEmmanuel Vadot  dvdd-supply:
42*8d13bc63SEmmanuel Vadot    description: Digital power supply (1.2V)
43*8d13bc63SEmmanuel Vadot
44354d7675SEmmanuel Vadot  reset-gpios:
45354d7675SEmmanuel Vadot    description: Reference to the GPIO connected to the XCLR pin, if any.
46354d7675SEmmanuel Vadot    maxItems: 1
47354d7675SEmmanuel Vadot
48354d7675SEmmanuel Vadot  port:
49354d7675SEmmanuel Vadot    additionalProperties: false
50354d7675SEmmanuel Vadot    $ref: /schemas/graph.yaml#/$defs/port-base
51354d7675SEmmanuel Vadot
52354d7675SEmmanuel Vadot    properties:
53354d7675SEmmanuel Vadot      endpoint:
54354d7675SEmmanuel Vadot        $ref: /schemas/media/video-interfaces.yaml#
55354d7675SEmmanuel Vadot        unevaluatedProperties: false
56354d7675SEmmanuel Vadot
57354d7675SEmmanuel Vadot        properties:
58354d7675SEmmanuel Vadot          data-lanes: true
59354d7675SEmmanuel Vadot          link-frequencies: true
60354d7675SEmmanuel Vadot
61354d7675SEmmanuel Vadot        required:
62354d7675SEmmanuel Vadot          - data-lanes
63354d7675SEmmanuel Vadot          - link-frequencies
64354d7675SEmmanuel Vadot
65354d7675SEmmanuel Vadot    required:
66354d7675SEmmanuel Vadot      - endpoint
67354d7675SEmmanuel Vadot
68354d7675SEmmanuel Vadotrequired:
69354d7675SEmmanuel Vadot  - compatible
70354d7675SEmmanuel Vadot  - reg
71354d7675SEmmanuel Vadot  - clocks
72354d7675SEmmanuel Vadot  - port
73354d7675SEmmanuel Vadot
74354d7675SEmmanuel VadotadditionalProperties: false
75354d7675SEmmanuel Vadot
76354d7675SEmmanuel Vadotexamples:
77354d7675SEmmanuel Vadot  - |
78fac71e4eSEmmanuel Vadot    i2c {
79354d7675SEmmanuel Vadot        #address-cells = <1>;
80354d7675SEmmanuel Vadot        #size-cells = <0>;
81354d7675SEmmanuel Vadot
82354d7675SEmmanuel Vadot        camera@1a {
83354d7675SEmmanuel Vadot            compatible = "sony,imx335";
84354d7675SEmmanuel Vadot            reg = <0x1a>;
85354d7675SEmmanuel Vadot            clocks = <&imx335_clk>;
86354d7675SEmmanuel Vadot
87354d7675SEmmanuel Vadot            assigned-clocks = <&imx335_clk>;
88354d7675SEmmanuel Vadot            assigned-clock-parents = <&imx335_clk_parent>;
89354d7675SEmmanuel Vadot            assigned-clock-rates = <24000000>;
90354d7675SEmmanuel Vadot
91*8d13bc63SEmmanuel Vadot            avdd-supply = <&camera_vdda_2v9>;
92*8d13bc63SEmmanuel Vadot            ovdd-supply = <&camera_vddo_1v8>;
93*8d13bc63SEmmanuel Vadot            dvdd-supply = <&camera_vddd_1v2>;
94*8d13bc63SEmmanuel Vadot
95354d7675SEmmanuel Vadot            port {
96354d7675SEmmanuel Vadot                imx335: endpoint {
97354d7675SEmmanuel Vadot                    remote-endpoint = <&cam>;
98354d7675SEmmanuel Vadot                    data-lanes = <1 2 3 4>;
99354d7675SEmmanuel Vadot                    link-frequencies = /bits/ 64 <594000000>;
100354d7675SEmmanuel Vadot                };
101354d7675SEmmanuel Vadot            };
102354d7675SEmmanuel Vadot        };
103354d7675SEmmanuel Vadot    };
104354d7675SEmmanuel Vadot...
105