Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6187756imu; Tue, 13 Nov 2018 19:25:50 -0800 (PST) X-Google-Smtp-Source: AJdET5fJlX5PuxQ6LAgJ+oapmJR9cGTAWFDfQNiAAkWB2HqG3RnWINT7yHsh4PBMfqQ7N/1xJyHw X-Received: by 2002:a62:3c6:: with SMTP id 189-v6mr236169pfd.19.1542165950216; Tue, 13 Nov 2018 19:25:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542165950; cv=none; d=google.com; s=arc-20160816; b=NNZL2o9fCk11Ok/C+V2699K/XIZF5XEiI6NePEtqusGf1teuCtzy3yUuoaDkjUVPV7 DfhrQkOfGmFAyLyuhulkiJGGoKq7LG7EM0mnyIgbz8mpMuppjuUIVkKAqhB8ZgYpejII ibUKoPrr4jsehRTdZKxTf5qCPI2ud8c4ys6gZK2GBCzyGOo4fu82JJaW0FT0blRY6SJB LtKGZBCy1t0UJFtCewGvH7mUGW8eBvIFF7T3Fgm9EF6wn/zXdY6zw1dNU4KQIRIAW6bR vGeR3D6ncRWCKY4QDieRBHakUaGu2BikCADkTiF2fM9VHQvVa75VZu2Hry08fJu0hKgP 77rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=3JA6m1eBDfTjSl52PzXe/thhnHCjOGYCNpyCBUrTusg=; b=F5wP2ClaZjf54FMSUEJ9pz3s+KnDbyOpl5ygtf8EvHKce7kRiXcSWBYYyZVtSrkpGV yQ90Av7QGMUyrZ7YDRb1UFdIgmeqcOMrCXttyxAyPBzU+idRw8nJp4cxsQ7ACYh1NE1C qlvoAqHsgb4cjfj3YZ3nv90fZz9e/sqBMJ2jI6UNARfztYiaHLXK2bYy1a0+GrPX8k7+ 2XN/DvyvO6hDTryEC3DQjiisrDO8qvJ3l8om7RNiuSsuff5lrATz23z5Y1lYrYXpAf+U jlocHFi/x4cyCNX4n9MiCIm5Hp4hlTvM97Pa04Sn93rNj9Mc8J+4c1ir1kDfTz1j4aDN ykbQ== 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 w2si20883907pgs.264.2018.11.13.19.25.32; Tue, 13 Nov 2018 19:25:50 -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 S1731959AbeKNN03 (ORCPT + 99 others); Wed, 14 Nov 2018 08:26:29 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:40268 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727065AbeKNN02 (ORCPT ); Wed, 14 Nov 2018 08:26:28 -0500 Received: by mail-ed1-f65.google.com with SMTP id d3so11784271edx.7; Tue, 13 Nov 2018 19:25:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3JA6m1eBDfTjSl52PzXe/thhnHCjOGYCNpyCBUrTusg=; b=S6KhmGJDWfKBhL/FqI62xYdGlUy5xLM+epplSGA50Qwie0TjI/0DI/lwxQFc3K1uAv +gtIHhCwwfFwyKhQT8Ph0t7+Wsa6oK9lDbfXgvB0nFnoIR+5BxFDm+46evN00h6JtNoW EfxDkd1LoBPNySfp7xC+kOv2dRgCH7Jcc0+JOMWtEqc7vLo+NbM9RSoKprYU4hlbzQJi 2OOWfYbfWg2ZsPGITC42JDbhkYSuG/YbTL2RiXZ39+ZAf5l7th5QtByjaNk8yHVfmOL9 Z6eIZ8oNKJfx9J9alD9lWCZPbBoPaDCLBnUWtmgamjtDa3jWEY160a1lOkJUIRNxinM0 K/mg== X-Gm-Message-State: AGRZ1gL1fpKYHOZRYt4/FTl4umpc7VT5flQG2aNnH3mdW01xnUEWbdP8 eZ7ymAdcpth7NTcYvT9ncAZmeRgys6k= X-Received: by 2002:a17:906:3ed4:: with SMTP id d20-v6mr415069ejj.151.1542165909158; Tue, 13 Nov 2018 19:25:09 -0800 (PST) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com. [209.85.221.42]) by smtp.gmail.com with ESMTPSA id n34-v6sm6087801edc.34.2018.11.13.19.25.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 19:25:08 -0800 (PST) Received: by mail-wr1-f42.google.com with SMTP id y3-v6so15571687wrh.10; Tue, 13 Nov 2018 19:25:08 -0800 (PST) X-Received: by 2002:adf:ecc5:: with SMTP id s5-v6mr144885wro.208.1542165908230; Tue, 13 Nov 2018 19:25:08 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Chen-Yu Tsai Date: Wed, 14 Nov 2018 11:24:48 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/5] media: Allwinner A10 CSI support To: Maxime Ripard 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 13, 2018 at 4:24 PM Maxime Ripard wrote: > > Hi, > > Here is a series introducing the support for the A10 (and SoCs of the same > 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 issues > 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 added > 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 directly. Which clock are you talking about? MCLK? This seems to be fed directly from the CCU, as there doesn't seem to be controls for it within the CSI hardware block, and the diagram doesn't list it either. IMO you don't have to model it. The camera sensor device node would just take a reference to it directly. You would probably enable the (separate) pinmux setting in the CSI controller node. ChenYu