From patchwork Wed Oct 7 16:08:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugues FRUCHET X-Patchwork-Id: 11820933 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7DE8214D5 for ; Wed, 7 Oct 2020 16:08:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 55756216C4 for ; Wed, 7 Oct 2020 16:08:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=st.com header.i=@st.com header.b="aDP3MLJJ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729067AbgJGQIm (ORCPT ); Wed, 7 Oct 2020 12:08:42 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:11194 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728177AbgJGQIl (ORCPT ); Wed, 7 Oct 2020 12:08:41 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 097FrQ8G004988; Wed, 7 Oct 2020 18:08:32 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=aZtohltui9FGlH6aAfSKwpgjGCik6ypAi07JSbtsLUs=; b=aDP3MLJJowXp1h5Fhd/NOnY6Oty/kl+iPJShXC2bjojTUOt6yBBWM1TnQWLj3PAoBhW0 tAW29yxXk0cwB5N9UY993oq6N8o1tJgcw1AiYvjNSwttRa8bGNC9RzGhCO/Q075IwS12 X1Igsedc/FcrNhl4Z4vvs6cL1//VYhqUQSnZaKF5TcPiAQiYO/a5We0CvKIR2l9vFtnW 3ti/JYgrKM+EG10ud67kkTE/wuSAVUlrzumbz8sQaFRe52A6ZjKVnVSlOvU4gWW2Zozt 5YKu0e3AEzVED0yymK133fRVMnAzKM2+dnxpBdhgrHUyuQmcx8J651qjPEK8d0BFo8H1 Wg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3402tjdubk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Oct 2020 18:08:32 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6AA2810002A; Wed, 7 Oct 2020 18:08:32 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag1node1.st.com [10.75.127.1]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5F29F2BA2C7; Wed, 7 Oct 2020 18:08:32 +0200 (CEST) Received: from localhost (10.75.127.44) by SFHDAG1NODE1.st.com (10.75.127.1) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 7 Oct 2020 18:08:32 +0200 From: Hugues Fruchet To: Alexandre Torgue , Mauro Carvalho Chehab , Hans Verkuil CC: , , , , Alain Volmat , Yannick Fertre , Philippe CORNU , Hugues Fruchet Subject: [PATCH] media: stm32-dcmi: add 8-bit Bayer formats support Date: Wed, 7 Oct 2020 18:08:25 +0200 Message-ID: <1602086905-9219-1-git-send-email-hugues.fruchet@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG3NODE1.st.com (10.75.127.7) To SFHDAG1NODE1.st.com (10.75.127.1) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-10-07_10:2020-10-06,2020-10-07 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Alain Volmat Add BA81, GBRG, GRBG, RGGB formats in the list of supported capture formats. Signed-off-by: Alain Volmat Acked-by: Hugues FRUCHET Reviewed-by: Philippe CORNU --- drivers/media/platform/stm32/stm32-dcmi.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/media/platform/stm32/stm32-dcmi.c b/drivers/media/platform/stm32/stm32-dcmi.c index fd1c41c..918b41d 100644 --- a/drivers/media/platform/stm32/stm32-dcmi.c +++ b/drivers/media/platform/stm32/stm32-dcmi.c @@ -1574,6 +1574,22 @@ static const struct dcmi_format dcmi_formats[] = { .fourcc = V4L2_PIX_FMT_JPEG, .mbus_code = MEDIA_BUS_FMT_JPEG_1X8, .bpp = 1, + }, { + .fourcc = V4L2_PIX_FMT_SBGGR8, + .mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8, + .bpp = 1, + }, { + .fourcc = V4L2_PIX_FMT_SGBRG8, + .mbus_code = MEDIA_BUS_FMT_SGBRG8_1X8, + .bpp = 1, + }, { + .fourcc = V4L2_PIX_FMT_SGRBG8, + .mbus_code = MEDIA_BUS_FMT_SGRBG8_1X8, + .bpp = 1, + }, { + .fourcc = V4L2_PIX_FMT_SRGGB8, + .mbus_code = MEDIA_BUS_FMT_SRGGB8_1X8, + .bpp = 1, }, };