Documentation / devicetree / bindings / media / i2c / sony,imx283.yaml


Based on kernel version 6.11. Page generated on 2024-09-24 08:21 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
# Copyright (C) 2024 Ideas on Board Oy
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/i2c/sony,imx283.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Sony IMX283 Sensor

maintainers:
  - Kieran Bingham <kieran.bingham@ideasonboard.com>
  - Umang Jain <umang.jain@ideasonboard.com>

description:
  IMX283 sensor is a Sony CMOS active pixel digital image sensor with an active
  array size of 5472H x 3648V. It is programmable through I2C interface. The
  I2C client address is fixed to 0x1a as per sensor data sheet. Image data is
  sent through MIPI CSI-2.

properties:
  compatible:
    const: sony,imx283

  reg:
    maxItems: 1

  clocks:
    description: Clock frequency from 6 to 24 MHz.
    maxItems: 1

  vadd-supply:
    description: Analog power supply (2.9V)

  vdd1-supply:
    description: Interface power supply (1.8V)

  vdd2-supply:
    description: Digital power supply (1.2V)

  reset-gpios:
    description: Sensor reset (XCLR) GPIO
    maxItems: 1

  port:
    $ref: /schemas/graph.yaml#/$defs/port-base
    additionalProperties: false

    properties:
      endpoint:
        $ref: /schemas/media/video-interfaces.yaml#
        unevaluatedProperties: false

        properties:
          data-lanes:
            anyOf:
              - items:
                  - const: 1
                  - const: 2
                  - const: 3
                  - const: 4

          link-frequencies: true

        required:
          - data-lanes
          - link-frequencies

    required:
      - endpoint

required:
  - compatible
  - reg
  - clocks
  - port

additionalProperties: false

examples:
  - |
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
 
        camera@1a {
            compatible = "sony,imx283";
            reg = <0x1a>;
            clocks = <&imx283_clk>;
 
            assigned-clocks = <&imx283_clk>;
            assigned-clock-parents = <&imx283_clk_parent>;
            assigned-clock-rates = <12000000>;
 
            vadd-supply = <&camera_vadd_2v9>;
            vdd1-supply = <&camera_vdd1_1v8>;
            vdd2-supply = <&camera_vdd2_1v2>;
 
            port {
                imx283: endpoint {
                    remote-endpoint = <&cam>;
                    data-lanes = <1 2 3 4>;
                    link-frequencies = /bits/ 64 <360000000>;
                };
            };
        };
    };
...