Received: by 2002:a25:4b06:0:0:0:0:0 with SMTP id y6csp9251yba; Tue, 26 May 2020 01:58:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhZOTFav3RCaJeKi/ul3L54JOOFIz6wJQC1rtWEzLXHQMvcX4wZIR5UEXMpq1MhU8YpL/e X-Received: by 2002:a50:d0d7:: with SMTP id g23mr19263450edf.163.1590483521791; Tue, 26 May 2020 01:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590483521; cv=none; d=google.com; s=arc-20160816; b=03UnPdPyQ6Zyn+iDc8nG/g1b/27EGEhGQhcl67WoOBfOxSBrgSqGabgZLy93upjbz7 MTB9qUi+d5R+Ih6jkWe4VC+apka2gjKZoE1inaCOD6mCSZZWZmG07ZF7P5v7lVK27kI0 di2QnIhKu1TSZpufCOap72ORyoVajH8j3/suluTaLnNNie4SLltmnbZOt/U/HvpAMXUM DgzeCyY6KPhxSsIRF+2J8vLepWm/IIesI+Wjc7GQyWZFxQWt1D0IvTy/8kv5VVmxpa1t FXfSSJw05rcNiYl7C51c6Qr6lfpT9nV9+KeYuH1X9mJcydzbgiANPxAR9oWPkEsfuhoP HpMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9aA1KDaYowtWuokPszBD9gfSnyp6HL2NwhbMDekxftQ=; b=aBTrceEqTxMC3nNPtMr2tyOqmJ3APXnuUNL9eFl02UG9vRR8Me4fQ8teQsDmeL6vWn ESYqVG5PuIuDiLYiFZm45C+s0WnzPtZ3z9GCVIMApoQvaak334UA8PEqu0/GkHOcR9Qv m+HxiOZP5Wo4dZvsyflvjRqiFcZ7t5ShISr7tHGIAhjfqvuUVcn3odxozbLkpQQRGfoH pYFEwx7LHtl2XK0oCTeAfW38KdAXm0C9Q/41Zj1r2eBj98f+aHMQ0d5WXtnUFhZZGJ+R Jr4a/NV0WIQ5NLEfrPBKH7SxshoCG/dslItiQY6pI6r1Rfp7Te1SFCpgsVcZ+vIeHk2o 08GA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si10515671edp.539.2020.05.26.01.58.16; Tue, 26 May 2020 01:58:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731618AbgEZIzk (ORCPT + 99 others); Tue, 26 May 2020 04:55:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731414AbgEZIzk (ORCPT ); Tue, 26 May 2020 04:55:40 -0400 Received: from hillosipuli.retiisi.org.uk (hillosipuli.retiisi.org.uk [IPv6:2a01:4f9:c010:4572::81:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBB98C03E97E; Tue, 26 May 2020 01:55:39 -0700 (PDT) Received: from valkosipuli.localdomain (valkosipuli.retiisi.org.uk [IPv6:2a01:4f9:c010:4572::80:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hillosipuli.retiisi.org.uk (Postfix) with ESMTPS id 3E902634C87; Tue, 26 May 2020 11:54:50 +0300 (EEST) Received: from sailus by valkosipuli.localdomain with local (Exim 4.92) (envelope-from ) id 1jdVMI-0002RU-AE; Tue, 26 May 2020 11:54:50 +0300 Date: Tue, 26 May 2020 11:54:50 +0300 From: Sakari Ailus To: Laurent Pinchart Cc: Kieran Bingham , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , Kieran Bingham , Jacopo Mondi , Niklas =?iso-8859-1?Q?S=F6derlund?= , Hans Verkuil , Hyun Kwon , Manivannan Sadhasivam , Rob Herring , Jacopo Mondi , Laurent Pinchart , Niklas =?iso-8859-1?Q?S=F6derlund?= Subject: Re: [PATCH v9 2/4] media: i2c: Add MAX9286 driver Message-ID: <20200526085450.GF8214@valkosipuli.retiisi.org.uk> References: <20200512155105.1068064-1-kieran.bingham+renesas@ideasonboard.com> <20200512155105.1068064-3-kieran.bingham+renesas@ideasonboard.com> <20200516215103.GA857@valkosipuli.retiisi.org.uk> <930009cd-d887-752a-4f1f-567c795101ee@ideasonboard.com> <20200520005020.GQ3820@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200520005020.GQ3820@pendragon.ideasonboard.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Laurent, On Wed, May 20, 2020 at 03:50:20AM +0300, Laurent Pinchart wrote: > Hi Sakari, > > On Mon, May 18, 2020 at 12:45:18PM +0100, Kieran Bingham wrote: > > Hi Sakari, > > > > There are only fairly minor comments here, fix ups will be included in a > > v10. > > > > Is there anything major blocking integration? > > > > On 16/05/2020 22:51, Sakari Ailus wrote: > > > On Tue, May 12, 2020 at 04:51:03PM +0100, Kieran Bingham wrote: > > > > > > ... > > > > > >> +static int max9286_enum_mbus_code(struct v4l2_subdev *sd, > > >> + struct v4l2_subdev_pad_config *cfg, > > >> + struct v4l2_subdev_mbus_code_enum *code) > > >> +{ > > >> + if (code->pad || code->index > 0) > > >> + return -EINVAL; > > >> + > > >> + code->code = MEDIA_BUS_FMT_UYVY8_2X8; > > > > > > Why UYVY8_2X8 and not UYVY8_1X16? In general, the single sample / pixel > > > variant of the format is generally used on the serial busses. This choice > > > was made when serial busses were introduced. > > This is a bit of a tricky one. On the camera size, for the RDACM20, the > O10635 sensor outputs UYVY8_2X8. This if fed to the MAX9271 serializer, > which doesn't care about the data type. The MAX9271 has a 16-bit input > bus, with 10 bits reserved for data, 2 bits dynamically configurable > to carry H/V sync or extra data, and 4 bits dynamically configurable to > carry GPIOs or extra data. The 16-bit words are then serialized (it's a > bit more complicated, when using the H/V sync signals they are > transmitted in a different way, and the MAX9271 also supports a DDR mode > that makes the "serial link word" carry up to 30 bits). Effectively, the > two samples of UYVY8_2X8 are serialized in a 16-bit word each. > > Sakari, with this information in mind, what would you recommend ? As this pad describes a serial bus --- doesn't it? --- it should use the same formats as other serial busses such as CSI-2. I.e. the 1X16 variant. -- Regards, Sakari Ailus