Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8413684imu; Thu, 15 Nov 2018 11:07:31 -0800 (PST) X-Google-Smtp-Source: AJdET5dSa7Cq8X95fFkm5AQ3ZtcLpslszpR8bWOQw9NUdCcG8Y9C+56nbeB4oMLbKoJH3Wvtb7MY X-Received: by 2002:a17:902:a9c4:: with SMTP id b4mr7508643plr.298.1542308851916; Thu, 15 Nov 2018 11:07:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542308851; cv=none; d=google.com; s=arc-20160816; b=iNDEzmjCP8nwn36ttayY81SbQwknTpKQLyJRhM8KzlMXGgF+BTQTVvozjPTQBxw1aL bd1F8eHaQhx7vqytWXv0uIjvs2sx9+4dwblm9O4BfncAKvMIJa8wKnfkPr5O3wvz9Eng lQ1Enhx77fnae9AzxhFU29HyeGdt9Rcb216EXtrmKSTQEjrbx8rNb4uzB2yTbLpP00LQ o4UUrkoyPLCJ1XTEjAQHpwiNyaUX83ZEgpiRGumxajNLfSJeoqb+1VnE0DCm/hgi7i+H 0awoYNUAxoBKIwCRGoC/BWV8BMu4GtioEnUl9wajW9GCcH7gkYy0XZnaCrZixc2cKSra 1quA== 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=QL1w+6Gb+GzfOchUK6WpEVGMgvCuzBkTN7xg3MBqf+A=; b=uxv+9DpA0uceT5wXMeJof/5E3TT36D8PWwwBJm7vaicDT37B/Gz0FG24yGGwg9aDaN kSY1a7AIL+zaPwm2+iB7KHC7GnrEP0wood5Ki6wCTa7aft+dQXU1UaCZU8Y8zA5mwkaW musc/ifB6IsvTnQUHiZkTle0Fh7kFUuTWghcAhiyrpZWWMwn4Y8yr9A60kI2thMDGPB3 stMfY/KwxAJRnS2eqGN3WF3D1VhwS4rlX5CKem5gbArMrXw8zQpkRRLQukeECtDt6cI1 AXCyU9ZsG67ab0d9PWZYX1ydiIQG/Umo4AquMYvk3XKHdD3NvNu8+dZ06gu3HkiMrEwX sR8Q== 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 3-v6si7305433pli.346.2018.11.15.11.07.17; Thu, 15 Nov 2018 11:07:31 -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 S1726998AbeKPFN1 (ORCPT + 99 others); Fri, 16 Nov 2018 00:13:27 -0500 Received: from mail.bootlin.com ([62.4.15.54]:52271 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725741AbeKPFN1 (ORCPT ); Fri, 16 Nov 2018 00:13:27 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 8C6272084B; Thu, 15 Nov 2018 20:04:25 +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 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 5C11220714; Thu, 15 Nov 2018 20:04:25 +0100 (CET) Date: Thu, 15 Nov 2018 20:04:24 +0100 From: Maxime Ripard To: Sakari Ailus Cc: Hans Verkuil , Mauro Carvalho Chehab , Thomas Petazzoni , Laurent Pinchart , linux-media@vger.kernel.org, Andrzej Hajda , Chen-Yu Tsai , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Mark Rutland , Rob Herring , Frank Rowand Subject: Re: [PATCH 1/5] dt-bindings: media: Add Allwinner A10 CSI binding Message-ID: <20181115190424.gpuekifrjli5mu77@flea> References: <60494dd4245ab01473d074dc5cd46198a2181614.1542097288.git-series.maxime.ripard@bootlin.com> <20181113083855.s5jxrb32ru3myu3t@kekkonen.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="f37e5djwgbgmojp3" Content-Disposition: inline In-Reply-To: <20181113083855.s5jxrb32ru3myu3t@kekkonen.localdomain> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --f37e5djwgbgmojp3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Sakari, On Tue, Nov 13, 2018 at 10:38:55AM +0200, Sakari Ailus wrote: > > + - allwinner,has-isp: Whether the CSI controller has an ISP > > + associated to it or not >=20 > Is the ISP a part of the same device? It sounds like that this is actually > a different device if it contains an ISP as well, and that should be > apparent from the compatible string. What do you think? I guess we can see it as both. It seems to be the exact same register set, except for the fact that the first instance has that ISP in addition, and several channels, as you pointed out in your other mail. What these channels are is not exactly clear. It looks like it's related to the BT656 interface where you could interleave channel bytes over the bus. I haven't really looked into it, and it doesn't look like we have any code (or hardware) able to do that though. > > + > > +If allwinner,has-isp is set, an additional "isp" clock is needed, > > +being a phandle to the clock driving the ISP. > > + > > +The CSI node should contain one 'port' child node with one child > > +'endpoint' node, according to the bindings defined in > > +Documentation/devicetree/bindings/media/video-interfaces.txt. The > > +endpoint's bus type must be parallel or BT656. > > + > > +Endpoint node properties for CSI > > +--------------------------------- > > + > > +- remote-endpoint : (required) a phandle to the bus receiver's endpoint > > + node >=20 > Rob's opinion has been (AFAIU) that this is not needed as it's already a > part of the graph bindings. Unless you want to say that it's required, th= at > is --- the graph bindings document it as optional. Ok, I'll remove it. > > +- bus-width: : (required) must be 8 >=20 > If this is the only value the hardware supports, I don't see why you shou= ld > specify it here. Ditto :) > > +- pclk-sample : (optional) (default: sample on falling edge) > > +- hsync-active : (only required for parallel) > > +- vsync-active : (only required for parallel) > > + > > +Example: > > + > > +csi0: csi@1c09000 { > > + compatible =3D "allwinner,sun7i-a20-csi", > > + "allwinner,sun4i-a10-csi"; > > + reg =3D <0x01c09000 0x1000>; > > + interrupts =3D ; > > + clocks =3D <&ccu CLK_AHB_CSI0>, <&ccu CLK_CSI0>, > > + <&ccu CLK_CSI_SCLK>, <&ccu CLK_DRAM_CSI0>; > > + clock-names =3D "ahb", "mod", "isp", "ram"; > > + resets =3D <&ccu RST_CSI0>; > > + allwinner,csi-channels =3D <4>; > > + allwinner,has-isp; > > +=09 > > + port { > > + csi_from_ov5640: endpoint { > > + remote-endpoint =3D <&ov5640_to_csi>; > > + bus-width =3D <8>; > > + data-shift =3D <2>; >=20 > data-shift needs to be documented above if it's relevant for the device. It's not really related to the CSI device in that case but the sensor, so I'll just leave it out. Thanks! Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --f37e5djwgbgmojp3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCW+3DOAAKCRDj7w1vZxhR xc4LAP4qWgNQoIyi1KBkxAWejMjR0YpgCrt37hiunZiLN5pvvQEA3uqtaZw6cThN dk+hiwg40zcrvjhumNSCb7EMzbRjzQk= =IFrn -----END PGP SIGNATURE----- --f37e5djwgbgmojp3--