[PATCH v3 0/2] media: i2c: Add Samsung S5KJN5 image sensor
Wenmeng Liu <[email protected]> Thu, 06 Aug 2026 11:50:01 +0800
| Newsgroups | org.kernel.vger.linux-media,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
This series adds support for the Samsung S5KJN5, a 50 MP 10-bit RAW MIPI CSI-2 image sensor. This is implemented as a separate driver rather than extending the existing s5kjn1 driver. Although both sensors belong to the same family, they are different parts with different register maps and power supplies. Combining support for both devices in a single driver would result in very little shared code while introducing separate initialization and control paths, so keeping them as independent drivers is cleaner. Power Supplies: | Power Rail | S5KJN5 | S5KJN1 | |------------|--------|--------| | VDDD | 1.0 V | 1.0 V | | VDDA | 2.2 V | 2.8 V | | VDDIO | 1.8 V | 1.8 V | | VDDIO1p2 | 1.2 V | - | | VDDM | 1.0 V | - | Tested on the Qualcomm Hawi qrd board. --- Changes in v3: - Add vddm-supply to the regulator list. - Drop GBRG from Kconfig, file header and MODULE_DESCRIPTION. -- Vladimir - Compute pixel_rate at runtime from the link frequency instead of storing it in the mode. -- Vladimir - Split the init sequence into two tables around the 5 ms delay and drop the .delay_us field/handling. -- Vladimir - Remove unused v4l2_ctrl pointers and the unused <media/v4l2-device.h>. -- Vladimir - Move all control flag setting to the end of s5kjn5_init_controls(). -- Vladimir - Fix s_ctrl() to apply controls when CONFIG_PM is disabled (pm_runtime_get_if_active() returns -EINVAL). - Use S5KJN5_CHIP_ID in the init sequence; reword the clock-rate error; minor style fixes (reverse x-mas tree, ret init). - Link to v2: https://lore.kernel.org/r/[email protected] Changes in v2: - dt-bindings: drop the "T:" MAINTAINERS entry -- Krzysztof - Rename vdda2 -> vddio1p2; fix supply descriptions (vddio = 1.8 V VDD18, vddio1p2 = 1.2 V VDDIO12) -- Wenmeng - Link to v1: https://lore.kernel.org/r/[email protected] --- Wenmeng Liu (2): dt-bindings: media: i2c: Add Samsung S5KJN5 image sensor media: i2c: Add Samsung S5KJN5 image sensor driver .../bindings/media/i2c/samsung,s5kjn5.yaml | 117 + MAINTAINERS | 7 + drivers/media/i2c/Kconfig | 11 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/s5kjn5.c | 2848 ++++++++++++++++++++ 5 files changed, 2984 insertions(+) --- base-commit: b8809969e1d7a591e0f49dd464a5d04b3cf02ab1 change-id: 20260716-sk5jn5-be432bc99a98 Best regards, -- Wenmeng Liu <[email protected]>