Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp754102rwo; Wed, 2 Aug 2023 03:48:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlEigLTsBXvEoLjWSu0Q2GxuxRB0+sVdo6iK8LQSvDsWqGxQhNkT7bRoX4CmRQ7MrE44IeVr X-Received: by 2002:a2e:9557:0:b0:2b6:d8e4:71b3 with SMTP id t23-20020a2e9557000000b002b6d8e471b3mr4890946ljh.21.1690973294031; Wed, 02 Aug 2023 03:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690973293; cv=none; d=google.com; s=arc-20160816; b=TCOEU4KRxmGwA2iYsVuMv9w1YuF0NPEUUt4gI0hDEYHGkgpax2QoeexeHxJQWlo75k pJf2SSeA1cI0CkjMXy77j57lwGsfwWPRoMV1kmXaYqVeLBDvbLBirAezpuo/dS9MCW+7 3wNijXQ8Iwx3+xaLAQoi2e00fiYq2OA/1u1zMjFN1xQx2gk20SQbeIua66U+tCpmZ9Hd 68MMF1gU+QrJy8bT86vzuyzGDcBlDzJHFtEYmOFKeW8Tp+KssDzmwoanVpOZwd/ft/W5 RJYXtBlkRI28ZPexJfmCMQ7kuj0W2nihV5PweZEgOF1i3r8fsbq3E7IcLvBDgCCFWa59 zq1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+5BS5W/vbAgpExogXfFdAPUeUUiFWdRvKSHNMai7Gl0=; fh=LroA/i1EM0DOjWSTFbQc0E4XLyK+5NHY20upRsJ5XaQ=; b=g96Te0XLRJr5r3h48MAt/kP/covYlhEDyVtXpCUR+KWB/840N/x2DRHujEAuyp6m0t iZotWsM4T5ZXgeqwvGd+/swmqsYYMR0vZOjc26YegpQ9fVWOpbpBM0ojuvfK7SRg95aC eTzG3iB66lBRaGK5nyEKFCD/Uvzs+vODaFt8HSLG5yJKp87cXzVgFceV/V2GGI/ZF9N1 L4a5i40cNyZdyQjJfW1Lrzg4dJxe19DshhWS10/lyfy03Ji/eWqH/BgGf2l2YvTQiont nGah8lDCbr2EJoVFXUIZMliWPSZXhnH/0WeSjh6Tc27FlTXlu7aonZZuW6w8WzMmx8yY tT+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=uySHVHN5; 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 e12-20020a170906374c00b0096f65c97148si9517902ejc.714.2023.08.02.03.47.48; Wed, 02 Aug 2023 03:48:13 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=uySHVHN5; 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 S233428AbjHBJrG (ORCPT + 99 others); Wed, 2 Aug 2023 05:47:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231171AbjHBJrF (ORCPT ); Wed, 2 Aug 2023 05:47:05 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1000D210D; Wed, 2 Aug 2023 02:46:54 -0700 (PDT) Received: from [192.168.88.20] (91-154-35-171.elisa-laajakaista.fi [91.154.35.171]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5039A2AC; Wed, 2 Aug 2023 11:45:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1690969549; bh=mWLrVrwIENQP6yWA740jG3Jkt4JmjdTN4/c8G9DqSSI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=uySHVHN5SHkxBg4EUtkJjR8WiiSPxy+vFXV3TL4W/jLBDWIYLH41f/KbGr8snh/Ev QvSKJBHF5CRIsybGJ2mgpA15oPU/eI359SFrIIDFHW2GuNr5hgB26ds6TC3MWEc90h yiWn8x5hopHZdzBdFenMQR/uPYvmu0H9POvuXw5Q= Message-ID: <96a8ca70-9957-bb4f-088c-c0895a9e7347@ideasonboard.com> Date: Wed, 2 Aug 2023 12:46:48 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v8 14/16] media: cadence: csi2rx: Support RAW8 and RAW10 formats Content-Language: en-US To: Jai Luthra , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sakari Ailus , Laurent Pinchart Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mauro Carvalho Chehab , Maxime Ripard , niklas.soderlund+renesas@ragnatech.se, Benoit Parrot , Vaishnav Achath , Vignesh Raghavendra , nm@ti.com, devarsht@ti.com References: <20230731-upstream_csi-v8-0-fb7d3661c2c9@ti.com> <20230731-upstream_csi-v8-14-fb7d3661c2c9@ti.com> From: Tomi Valkeinen In-Reply-To: <20230731-upstream_csi-v8-14-fb7d3661c2c9@ti.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On 31/07/2023 11:29, Jai Luthra wrote: > Many CSI-2 sensors (specifically IMX219) send RAW bayer data instead of > processed YUV or RGB, so add support for 8-bit and 10-bit bayer formats. > > Signed-off-by: Jai Luthra > --- > New in v8 > > drivers/media/platform/cadence/cdns-csi2rx.c | 32 ++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c b/drivers/media/platform/cadence/cdns-csi2rx.c > index aec33d28a66f..bac74474841a 100644 > --- a/drivers/media/platform/cadence/cdns-csi2rx.c > +++ b/drivers/media/platform/cadence/cdns-csi2rx.c > @@ -122,6 +122,38 @@ static const struct csi2rx_fmt formats[] = { > .code = MEDIA_BUS_FMT_VYUY8_1X16, > .bpp = 16, > }, > + { > + .code = MEDIA_BUS_FMT_SBGGR8_1X8, > + .bpp = 8, > + }, > + { > + .code = MEDIA_BUS_FMT_SGBRG8_1X8, > + .bpp = 8, > + }, > + { > + .code = MEDIA_BUS_FMT_SGRBG8_1X8, > + .bpp = 8, > + }, > + { > + .code = MEDIA_BUS_FMT_SRGGB8_1X8, > + .bpp = 8, > + }, > + { > + .code = MEDIA_BUS_FMT_SBGGR10_1X10, > + .bpp = 10, > + }, > + { > + .code = MEDIA_BUS_FMT_SGBRG10_1X10, > + .bpp = 10, > + }, > + { > + .code = MEDIA_BUS_FMT_SGRBG10_1X10, > + .bpp = 10, > + }, > + { > + .code = MEDIA_BUS_FMT_SRGGB10_1X10, > + .bpp = 10, > + }, > }; > > static const struct csi2rx_fmt *csi2rx_get_fmt_by_code(u32 code) > Reviewed-by: Tomi Valkeinen Tomi