From: Armandas Kvietkus via B4 Relay <devnull+armandas.kvietkus.proton.me@kernel.org>
To: Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Armandas Kvietkus <armandas.kvietkus@proton.me>
Subject: [PATCH v3 0/2] media: i2c: Samsung S5K3T2 image sensor
Date: Thu, 24 Sep 2026 07:46:50 +0200 [thread overview]
Message-ID: <20260924-upstream-s5k3t2-v3-0-a5c58dfcec29@proton.me> (raw)
This series adds a binding and a driver for the Samsung S5K3T2, a
20 Mpixel CMOS image sensor with four MIPI D-PHY lanes.
The sensor is the front camera of the Xiaomi POCO F3. That phone has no
device tree in mainline, so this series adds no user for the binding.
The driver was written and tested on the phone with the Qualcomm CAMSS
driver.
Tested:
v4l2-compliance on the sensor sub-device, 46 tests, 46 passed
capture in all three modes, eleven runs, no kernel error
the sensor returns to runtime suspend after every run
exposure and gain sweeps checked on the captured frames
Bayer order checked for both flips
Signed-off-by: Armandas Kvietkus <armandas.kvietkus@proton.me>
---
Changes in v3:
- The check on pm_runtime_get_if_active() is back to the form used by
every other sensor driver. The v2 form skipped the register write when
the helper returned an error, so a kernel built without CONFIG_PM never
applied exposure, gain, blanking or the test pattern.
- The binding now requires clocks and the three supplies. The driver does
not probe without the clock, and the sensor needs all three rails.
- Link to v2: https://patch.msgid.link/20260923-upstream-s5k3t2-v2-0-04ffda3350c1@proton.me
Changes in v2:
- set_pad_format() now stores the new mode before it updates the
controls. The VBLANK handler reads the mode, so it used to program the
frame length from the mode that was active before the call.
- A negative return from pm_runtime_get_if_active() is no longer read as
active. Runtime PM can be disabled for the device, and in that case the
usage count is not taken, so the old code could drop a count it never
took.
- The PM ops use RUNTIME_PM_OPS() with pm_ptr(), so the ops and the power
callbacks are dropped when CONFIG_PM is not set.
- Link to v1: https://patch.msgid.link/20260920-upstream-s5k3t2-v1-0-d640740f4013@proton.me
---
Armandas Kvietkus (2):
dt-bindings: media: i2c: Add Samsung S5K3T2 image sensor
media: i2c: Add Samsung S5K3T2 image sensor driver
.../bindings/media/i2c/samsung,s5k3t2.yaml | 105 ++
MAINTAINERS | 8 +
drivers/media/i2c/Kconfig | 10 +
drivers/media/i2c/Makefile | 1 +
drivers/media/i2c/s5k3t2.c | 1360 ++++++++++++++++++++
5 files changed, 1484 insertions(+)
---
base-commit: 518e5b794c06c0f0eb40df3e202274a66202c137
change-id: 20260920-upstream-s5k3t2-23b33dab0315
Best regards,
--
Armandas Kvietkus <armandas.kvietkus@proton.me>
next reply other threads:[~2026-09-24 5:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-24 5:46 Armandas Kvietkus via B4 Relay [this message]
2026-09-24 5:46 ` [PATCH v3 1/2] dt-bindings: media: i2c: Add " Armandas Kvietkus via B4 Relay
2026-09-24 17:22 ` Conor Dooley
2026-09-24 5:46 ` [PATCH v3 2/2] media: i2c: Add Samsung S5K3T2 image sensor driver Armandas Kvietkus via B4 Relay
2026-10-01 7:19 ` Sakari Ailus
2026-10-01 18:36 ` armandas.kvietkus
2026-10-01 18:41 ` Elgin Perumbilly
2026-10-03 8:27 ` armandas.kvietkus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260924-upstream-s5k3t2-v3-0-a5c58dfcec29@proton.me \
--to=devnull+armandas.kvietkus.proton.me@kernel.org \
--cc=armandas.kvietkus@proton.me \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=robh@kernel.org \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®