Skip to content

Commit 38bc59f

Browse files
shcgit6by9
authored andcommitted
dt-bindings: media: i2c: Add Sony IMX662 sensor
Add device tree binding documentation for the Sony IMX662 CMOS image sensor. The sensor features a native pixel array of 1936x1100 (effective 1920x1080) and supports MIPI CSI-2 output with 2 or 4 data lanes, RAW10/RAW12 formats, and both colour and monochrome variants. The link-frequencies property accepts up to eight values corresponding to the allowed MIPI data rates. Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
1 parent 6bdbe0b commit 38bc59f

File tree

1 file changed

+112
-0
lines changed

1 file changed

+112
-0
lines changed
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/media/i2c/sony,imx662.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Sony IMX662 CMOS Image Sensor
8+
9+
description:
10+
The Sony IMX662 is a 1/2.8-inch CMOS image sensor with a pixel
11+
array of 1936x1100 pixels, capable of 1920x1080 resolution at up
12+
to 90 fps. It supports MIPI CSI-2 output with 2 or 4 data lanes,
13+
RAW10/RAW12 output, and both colour and monochrome variants.
14+
15+
allOf:
16+
- $ref: /schemas/media/video-interface-devices.yaml#
17+
18+
properties:
19+
compatible:
20+
enum:
21+
- sony,imx662 # Colour variant
22+
- sony,imx662-mono # Monochrome variant
23+
24+
reg:
25+
maxItems: 1
26+
description: I2C device address
27+
28+
clocks:
29+
maxItems: 1
30+
description: Master clock input (xclk).
31+
32+
reset-gpios:
33+
maxItems: 1
34+
description: Sensor reset (XCLR) pin, active low (optional).
35+
36+
avdd-supply:
37+
description: Analog 3.3V power supply (optional).
38+
39+
dvdd-supply:
40+
description: Digital core 1.1V power supply (optional).
41+
42+
ovdd-supply:
43+
description: Digital I/O 1.8V power supply (optional).
44+
45+
port:
46+
$ref: /schemas/graph.yaml#/$defs/port-base
47+
description: CSI-2 transmitter port
48+
additionalProperties: false
49+
properties:
50+
endpoint:
51+
$ref: /schemas/media/video-interfaces.yaml#
52+
unevaluatedProperties: false
53+
properties:
54+
data-lanes:
55+
description:
56+
Number of MIPI CSI-2 data lanes. Supported values: 2, 4.
57+
minItems: 2
58+
maxItems: 4
59+
items:
60+
enum: [1, 2, 3, 4]
61+
62+
link-frequencies:
63+
description:
64+
Allowed MIPI link frequencies in Hz. The list may contain
65+
one or more values; the driver selects the highest supported
66+
frequency compatible with the number of data lanes.
67+
minItems: 1
68+
maxItems: 8
69+
items:
70+
enum: [297000000, 360000000, 445500000, 594000000,
71+
720000000, 891000000, 1039500000, 1188000000]
72+
required:
73+
- data-lanes
74+
- link-frequencies
75+
required:
76+
- endpoint
77+
78+
required:
79+
- compatible
80+
- reg
81+
- clocks
82+
- port
83+
84+
additionalProperties: false
85+
86+
examples:
87+
- |
88+
#include <dt-bindings/gpio/gpio.h>
89+
90+
i2c {
91+
#address-cells = <1>;
92+
#size-cells = <0>;
93+
94+
camera@1a {
95+
compatible = "sony,imx662";
96+
reg = <0x1a>;
97+
clocks = <&clk24m>;
98+
avdd-supply = <&reg_cam_avdd>;
99+
dvdd-supply = <&reg_cam_dvdd>;
100+
ovdd-supply = <&reg_cam_ovdd>;
101+
reset-gpios = <&gpio3 4 GPIO_ACTIVE_LOW>;
102+
103+
port {
104+
imx662_out: endpoint {
105+
data-lanes = <1 2 3 4>;
106+
link-frequencies = /bits/ 64 <360000000>;
107+
remote-endpoint = <&imx662_in>;
108+
};
109+
};
110+
};
111+
};
112+
...

0 commit comments

Comments
 (0)