Skip to content

Commit

Permalink
dt-bindings: media: i2c : Add ISX021 documentation
Browse files Browse the repository at this point in the history
Add YAML doccumentation

Signed-off-by: Bogdan Togorean <[email protected]>
  • Loading branch information
btogorean committed Jul 9, 2024
1 parent f24c9b7 commit d681bbb
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions Documentation/devicetree/bindings/media/i2c/sony,isx021.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/i2c/sony,isx021.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Sony 1/2.57-inch 2.51MP CMOS Digital Image Sensor

maintainers:
- Bogdan Togorean <[email protected]>

description: |
The Sony ISX021 is a 1/2.57-inch CMOS active pixel digital image sensor.
It is programmable through an I2C interface. Image data is sent through MIPI CSI-2,
through 2 or 4 lanes.
properties:
compatible:
const: sony,isx021

reg:
maxItems: 1

clocks:
description: Reference to the xclk clock.
maxItems: 1

reset-gpios:
description: GPIO descriptor for the reset pin.
maxItems: 1

dvdd-supply:
description: Chip digital IO regulator (1.8V).

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

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

properties:
clock-lanes:
const: 0

data-lanes:
minItems: 1

remote-endpoint: true

required:
- data-lanes
- clock-lanes
required:
- endpoint

required:
- compatible
- reg
- clocks
- reset-gpios
- dvdd-supply
- port

additionalProperties: false

examples:
- |
#include <dt-bindings/gpio/gpio.h>
i2c0 {
#address-cells = <1>;
#size-cells = <0>;
camera-sensor@1a {
compatible = "sony,isx021";
reg = <0x1a>;
dvdd-supply = <&sw2_reg>;
reset-gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
clocks = <&camera_clk>;
port {
isx021_ep: endpoint {
clock-lanes = <0>;
data-lanes = <1 2 3 4>;
remote-endpoint = <&csiphy0_ep>;
};
};
};
};

0 comments on commit d681bbb

Please sign in to comment.