From patchwork Tue Oct 12 11:39:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dorota Czaplejewicz X-Patchwork-Id: 14107 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 5056DC323E for ; Tue, 12 Oct 2021 11:40:09 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C404A68F4D; Tue, 12 Oct 2021 13:40:08 +0200 (CEST) Received: from comms.puri.sm (comms.puri.sm [159.203.221.185]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C46FB68F4C for ; Tue, 12 Oct 2021 13:40:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id B84EDDF912; Tue, 12 Oct 2021 04:40:04 -0700 (PDT) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SG8vxTG-73oh; Tue, 12 Oct 2021 04:40:04 -0700 (PDT) From: Dorota Czaplejewicz To: libcamera-devel@lists.libcamera.org Date: Tue, 12 Oct 2021 11:39:46 +0000 Message-Id: <20211012113946.484914-1-dorota.czaplejewicz@puri.sm> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: Add Samsung S5K3L6XX sensor support X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dorota Czaplejewicz Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The sensor is called s5k3l6xx in the kernel. The driver is currently out of tree and maintained by Purism. It's the main camera sensor on the Librem 5. Signed-off-by: Dorota Czaplejewicz --- src/libcamera/camera_sensor_properties.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp index 48305ac4..0625a0d8 100644 --- a/src/libcamera/camera_sensor_properties.cpp +++ b/src/libcamera/camera_sensor_properties.cpp @@ -134,6 +134,19 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen { controls::draft::TestPatternModeColorBars, 1 }, }, } }, + { "s5k3l6xx", { + .unitCellSize = { 1120, 1120 }, + .testPatternModes = { + { 0, controls::draft::TestPatternModeOff }, + { 1, controls::draft::TestPatternModeSolidColor }, + { 2, controls::draft::TestPatternModeColorBars }, + { 3, controls::draft::TestPatternModeColorBarsFadeToGray }, + { 4, controls::draft::TestPatternModeCustom1 }, /* White */ + { 5, controls::draft::TestPatternModePn9 }, + { 6, controls::draft::TestPatternModeCustom1 + 1 }, /* LFSR32 */ + { 7, controls::draft::TestPatternModeCustom1 + 2 }, /* Address */ + }, + } }, }; const auto it = sensorProps.find(sensor);