[2/2] libcamera: camera_sensor_properties: Add IMX363, S5K3M3 and S5KGD1
diff mbox series

Message ID 20261109-nura-sensors-v1-2-fd93505fe129@gmail.com
State New
Headers show
Series
  • Sensor support for the LG G8x ThinQ cameras
Related show

Commit Message

Gaurav Suman Nov. 9, 2026, 10:43 p.m. UTC
Add unit cell sizes, test pattern modes and sensor control delays for
the three sensors of the LG G8x ThinQ. Delays of two frames match the
behaviour observed with the simple pipeline handler.

Written with the help of an AI coding assistant (Claude Opus 5.5,
Anthropic); tested on the phone with the softisp IPA.

Signed-off-by: Gaurav Suman <gauravsuman007@gmail.com>
---
 src/libcamera/sensor/camera_sensor_properties.cpp | 42 +++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Patch
diff mbox series

diff --git a/src/libcamera/sensor/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp
index 20cfd0bc11a661f5cb432e4b6f1b4946cfbce756..18ce59e06bf9f43b75b7948f600a78434269d9b2 100644
--- a/src/libcamera/sensor/camera_sensor_properties.cpp
+++ b/src/libcamera/sensor/camera_sensor_properties.cpp
@@ -221,6 +221,20 @@  const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
 			},
 			.sensorDelays = { },
 		} },
+		{ "imx363", {	/* nura (LG G8x) */
+			.unitCellSize = { 1400, 1400 },
+			.testPatternModes = {
+				{ controls::draft::TestPatternModeOff, 0 },
+				{ controls::draft::TestPatternModeSolidColor, 1 },
+				{ controls::draft::TestPatternModeColorBars, 2 },
+			},
+			.sensorDelays = {
+				.exposureDelay = 2,
+				.gainDelay = 2,
+				.vblankDelay = 2,
+				.hblankDelay = 2
+			},
+		} },
 		{ "imx283", {
 			.unitCellSize = { 2400, 2400 },
 			.testPatternModes = {},
@@ -482,6 +496,34 @@  const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
 			},
 			.sensorDelays = { },
 		} },
+		{ "s5k3m3", {	/* nura (LG G8x) */
+			.unitCellSize = { 1000, 1000 },
+			.testPatternModes = {
+				{ controls::draft::TestPatternModeOff, 0 },
+				{ controls::draft::TestPatternModeSolidColor, 1 },
+				{ controls::draft::TestPatternModeColorBars, 2 },
+			},
+			.sensorDelays = {
+				.exposureDelay = 2,
+				.gainDelay = 2,
+				.vblankDelay = 2,
+				.hblankDelay = 2
+			},
+		} },
+		{ "s5kgd1", {	/* nura (LG G8x) */
+			.unitCellSize = { 1600, 1600 },
+			.testPatternModes = {
+				{ controls::draft::TestPatternModeOff, 0 },
+				{ controls::draft::TestPatternModeSolidColor, 1 },
+				{ controls::draft::TestPatternModeColorBars, 2 },
+			},
+			.sensorDelays = {
+				.exposureDelay = 2,
+				.gainDelay = 2,
+				.vblankDelay = 2,
+				.hblankDelay = 2
+			},
+		} },
 		{ "ov5693", {
 			.unitCellSize = { 1400, 1400 },
 			.testPatternModes = {