xref: /freebsd/sys/contrib/device-tree/Bindings/media/i2c/sony,imx334.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25def4c47SEmmanuel Vadot# Copyright (C) 2021 Intel Corporation
35def4c47SEmmanuel Vadot%YAML 1.2
45def4c47SEmmanuel Vadot---
55def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/media/i2c/sony,imx334.yaml#
65def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
75def4c47SEmmanuel Vadot
85def4c47SEmmanuel Vadottitle: Sony IMX334 Sensor
95def4c47SEmmanuel Vadot
105def4c47SEmmanuel Vadotmaintainers:
115def4c47SEmmanuel Vadot  - Paul J. Murphy <paul.j.murphy@intel.com>
125def4c47SEmmanuel Vadot  - Daniele Alessandrelli <daniele.alessandrelli@intel.com>
135def4c47SEmmanuel Vadot
145def4c47SEmmanuel Vadotdescription:
155def4c47SEmmanuel Vadot  IMX334 sensor is a Sony CMOS active pixel digital image sensor with an active
165def4c47SEmmanuel Vadot  array size of 3864H x 2202V. It is programmable through I2C interface. The
175def4c47SEmmanuel Vadot  I2C client address is fixed to 0x1a as per sensor data sheet. Image data is
185def4c47SEmmanuel Vadot  sent through MIPI CSI-2.
195def4c47SEmmanuel Vadot
205def4c47SEmmanuel Vadotproperties:
215def4c47SEmmanuel Vadot  compatible:
225def4c47SEmmanuel Vadot    const: sony,imx334
235def4c47SEmmanuel Vadot  reg:
245def4c47SEmmanuel Vadot    description: I2C address
255def4c47SEmmanuel Vadot    maxItems: 1
265def4c47SEmmanuel Vadot
275def4c47SEmmanuel Vadot  assigned-clocks: true
285def4c47SEmmanuel Vadot  assigned-clock-parents: true
295def4c47SEmmanuel Vadot  assigned-clock-rates: true
305def4c47SEmmanuel Vadot
315def4c47SEmmanuel Vadot  clocks:
325def4c47SEmmanuel Vadot    description: Clock frequency from 6 to 27 MHz, 37.125MHz, 74.25MHz
335def4c47SEmmanuel Vadot    maxItems: 1
345def4c47SEmmanuel Vadot
355def4c47SEmmanuel Vadot  reset-gpios:
365def4c47SEmmanuel Vadot    description: Reference to the GPIO connected to the XCLR pin, if any.
375def4c47SEmmanuel Vadot
385def4c47SEmmanuel Vadot  port:
395def4c47SEmmanuel Vadot    additionalProperties: false
405956d97fSEmmanuel Vadot    $ref: /schemas/graph.yaml#/$defs/port-base
415def4c47SEmmanuel Vadot
425def4c47SEmmanuel Vadot    properties:
435def4c47SEmmanuel Vadot      endpoint:
445def4c47SEmmanuel Vadot        $ref: /schemas/media/video-interfaces.yaml#
455def4c47SEmmanuel Vadot        unevaluatedProperties: false
465def4c47SEmmanuel Vadot
475def4c47SEmmanuel Vadot        properties:
485def4c47SEmmanuel Vadot          data-lanes: true
495def4c47SEmmanuel Vadot          link-frequencies: true
505def4c47SEmmanuel Vadot
515def4c47SEmmanuel Vadot        required:
525def4c47SEmmanuel Vadot          - data-lanes
535def4c47SEmmanuel Vadot          - link-frequencies
545def4c47SEmmanuel Vadot
555def4c47SEmmanuel Vadot    required:
565def4c47SEmmanuel Vadot      - endpoint
575def4c47SEmmanuel Vadot
585def4c47SEmmanuel Vadotrequired:
595def4c47SEmmanuel Vadot  - compatible
605def4c47SEmmanuel Vadot  - reg
615def4c47SEmmanuel Vadot  - clocks
625def4c47SEmmanuel Vadot  - port
635def4c47SEmmanuel Vadot
645def4c47SEmmanuel VadotadditionalProperties: false
655def4c47SEmmanuel Vadot
665def4c47SEmmanuel Vadotexamples:
675def4c47SEmmanuel Vadot  - |
68*fac71e4eSEmmanuel Vadot    i2c {
695def4c47SEmmanuel Vadot        #address-cells = <1>;
705def4c47SEmmanuel Vadot        #size-cells = <0>;
715def4c47SEmmanuel Vadot
725def4c47SEmmanuel Vadot        camera@1a {
735def4c47SEmmanuel Vadot            compatible = "sony,imx334";
745def4c47SEmmanuel Vadot            reg = <0x1a>;
755def4c47SEmmanuel Vadot            clocks = <&imx334_clk>;
765def4c47SEmmanuel Vadot
775def4c47SEmmanuel Vadot            assigned-clocks = <&imx334_clk>;
785def4c47SEmmanuel Vadot            assigned-clock-parents = <&imx334_clk_parent>;
795def4c47SEmmanuel Vadot            assigned-clock-rates = <24000000>;
805def4c47SEmmanuel Vadot
815def4c47SEmmanuel Vadot            port {
825def4c47SEmmanuel Vadot                imx334: endpoint {
835def4c47SEmmanuel Vadot                    remote-endpoint = <&cam>;
845def4c47SEmmanuel Vadot                    data-lanes = <1 2 3 4>;
85*fac71e4eSEmmanuel Vadot                    link-frequencies = /bits/ 64 <891000000 445500000>;
865def4c47SEmmanuel Vadot                };
875def4c47SEmmanuel Vadot            };
885def4c47SEmmanuel Vadot        };
895def4c47SEmmanuel Vadot    };
905def4c47SEmmanuel Vadot...
91