Skip to content

Commit 47f15af

Browse files
committed
dt-bindings: media: i2c : Add ISX021 documentation
Add YAML documentation Signed-off-by: Bogdan Togorean <bogdan.togorean@analog.com>
1 parent f042b95 commit 47f15af

File tree

2 files changed

+99
-0
lines changed

2 files changed

+99
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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,isx021.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Sony 1/2.57-inch 2.51MP CMOS Digital Image Sensor
8+
9+
maintainers:
10+
- Bogdan Togorean <bogdan.togorean@analog.com>
11+
12+
description: |
13+
The Sony ISX021 is a 1/2.57-inch CMOS active pixel digital image sensor.
14+
It is programmable through an I2C interface. Image data is sent through MIPI CSI-2,
15+
through 2 or 4 lanes.
16+
17+
properties:
18+
compatible:
19+
const: sony,isx021
20+
21+
reg:
22+
maxItems: 1
23+
24+
clocks:
25+
description: Reference to the xclk clock.
26+
maxItems: 1
27+
28+
reset-gpios:
29+
description: GPIO descriptor for the reset pin.
30+
maxItems: 1
31+
32+
dvdd-supply:
33+
description: Chip digital IO regulator (1.8V).
34+
35+
port:
36+
description: Video output port.
37+
$ref: /schemas/graph.yaml#/$defs/port-base
38+
additionalProperties: false
39+
40+
properties:
41+
endpoint:
42+
$ref: /schemas/media/video-interfaces.yaml#
43+
additionalProperties: false
44+
45+
properties:
46+
clock-lanes:
47+
const: 0
48+
49+
data-lanes:
50+
minItems: 1
51+
52+
remote-endpoint: true
53+
54+
required:
55+
- data-lanes
56+
- clock-lanes
57+
required:
58+
- endpoint
59+
60+
required:
61+
- compatible
62+
- reg
63+
- clocks
64+
- reset-gpios
65+
- dvdd-supply
66+
- port
67+
68+
additionalProperties: false
69+
70+
examples:
71+
- |
72+
#include <dt-bindings/gpio/gpio.h>
73+
74+
i2c0 {
75+
#address-cells = <1>;
76+
#size-cells = <0>;
77+
78+
camera-sensor@1a {
79+
compatible = "sony,isx021";
80+
reg = <0x1a>;
81+
dvdd-supply = <&sw2_reg>;
82+
reset-gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
83+
clocks = <&camera_clk>;
84+
85+
port {
86+
isx021_ep: endpoint {
87+
clock-lanes = <0>;
88+
data-lanes = <1 2 3 4>;
89+
remote-endpoint = <&csiphy0_ep>;
90+
};
91+
};
92+
};
93+
};

MAINTAINERS

+6
Original file line numberDiff line numberDiff line change
@@ -19445,6 +19445,12 @@ T: git git://linuxtv.org/media_tree.git
1944519445
F: Documentation/devicetree/bindings/media/i2c/sony,imx412.yaml
1944619446
F: drivers/media/i2c/imx412.c
1944719447

19448+
SONY ISX021 SENSOR DRIVER
19449+
M: Bogdan Togorean <bogdan.togorean@analog.com>
19450+
L: linux-media@vger.kernel.org
19451+
S: Maintained
19452+
F: Documentation/devicetree/bindings/media/i2c/sony,isx021.yaml
19453+
1944819454
SONY MEMORYSTICK SUBSYSTEM
1944919455
M: Maxim Levitsky <maximlevitsky@gmail.com>
1945019456
M: Alex Dubov <oakad@yahoo.com>

0 commit comments

Comments
 (0)