Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3087812iob; Mon, 16 May 2022 12:48:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7kKciTejDjiPnLqXGJXs5Q8d2iYTvXx5ISYG1337EdYT/HIaDZybH5PV+BrXpFL6qBlcG X-Received: by 2002:a17:906:478f:b0:6f3:d0b7:b254 with SMTP id cw15-20020a170906478f00b006f3d0b7b254mr16430608ejc.562.1652730504116; Mon, 16 May 2022 12:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652730504; cv=none; d=google.com; s=arc-20160816; b=08zcGfom74v87tsFtAzUb3eDoOp0e2JXVTnB6x/2Dwlze5SZIaB8Mprl5sKohPpxoH LTe1kqGHuxElQTJ+VAn/LAmaWM2ABYvyAclbK5DVtvwz5ms/EjwqARsueVdNB2aW0rvo /skSWN9NbVoWj48D+MXHDVrEAGc4Wyj6gPaAjLfVhNTGM+Ix43o+SOHLvxFVTDBHWJAj b0rhtE0gxzvamh/tJ+E9ittXScB/7i+WeOZliAwo3BZ4w6u013HKY4lzWjueh8wfgdqP jvpXpNgt8KYURAc2n8gUS0vKJhZF3kLMAjRfe4l553WKTOvbecVI0oR107wFOCUbp7SD I/hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=9bQw0WwChoMF8yL1zQqAtYwU6xWIxGK4cdMhhEIYKUg=; b=qemLmrlSXHk24mfTHx9bDgPQQ+N6SZUHs+2J1elhOwKE+Ey8Lyvu4d8NOTHZEZp+Ff pa55X737pGAFvQ7BrNj0hwrvEyPbfLEjZw0//U3pZD3B138JtBAglweLumNPohm9BepK QwveAH/aO5oPSMvQ9Xezl8OwY5zjPDATVCPJWtJPBFMm8P0XkOPQhV9/XfRk8jquWB7y kuVp0/6FbtO+pAtwRbk/9O83pDZOM6PUBH1VpRTd6OBx3sruIlYTILQoNg/P1ZYhfYkZ ZQoWo8mpp6CknXCBxPxh0G/C+6ONK/HasENIbxZgmzfHPa1AOk2TAQq7D8zomYFi4kv4 apag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x17-20020a05640226d100b0041d78bfa518si12824944edd.194.2022.05.16.12.47.58; Mon, 16 May 2022 12:48:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244872AbiEPPDG (ORCPT + 99 others); Mon, 16 May 2022 11:03:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244869AbiEPPCs (ORCPT ); Mon, 16 May 2022 11:02:48 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CCC83B3F7; Mon, 16 May 2022 08:02:46 -0700 (PDT) Received: (Authenticated sender: jacopo@jmondi.org) by mail.gandi.net (Postfix) with ESMTPSA id BBC79FF807; Mon, 16 May 2022 15:02:39 +0000 (UTC) Date: Mon, 16 May 2022 17:02:37 +0200 From: Jacopo Mondi To: Hugues Fruchet , Sakari Ailus Cc: Alexandre Torgue , Mauro Carvalho Chehab , Hans Verkuil , Sakari Ailus , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Alain Volmat , Yannick Fertre , Philippe CORNU Subject: Re: [PATCH] media: stm32-dcmi: add support of 1X16 serial pixel formats variant Message-ID: <20220516150237.v3xt7onp2lpmellw@uno.localdomain> References: <20220516092048.264036-1-hugues.fruchet@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220516092048.264036-1-hugues.fruchet@foss.st.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hugues, On Mon, May 16, 2022 at 11:20:48AM +0200, Hugues Fruchet wrote: > From: Hugues Fruchet > > Add support of 1X16 serial pixel formats in order to support > CSI-2 camera sensor exposing 1x16 pixel formats only. > > Signed-off-by: Hugues Fruchet Reviewed-by: Jacopo Mondi Sakari, if you're sending a new pull request for the ov5640 series, could you include this one as otherwise dcmi would be broken when used with that sensor. Thanks j > --- > drivers/media/platform/st/stm32/stm32-dcmi.c | 18 ++++++++++++------ > 1 file changed, 12 insertions(+), 6 deletions(-) > > diff --git a/drivers/media/platform/st/stm32/stm32-dcmi.c b/drivers/media/platform/st/stm32/stm32-dcmi.c > index 09a743cd7004..b2ba4d95bfa3 100644 > --- a/drivers/media/platform/st/stm32/stm32-dcmi.c > +++ b/drivers/media/platform/st/stm32/stm32-dcmi.c > @@ -1592,25 +1592,31 @@ static int dcmi_set_default_fmt(struct stm32_dcmi *dcmi) > return 0; > } > > -/* > - * FIXME: For the time being we only support subdevices > - * which expose RGB & YUV "parallel form" mbus code (_2X8). > - * Nevertheless, this allows to support serial source subdevices > - * and serial to parallel bridges which conform to this. > - */ > static const struct dcmi_format dcmi_formats[] = { > { > .fourcc = V4L2_PIX_FMT_RGB565, > .mbus_code = MEDIA_BUS_FMT_RGB565_2X8_LE, > .bpp = 2, > + }, { > + .fourcc = V4L2_PIX_FMT_RGB565, > + .mbus_code = MEDIA_BUS_FMT_RGB565_1X16, > + .bpp = 2, > }, { > .fourcc = V4L2_PIX_FMT_YUYV, > .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8, > .bpp = 2, > + }, { > + .fourcc = V4L2_PIX_FMT_YUYV, > + .mbus_code = MEDIA_BUS_FMT_YUYV8_1X16, > + .bpp = 2, > }, { > .fourcc = V4L2_PIX_FMT_UYVY, > .mbus_code = MEDIA_BUS_FMT_UYVY8_2X8, > .bpp = 2, > + }, { > + .fourcc = V4L2_PIX_FMT_UYVY, > + .mbus_code = MEDIA_BUS_FMT_UYVY8_1X16, > + .bpp = 2, > }, { > .fourcc = V4L2_PIX_FMT_JPEG, > .mbus_code = MEDIA_BUS_FMT_JPEG_1X8, > -- > 2.25.1 >