Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | # Copyright (C) 2024 Ideas on Board Oy |
| 3 | %YAML 1.2 |
| 4 | --- |
| 5 | $id: http://devicetree.org/schemas/media/i2c/sony,imx283.yaml# |
| 6 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 7 | |
| 8 | title: Sony IMX283 Sensor |
| 9 | |
| 10 | maintainers: |
| 11 | - Kieran Bingham <kieran.bingham@ideasonboard.com> |
| 12 | - Umang Jain <umang.jain@ideasonboard.com> |
| 13 | |
| 14 | description: |
| 15 | IMX283 sensor is a Sony CMOS active pixel digital image sensor with an active |
| 16 | array size of 5472H x 3648V. It is programmable through I2C interface. The |
| 17 | I2C client address is fixed to 0x1a as per sensor data sheet. Image data is |
| 18 | sent through MIPI CSI-2. |
| 19 | |
| 20 | properties: |
| 21 | compatible: |
| 22 | const: sony,imx283 |
| 23 | |
| 24 | reg: |
| 25 | maxItems: 1 |
| 26 | |
| 27 | clocks: |
| 28 | description: Clock frequency from 6 to 24 MHz. |
| 29 | maxItems: 1 |
| 30 | |
| 31 | vadd-supply: |
| 32 | description: Analog power supply (2.9V) |
| 33 | |
| 34 | vdd1-supply: |
| 35 | description: Interface power supply (1.8V) |
| 36 | |
| 37 | vdd2-supply: |
| 38 | description: Digital power supply (1.2V) |
| 39 | |
| 40 | reset-gpios: |
| 41 | description: Sensor reset (XCLR) GPIO |
| 42 | maxItems: 1 |
| 43 | |
| 44 | port: |
| 45 | $ref: /schemas/graph.yaml#/$defs/port-base |
| 46 | additionalProperties: false |
| 47 | |
| 48 | properties: |
| 49 | endpoint: |
| 50 | $ref: /schemas/media/video-interfaces.yaml# |
| 51 | unevaluatedProperties: false |
| 52 | |
| 53 | properties: |
| 54 | data-lanes: |
| 55 | anyOf: |
| 56 | - items: |
| 57 | - const: 1 |
| 58 | - const: 2 |
| 59 | - const: 3 |
| 60 | - const: 4 |
| 61 | |
| 62 | link-frequencies: true |
| 63 | |
| 64 | required: |
| 65 | - data-lanes |
| 66 | - link-frequencies |
| 67 | |
| 68 | required: |
| 69 | - endpoint |
| 70 | |
| 71 | required: |
| 72 | - compatible |
| 73 | - reg |
| 74 | - clocks |
| 75 | - port |
| 76 | |
| 77 | additionalProperties: false |
| 78 | |
| 79 | examples: |
| 80 | - | |
| 81 | i2c { |
| 82 | #address-cells = <1>; |
| 83 | #size-cells = <0>; |
| 84 | |
| 85 | camera@1a { |
| 86 | compatible = "sony,imx283"; |
| 87 | reg = <0x1a>; |
| 88 | clocks = <&imx283_clk>; |
| 89 | |
| 90 | assigned-clocks = <&imx283_clk>; |
| 91 | assigned-clock-parents = <&imx283_clk_parent>; |
| 92 | assigned-clock-rates = <12000000>; |
| 93 | |
| 94 | vadd-supply = <&camera_vadd_2v9>; |
| 95 | vdd1-supply = <&camera_vdd1_1v8>; |
| 96 | vdd2-supply = <&camera_vdd2_1v2>; |
| 97 | |
| 98 | port { |
| 99 | imx283: endpoint { |
| 100 | remote-endpoint = <&cam>; |
| 101 | data-lanes = <1 2 3 4>; |
| 102 | link-frequencies = /bits/ 64 <360000000>; |
| 103 | }; |
| 104 | }; |
| 105 | }; |
| 106 | }; |
| 107 | ... |