Skip to content

Commit d899e5f

Browse files
krzkmchehab
authored andcommitted
media: dt-bindings: media: imx258: add bindings for IMX258 sensor
Add bindings for the IMX258 camera sensor. The bindings, just like the driver, are quite limited, e.g. do not support regulator supplies. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
1 parent ded8f03 commit d899e5f

2 files changed

Lines changed: 135 additions & 0 deletions

File tree

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
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/imx258.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Sony IMX258 13 Mpixel CMOS Digital Image Sensor
8+
9+
maintainers:
10+
- Krzysztof Kozlowski <krzk@kernel.org>
11+
12+
description: |-
13+
IMX258 is a diagonal 5.867mm (Type 1/3.06) 13 Mega-pixel CMOS active pixel
14+
type stacked image sensor with a square pixel array of size 4208 x 3120. It
15+
is programmable through I2C interface. Image data is sent through MIPI
16+
CSI-2.
17+
18+
properties:
19+
compatible:
20+
const: sony,imx258
21+
22+
assigned-clocks: true
23+
assigned-clock-parents: true
24+
assigned-clock-rates: true
25+
26+
clocks:
27+
description:
28+
Clock frequency from 6 to 27 MHz.
29+
maxItems: 1
30+
31+
reg:
32+
maxItems: 1
33+
34+
reset-gpios:
35+
description: |-
36+
Reference to the GPIO connected to the XCLR pin, if any.
37+
38+
vana-supply:
39+
description:
40+
Analog voltage (VANA) supply, 2.7 V
41+
42+
vdig-supply:
43+
description:
44+
Digital I/O voltage (VDIG) supply, 1.2 V
45+
46+
vif-supply:
47+
description:
48+
Interface voltage (VIF) supply, 1.8 V
49+
50+
# See ../video-interfaces.txt for more details
51+
port:
52+
type: object
53+
properties:
54+
endpoint:
55+
type: object
56+
properties:
57+
data-lanes:
58+
oneOf:
59+
- items:
60+
- const: 1
61+
- const: 2
62+
- const: 3
63+
- const: 4
64+
- items:
65+
- const: 1
66+
- const: 2
67+
68+
link-frequencies:
69+
allOf:
70+
- $ref: /schemas/types.yaml#/definitions/uint64-array
71+
description:
72+
Allowed data bus frequencies.
73+
74+
required:
75+
- data-lanes
76+
- link-frequencies
77+
78+
required:
79+
- compatible
80+
- reg
81+
- port
82+
83+
additionalProperties: false
84+
85+
examples:
86+
- |
87+
i2c0 {
88+
#address-cells = <1>;
89+
#size-cells = <0>;
90+
91+
sensor@6c {
92+
compatible = "sony,imx258";
93+
reg = <0x6c>;
94+
clocks = <&imx258_clk>;
95+
96+
port {
97+
endpoint {
98+
remote-endpoint = <&csi1_ep>;
99+
data-lanes = <1 2 3 4>;
100+
link-frequencies = /bits/ 64 <320000000>;
101+
};
102+
};
103+
};
104+
};
105+
106+
/* Oscillator on the camera board */
107+
imx258_clk: clk {
108+
compatible = "fixed-clock";
109+
#clock-cells = <0>;
110+
clock-frequency = <19200000>;
111+
};
112+
113+
- |
114+
i2c0 {
115+
#address-cells = <1>;
116+
#size-cells = <0>;
117+
118+
sensor@6c {
119+
compatible = "sony,imx258";
120+
reg = <0x6c>;
121+
clocks = <&imx258_clk>;
122+
123+
assigned-clocks = <&imx258_clk>;
124+
assigned-clock-rates = <19200000>;
125+
126+
port {
127+
endpoint {
128+
remote-endpoint = <&csi1_ep>;
129+
data-lanes = <1 2 3 4>;
130+
link-frequencies = /bits/ 64 <633600000>;
131+
};
132+
};
133+
};
134+
};

‎MAINTAINERS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16559,6 +16559,7 @@ M: Sakari Ailus <sakari.ailus@linux.intel.com>
1655916559
L: linux-media@vger.kernel.org
1656016560
S: Maintained
1656116561
T: git git://linuxtv.org/media_tree.git
16562+
F: Documentation/devicetree/bindings/media/i2c/imx258.yaml
1656216563
F: drivers/media/i2c/imx258.c
1656316564

1656416565
SONY IMX274 SENSOR DRIVER

0 commit comments

Comments
 (0)