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

title: Samsung S5KJN5 Image Sensor

description:
Samsung S5KJN5 is a 50MP GBRG 10-bit RAW MIPI CSI-2 image sensor.
The sensor is controlled over I2C. The full resolution pixel array is
8192x6144, data output format is RAW10 transferred over 4-lane MIPI
D-PHY interface.

maintainers:
- Wenmeng Liu <wenmeng.liu@oss.qualcomm.com>

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

properties:
compatible:
const: samsung,s5kjn5

reg:
maxItems: 1

clocks:
description: MCLK/XVCLK input clock.
maxItems: 1

reset-gpios:
description: Active low GPIO connected to RESET pad of the sensor.
maxItems: 1

vddio-supply:
description:
1.8 volt I/O voltage supply (VDD18). Required for both 1.8 and 1.2 volt
I/O operation.

vddd-supply:
description: Digital core voltage supply, 1.0 volts.

vdda-supply:
description: Analogue voltage supply, 2.2 volts.

vddio1p2-supply:
description:
1.2 volt I/O voltage supply (VDDIO12). Required only for 1.2 volt I/O
operation.

afvdd-supply:
description: Autofocus actuator voltage supply, 2.8-3.0 volts.

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

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

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

required:
- link-frequencies

required:
- compatible
- reg
- clocks
- port

unevaluatedProperties: false

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

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

camera@10 {
compatible = "samsung,s5kjn5";
reg = <0x10>;
clocks = <&camera_mclk 0>;
assigned-clocks = <&camera_mclk 0>;
assigned-clock-rates = <19200000>;
reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
vddio-supply = <&vreg_1p8>;
vddd-supply = <&vreg_1p0>;
vdda-supply = <&vreg_2p2>;
vddio1p2-supply = <&vreg_1p2>;
afvdd-supply = <&vreg_2p8>;

port {
endpoint {
link-frequencies = /bits/ 64 <1248000000>;
data-lanes = <1 2 3 4>;
remote-endpoint = <&mipi_csi2_ep>;
};
};
};
};
...
7 changes: 7 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -24121,6 +24121,13 @@ T: git git://linuxtv.org/media_tree.git
F: Documentation/devicetree/bindings/media/i2c/samsung,s5kjn1.yaml
F: drivers/media/i2c/s5kjn1.c

SAMSUNG S5KJN5 CAMERA DRIVER
M: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com>
L: linux-media@vger.kernel.org
S: Supported
F: Documentation/devicetree/bindings/media/i2c/samsung,s5kjn5.yaml
F: drivers/media/i2c/s5kjn5.c

SAMSUNG S5P Security SubSystem (SSS) DRIVER
M: Krzysztof Kozlowski <krzk@kernel.org>
M: Vladimir Zapolskiy <vz@mleia.com>
Expand Down
11 changes: 11 additions & 0 deletions drivers/media/i2c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,17 @@ config VIDEO_S5KJN1
To compile this driver as a module, choose M here: the
module will be called s5kjn1.

config VIDEO_S5KJN5
tristate "Samsung S5KJN5 sensor support"
depends on GPIOLIB
select V4L2_CCI_I2C
help
This is a V4L2 sensor driver for Samsung S5KJN5 50MP GBRG
10-bit RAW MIPI CSI-2 camera sensor.

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

config VIDEO_T4KA3
tristate "Toshiba T4KA3 sensor support"
depends on ACPI || COMPILE_TEST
Expand Down
1 change: 1 addition & 0 deletions drivers/media/i2c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ obj-$(CONFIG_VIDEO_S5K3M5) += s5k3m5.o
obj-$(CONFIG_VIDEO_S5K5BAF) += s5k5baf.o
obj-$(CONFIG_VIDEO_S5K6A3) += s5k6a3.o
obj-$(CONFIG_VIDEO_S5KJN1) += s5kjn1.o
obj-$(CONFIG_VIDEO_S5KJN5) += s5kjn5.o
obj-$(CONFIG_VIDEO_SAA6588) += saa6588.o
obj-$(CONFIG_VIDEO_SAA6752HS) += saa6752hs.o
obj-$(CONFIG_VIDEO_SAA7110) += saa7110.o
Expand Down
Loading
Loading