Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 128 additions & 0 deletions Documentation/devicetree/bindings/media/i2c/ovti,ov13858.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/i2c/ovti,ov13858.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: OmniVision OV13858 CMOS image sensor

maintainers:
- Leon Silcott <leon@boasi.io>

description: |
The OV13858 is a CMOS image sensor controlled over I2C/SCCB. The supported
modes output 10-bit Bayer data over four CSI-2 D-PHY data lanes and use a
19.2 MHz external clock.

allOf:
- $ref: /schemas/media/video-interface-devices.yaml#

properties:
compatible:
const: ovti,ov13858

reg:
maxItems: 1

clocks:
description: External sensor clock (XVCLK), running at 19.2 MHz.
maxItems: 1

dovdd-supply:
description: Digital I/O supply.

avdd-supply:
description: Analog supply.

dvdd-supply:
description: Digital core supply.

reset-gpios:
description: Active-low sensor reset signal.
maxItems: 1

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

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

properties:
bus-type:
const: 4

clock-lanes:
const: 0

clock-noncontinuous: false

data-lanes:
items:
- const: 1
- const: 2
- const: 3
- const: 4

lane-polarities:
items:
- const: 0
- const: 0
- const: 0
- const: 0
- const: 0

link-frequencies:
minItems: 1
maxItems: 2
uniqueItems: true
items:
enum: [270000000, 540000000]

required:
- data-lanes
- link-frequencies

required:
- endpoint

required:
- compatible
- reg
- clocks
- dovdd-supply
- avdd-supply
- dvdd-supply
- port

unevaluatedProperties: false

examples:
- |
#include <dt-bindings/gpio/gpio.h>

i2c {
#address-cells = <1>;
#size-cells = <0>;

camera@10 {
compatible = "ovti,ov13858";
reg = <0x10>;
clocks = <&camera_clk>;
avdd-supply = <&camera_avdd>;
dovdd-supply = <&camera_dovdd>;
dvdd-supply = <&camera_dvdd>;
reset-gpios = <&gpio 0 GPIO_ACTIVE_LOW>;

port {
endpoint {
data-lanes = <1 2 3 4>;
link-frequencies = /bits/ 64 <270000000 540000000>;
remote-endpoint = <&csi_in>;
};
};
};
};
...
37 changes: 29 additions & 8 deletions Documentation/devicetree/bindings/media/i2c/st,vd55g1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,32 @@
$id: http://devicetree.org/schemas/media/i2c/st,vd55g1.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: STMicroelectronics VD55G1 Global Shutter Image Sensor
title: STMicroelectronics VD55G1 Family Global Shutter Image Sensors

maintainers:
- Benjamin Mugnier <benjamin.mugnier@foss.st.com>
- Sylvain Petinot <sylvain.petinot@foss.st.com>
- Peter Marshall <pm@petermarshall.ca>

description: |-
The STMicroelectronics VD55G1 is a global shutter image sensor with an active
array size of 804H x 704V. It is programmable through I2C interface. The I2C
address is fixed to 0x10.
The STMicroelectronics VD55G1 family (VD55G0, VD55G1, and VD65G4) consists of
global shutter image sensors. The VD55G0 has an array size of 644H x 604V.
The VD55G1 and VD65G4 have an array size of 804H x 704V. They are programmable
through I2C interface.

Image data is sent through MIPI CSI-2, which is configured as only 1 data
lane. The sensor provides 4 GPIOS that can be used for external LED signal
(synchronized with sensor integration periods).

allOf:
- $ref: /schemas/media/video-interface-devices.yaml#

properties:
compatible:
enum:
- st,vd55g0
- st,vd55g1
- st,vd55g4
- st,vd65g4
description:
VD55G1 and VD55G4 are monochrome variants, while VD65G4 is a color one.
VD55G0 and VD55G1 are monochrome variants, while VD65G4 is a color variant.

reg:
maxItems: 1
Expand Down Expand Up @@ -101,6 +101,27 @@ required:
- reset-gpios
- port

allOf:
- $ref: /schemas/media/video-interface-devices.yaml#

- if:
properties:
compatible:
contains:
const: st,vd55g0
then:
properties:
# Illumination is not qualified by the sensor-only VD55G0 port.
st,leds: false

port:
properties:
endpoint:
properties:
link-frequencies:
items:
minimum: 375000000

unevaluatedProperties: false

examples:
Expand Down
2 changes: 2 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -20225,6 +20225,7 @@ M: Sakari Ailus <sakari.ailus@linux.intel.com>
L: linux-media@vger.kernel.org
S: Maintained
T: git git://linuxtv.org/media.git
F: Documentation/devicetree/bindings/media/i2c/ovti,ov13858.yaml
F: drivers/media/i2c/ov13858.c

OMNIVISION OV13B10 SENSOR DRIVER
Expand Down Expand Up @@ -26034,6 +26035,7 @@ F: drivers/hwmon/tsc1641.c
ST VD55G1 DRIVER
M: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
M: Sylvain Petinot <sylvain.petinot@foss.st.com>
M: Peter Marshall <pm@petermarshall.ca>
L: linux-media@vger.kernel.org
S: Maintained
F: Documentation/devicetree/bindings/media/i2c/st,vd55g1.yaml
Expand Down
Loading