Skip to content
Draft
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
109 changes: 109 additions & 0 deletions Documentation/devicetree/bindings/media/i2c/sony,imx681.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/i2c/sony,imx681.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Sony IMX681 CMOS Image Sensor

maintainers:
- turbinebmw <turbine.bmw@gmail.com>

description:
The Sony IMX681 is a CMOS image sensor. The currently supported mode is
3840x2640 RAW10 at approximately 30 frames per second over one MIPI CSI-2
C-PHY trio at 2406 Msymbol/s.

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

properties:
compatible:
const: sony,imx681

reg:
maxItems: 1

clocks:
description: Input clock at 19.2 MHz
maxItems: 1

avdd-supply:
description: Analog power supply

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

reset-gpios:
description: Active-low sensor reset (XCLR) GPIO
maxItems: 1

leds: true
led-names: true
orientation: true
rotation: true

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

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

properties:
bus-type:
const: 1 # MIPI CSI-2 C-PHY
data-lanes:
items:
- const: 0
link-frequencies: true
remote-endpoint: true

required:
- bus-type
- data-lanes
- link-frequencies

required:
- endpoint

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

unevaluatedProperties: false

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

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

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

port {
imx681_ep: endpoint {
bus-type = <MEDIA_BUS_TYPE_CSI2_CPHY>;
data-lanes = <0>;
link-frequencies = /bits/ 64 <1203000000>;
remote-endpoint = <&csi_in>;
};
};
};
};
...
8 changes: 8 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -25304,6 +25304,14 @@ T: git git://linuxtv.org/media.git
F: Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml
F: drivers/media/i2c/imx415.c

SONY IMX681 SENSOR DRIVER
M: turbinebmw <turbine.bmw@gmail.com>
L: linux-media@vger.kernel.org
S: Maintained
T: git git://linuxtv.org/media.git
F: Documentation/devicetree/bindings/media/i2c/sony,imx681.yaml
F: drivers/media/i2c/imx681*

SONY MEMORYSTICK SUBSYSTEM
M: Maxim Levitsky <maximlevitsky@gmail.com>
M: Alex Dubov <oakad@yahoo.com>
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/configs/ubuntu_x1e_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3903,6 +3903,7 @@ CONFIG_VIDEO_IMX335=m
CONFIG_VIDEO_IMX355=m
CONFIG_VIDEO_IMX412=m
CONFIG_VIDEO_IMX415=m
CONFIG_VIDEO_IMX681=m
CONFIG_VIDEO_MT9M001=m
CONFIG_VIDEO_MT9M111=m
CONFIG_VIDEO_MT9M114=m
Expand Down
1 change: 1 addition & 0 deletions debian.qcom-x1e/config/annotations
Original file line number Diff line number Diff line change
Expand Up @@ -13050,6 +13050,7 @@ CONFIG_VIDEO_IMX335 policy<{'arm64': 'm'}>
CONFIG_VIDEO_IMX355 policy<{'arm64': 'm'}>
CONFIG_VIDEO_IMX412 policy<{'arm64': 'm'}>
CONFIG_VIDEO_IMX415 policy<{'arm64': 'm'}>
CONFIG_VIDEO_IMX681 policy<{'arm64': 'm'}>
CONFIG_VIDEO_IMX7_CSI policy<{'arm64': 'm'}>
CONFIG_VIDEO_IMX8MQ_MIPI_CSI2 policy<{'arm64': 'm'}>
CONFIG_VIDEO_IMX8_ISI policy<{'arm64': 'm'}>
Expand Down
11 changes: 11 additions & 0 deletions drivers/media/i2c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,17 @@ config VIDEO_IMX415
To compile this driver as a module, choose M here: the
module will be called imx415.

config VIDEO_IMX681
tristate "Sony IMX681 sensor support"
depends on OF_GPIO
select V4L2_CCI_I2C
help
This is a Video4Linux2 sensor driver for the Sony IMX681 camera.
It currently supports a 3840x2640 RAW10 C-PHY mode.

To compile this driver as a module, choose M here: the
module will be called imx681.

config VIDEO_MAX9271_LIB
tristate

Expand Down
1 change: 1 addition & 0 deletions drivers/media/i2c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ obj-$(CONFIG_VIDEO_IMX335) += imx335.o
obj-$(CONFIG_VIDEO_IMX355) += imx355.o
obj-$(CONFIG_VIDEO_IMX412) += imx412.o
obj-$(CONFIG_VIDEO_IMX415) += imx415.o
obj-$(CONFIG_VIDEO_IMX681) += imx681.o
obj-$(CONFIG_VIDEO_IR_I2C) += ir-kbd-i2c.o
obj-$(CONFIG_VIDEO_ISL7998X) += isl7998x.o
obj-$(CONFIG_VIDEO_KS0127) += ks0127.o
Expand Down
Loading