From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8CDF3368AB for ; Thu, 9 Apr 2026 20:15:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775765724; cv=none; b=DQRjlGP/in2ivE9Tu0b54Bll9gYsXtk8CaqLSlJjmfZgUVgkzRRYRisX6g7RIiI+mNexT79QEKWHTQPdqYDCoz46EmHeqR4ircPIjcKrPPVSOa46+pVZV5vMni0HRa9RvDOyZrtg+frHJy5h7h0M/e3XOEfFEHnd7yFS7mDncr0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775765724; c=relaxed/simple; bh=q236kfDg1SuG2WQW/HZDuxA5/zkr8x5WrVyzQLM2MgE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Cgs2w7V2xJoQQhI7cZRMQThhEp4vbPeDUttcA+CRNX1Oqj5Y6Mqt/TUcJOi8/mQ4y9ILgVK5lSGTB9JapKBqMkAXXWg1hHk1kfF4hBm9srnULJ33kGpGeoDkU29g74r2CcySGtLIf53VvutpzB98uOhvg9ew93HwXl4sGPt8xtI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=LHcxgrPP; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LHcxgrPP" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1775765723; x=1807301723; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=q236kfDg1SuG2WQW/HZDuxA5/zkr8x5WrVyzQLM2MgE=; b=LHcxgrPP2U+sWnBj8mgCDzk1+lsGTd/cjXQv7yNC7KWIxRqfvAvYOpto S6xaNCRGQkLUZEARMqkQ48p2h7ZAlLwLD3vQkaxYyKDn26uaCzT2s8Hq6 WYRRu6Fe8pOjGdCT385IZENQn2r3UzcuCvKZJhnqKuFNr2QaN6NGTtXoU hcND0Sn5rFlfGhqBIo8POXPhKFTu+6LgX/c87Td5oV/xIRwhkz+loNAT2 wkR0ThwLEjHiMjMvH0aZgPBbabV2rKFmEFP26h1MtrjWW18VGSFZEGQxX ueBWZ8DSM7TYJ45B4CrKNjDvvoYGAidX/9m5hiMNPW9A63a/FWn/s1M0t w==; X-CSE-ConnectionGUID: Jf+957tpQ5mouyzw+cURuw== X-CSE-MsgGUID: AJtjf5nzTsm6GYmCcVz/IA== X-IronPort-AV: E=McAfee;i="6800,10657,11754"; a="87408922" X-IronPort-AV: E=Sophos;i="6.23,170,1770624000"; d="scan'208";a="87408922" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2026 13:15:16 -0700 X-CSE-ConnectionGUID: 4MvF2F2qQROApjEUEdb4Fw== X-CSE-MsgGUID: sw1cbT/HSyS1eK7UexR0RQ== X-ExtLoop1: 1 Received: from dalessan-mobl3.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.244.29]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2026 13:15:11 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 81E7E122142; Thu, 09 Apr 2026 23:15:03 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1wAvmI-000000045ql-49En; Thu, 09 Apr 2026 23:15:02 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-media@vger.kernel.org Cc: hans@jjverkuil.nl, laurent.pinchart@ideasonboard.com, Prabhakar , Kate Hsuan , Dave Stevenson , Tommaso Merciai , Benjamin Mugnier , Sylvain Petinot , Christophe JAILLET , Julien Massot , Naushir Patuck , Stefan Klug , Mirela Rabulea , =?UTF-8?q?Andr=C3=A9=20Apitzsch?= , Heimir Thor Sverrisson , Kieran Bingham , Mehdi Djait , Ricardo Ribalda Delgado , Hans de Goede , Jacopo Mondi , Tomi Valkeinen , David Plowman , "Yu, Ong Hock" , "Ng, Khai Wen" , Jai Luthra , Rishikesh Donadkar Subject: [PATCH v12 86/86] media: bcm2835-unicam: Support generic raw formats Date: Thu, 9 Apr 2026 23:15:01 +0300 Message-ID: <20260409201501.975242-87-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260409201501.975242-1-sakari.ailus@linux.intel.com> References: <20260409201501.975242-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add support for 8-bit unpacked and 10-, 12- and 14-bit packed generic raw formats. Signed-off-by: Sakari Ailus --- .../media/platform/broadcom/bcm2835-unicam.c | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/media/platform/broadcom/bcm2835-unicam.c b/drivers/media/platform/broadcom/bcm2835-unicam.c index 38afdf5a32ba..74a6c4820a67 100644 --- a/drivers/media/platform/broadcom/bcm2835-unicam.c +++ b/drivers/media/platform/broadcom/bcm2835-unicam.c @@ -452,6 +452,33 @@ static const struct unicam_format_info unicam_image_formats[] = { .csi_dt = MIPI_CSI2_DT_RAW14, .unpack = UNICAM_PUM_UNPACK14, }, { + /* Generic raw formats */ + .fourcc = V4L2_PIX_FMT_RAW_8, + .code = MEDIA_BUS_FMT_RAW_8, + .depth = 8, + .csi_dt = MIPI_CSI2_DT_RAW8, + }, { + .fourcc = V4L2_PIX_FMT_RAW_CSI2_10, + .unpacked_fourcc = V4L2_PIX_FMT_RAW_16, + .code = MEDIA_BUS_FMT_RAW_10, + .depth = 10, + .csi_dt = MIPI_CSI2_DT_RAW10, + .unpack = UNICAM_PUM_UNPACK10, + }, { + .fourcc = V4L2_PIX_FMT_RAW_CSI2_12, + .unpacked_fourcc = V4L2_PIX_FMT_RAW_16, + .code = MEDIA_BUS_FMT_RAW_12, + .depth = 12, + .csi_dt = MIPI_CSI2_DT_RAW12, + .unpack = UNICAM_PUM_UNPACK12, + }, { + .fourcc = V4L2_PIX_FMT_RAW_CSI2_14, + .unpacked_fourcc = V4L2_PIX_FMT_RAW_16, + .code = MEDIA_BUS_FMT_RAW_14, + .depth = 14, + .csi_dt = MIPI_CSI2_DT_RAW14, + .unpack = UNICAM_PUM_UNPACK14, + }, { /* 16 bit Bayer formats could be supported. */ /* Greyscale formats */ -- 2.47.3