Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8418841imu; Thu, 15 Nov 2018 11:12:25 -0800 (PST) X-Google-Smtp-Source: AJdET5cPVmKKWtVaMICiRdljPxg8U+XkbLYa0Z5jvmuwuzTdvPeUbkgHwXlrbVcLdUGyDEtQMaa3 X-Received: by 2002:a62:5615:: with SMTP id k21-v6mr7622206pfb.190.1542309144970; Thu, 15 Nov 2018 11:12:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542309144; cv=none; d=google.com; s=arc-20160816; b=kjx0GcfHuItdmbAkUb6gccdG1oci8fd3YmKVMDvmxt2OXOO8whfOXBuRHdKPranqXF InSSs7Ra1DNYgHMEmeCHl+EjZEdH2o5PCv3HgQjNnnSU1nKIiL2GfEh9hctScEZq/VrA SBPZuNq+uKix/Q72QLOuI7TPfZ/EsmPMZJSoXfvIyGoVTrT1MYteG1QtPVXx9VL+sk/0 /4fB6C24CtfFRPq1UfolpkUuJ71UMwBBxoTQKK5drubTiesRpXNpQL5t7x1ttEcN92By K/Ov0YR6cJsLRS8VZvm2Y7kh1ZbEDZFKmNX4GeHkK5F2/qW3w5zVkIwaW+XvpvNtWl7B IdIw== 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=0NlZCX9iNzix1+WUd2iLuRgo/iToQ3VIlO5isVZk3m0=; b=YkNKpObPL1e7X7Aq7haYK1isMZMRW12YVDXBssMUQyKb7/cLic6yeC1B5vvi1gfr/1 CSzkoJmFgt2W4KqUiWB2Un6piSvs0Vmqu2FhCn9ExDmQMYcjYujKLsYmowO0JfBRv53t EhR8JrZrUo2xr9iGKkcYu6aIjLZFvn4HdlzpUa6zbT2/4nNq3RAoPDKxpolpTvCn9TtX JtFPckLZjz9IYUEp/QGch4grY0IztWK02MVuLXit2snfnteBXNgrivGIGDiWXVXKyw4T QCOjNg8XRVJPdByg0A4TJG/NGwzYqTY4f+I/VqrxXSkVbjv4corcJGMhJiekI5WjaMiB 9lBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 186-v6si30686262pfc.95.2018.11.15.11.12.09; Thu, 15 Nov 2018 11:12:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729208AbeKPFTf (ORCPT + 99 others); Fri, 16 Nov 2018 00:19:35 -0500 Received: from mail.bootlin.com ([62.4.15.54]:53075 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725742AbeKPFTe (ORCPT ); Fri, 16 Nov 2018 00:19:34 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 98F292084B; Thu, 15 Nov 2018 20:10:31 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.bootlin.com (Postfix) with ESMTPSA id 6A39820510; Thu, 15 Nov 2018 20:10:31 +0100 (CET) Date: Thu, 15 Nov 2018 20:10:31 +0100 From: Maxime Ripard To: Chen-Yu Tsai Cc: Hans Verkuil , Sakari Ailus , Mauro Carvalho Chehab , Thomas Petazzoni , Laurent Pinchart , Linux Media Mailing List , Andrzej Hajda , linux-kernel , linux-arm-kernel , devicetree , Mark Rutland , Rob Herring , Frank Rowand Subject: Re: [PATCH 0/5] media: Allwinner A10 CSI support Message-ID: <20181115191031.7jpb2g23fksof625@flea> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="i7rh5slrqsdzymby" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --i7rh5slrqsdzymby Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Nov 14, 2018 at 11:24:48AM +0800, Chen-Yu Tsai wrote: > On Tue, Nov 13, 2018 at 4:24 PM Maxime Ripard = wrote: > > Here is a series introducing the support for the A10 (and SoCs of the s= ame > > generation) CMOS Sensor Interface (called CSI, not to be confused with > > MIPI-CSI, which isn't support by that IP). > > > > That interface is pretty straightforward, but the driver has a few issu= es > > that I wanted to bring up: > > > > * The only board I've been testing this with has an ov5640 sensor > > attached, which doesn't work with the upstream driver. Copying the > > Allwinner init sequence works though, and this is how it has been > > tested. Testing with a second sensor would allow to see if it's an > > issue on the CSI side or the sensor side. > > * When starting a capture, the last buffer to capture will fail due to > > double buffering being used, and we don't have a next buffer for the > > last frame. I'm not sure how to deal with that though. It seems like > > some drivers use a scratch buffer in such a case, some don't care, = so > > I'm not sure which solution should be preferred. > > * We don't have support for the ISP at the moment, but this can be ad= ded > > eventually. > > > > * How to model the CSI module clock isn't really clear to me. It looks > > like it goes through the CSI controller and then is muxed to one of= the > > CSI pin so that it can clock the sensor. I'm not quite sure how to > > model it, if it should be a clock, the CSI driver being a clock > > provider, or if the sensor should just use the module clock directl= y. >=20 > Which clock are you talking about? MCLK? This seems to be fed directly fr= om > the CCU, as there doesn't seem to be controls for it within the CSI hardw= are > block, and the diagram doesn't list it either. IMO you don't have to mode= l it. > The camera sensor device node would just take a reference to it directly. Yeah, that what I went for, I guess we agree :) > You would probably enable the (separate) pinmux setting in the CSI > controller node. I'll change that. Thanks! Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --i7rh5slrqsdzymby Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCW+3EpwAKCRDj7w1vZxhR xay5AP0YIuMeE90TQHjAJ1bmsn3H3GyD9S7o46GGYjpDWeiDVAEA0LfACvVkvr4a UO4k+2DcRSF8um3oE1z73dhuaKYkJwk= =1sff -----END PGP SIGNATURE----- --i7rh5slrqsdzymby--