Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2199266imm; Tue, 2 Oct 2018 23:25:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV60m3dDNss7w3RRcUuUeWRM+r7gWGuEk6w2F4U0utpzJ4d6DrpCbAc+eOB8gdCJd/IyV1W04 X-Received: by 2002:a62:8d16:: with SMTP id z22-v6mr19719695pfd.185.1538547935154; Tue, 02 Oct 2018 23:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538547935; cv=none; d=google.com; s=arc-20160816; b=xxl8/BmAt3kYiA4a4nuc+0TJxb2HMIuHgGcFRRMXKguJd6t858/cCfv7DnS1hoaM6E OmEqw0mRKwDzrachJqY12jn6SX5p8Cg7O8/wnXrW8wsHiOyosQt8QPyd9+mjxxCZ+z5d P9NQq7t5hQaKYXArRnr7y2V1bmKw+gmgTqNX+KbfxZPGChkxRTFpnnM0v6eQ6xOd85y5 UVuJCoVgy+kNRZVAE8Xb1Wd40NDKLnUOeK6ceuB67woQDvqTRBi1lLUqd3QurT5qGVzz cxqvxAcOgMFk7iywWom1HTBrze5CbUte/P58azZuLOYtFo5t9CP9qKIC+3oS55N/s+6o 6CMg== 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:dkim-signature; bh=5cZVfVofriWFxD9uNKwHCQCrWn6uLl0K9NmlAANG6Ns=; b=hIiXCMX4Wm+QWLoZN9d1cKyuEv8Ko9lXkVF0Lt3gpIhPMJTqPnVhgawzfWelpZZMq6 utY+3VXQgxnYJElYYnsiMrL1iq/0ufuBgLQZeBEN7mPjDZPzP9rglERRG8WnfptS39mp ub4HHqNWbnroF8P+bcJfYlhPltWNYCs9G/ozv2EMH7gIwq7lENOGLXFlirIbWrw4CmUQ GZebwdBTAFG6qsL87QGt7GFsV72um/796+UgZZIV4UuqAE+byEiZeVDcWMnDRf1kMzfO H0w6dZE0cHssQh39djw7LFoie+a1EyC/RC3eaDqSayhPKnWidtGRQEoWeVdUKnucF+LC eKUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QIJQkXWX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4-v6si477350plj.321.2018.10.02.23.25.20; Tue, 02 Oct 2018 23:25:35 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QIJQkXWX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726989AbeJCNK7 (ORCPT + 99 others); Wed, 3 Oct 2018 09:10:59 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:42944 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726619AbeJCNK6 (ORCPT ); Wed, 3 Oct 2018 09:10:58 -0400 Received: by mail-lj1-f196.google.com with SMTP id y71-v6so3963119lje.9; Tue, 02 Oct 2018 23:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5cZVfVofriWFxD9uNKwHCQCrWn6uLl0K9NmlAANG6Ns=; b=QIJQkXWX2KV3FBgwSMJXh/Ykwie9By9gxNbrinqxRsJlA8H34yokG/ZdazQdw3Xc56 0pPCTDMofpa5vyrb+Y3nopXwT28+MJ4sbS7BG+vTHkbg7TvIwy5vF8Jqmnx7I20VXrV2 PICtK+A1JJ4mMdnnqC2Bh4VHqGF6rdkd2pXmB3dgXo216ptHTW2zGhJvL3XOraLf8HMl 6nozotOE+cMW6Oc+ibLwY+QLE06mBYfbuOqH/KfWP0P+Maci5VrR/ZI29pPq/8Hp4rmf uWzeHJS1T/F734gUa3gxKmDVbptpu0quMHIe3AtPZanfDHLlUdxt4UMy63TxtkN95m/k 0nQQ== 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=5cZVfVofriWFxD9uNKwHCQCrWn6uLl0K9NmlAANG6Ns=; b=Mti1gLUSnsDKgm9ASdcu7xXqb3vWNVA0Xwl0+m1riWESQdu/5iW6N05nwVF38dMPzm v+VZ6f1SgGrr2rQXxZvAXwCw5wVARgTFZMbfRYQuG2Ft69QCCuUbbBgSHOw7MNOC5pNA BekLrpjGMtXIqAoXQhLk3cS5GtFPO8yi8f6w5eMApe4zgyYLadCs9ikpeEGSmhwQOh77 Y8sucvwPphhtzd94pCR0ufAcG/Qms9Qn0mIZhGt1GuxPTNiLw7skqM2wkUFfYgo0mjcr fYYZ0AA6N2CSJBvqUSIwSvlpE4HAM0ivte1cw3IAW6I7bzUf/Q3rNsLMJAF4T0RtweJq npEw== X-Gm-Message-State: ABuFfoi+/GiR+fr/zlG60lNeQcXbMuUQ1FK3anspfLD7GJWws8B/9mnD wF2pR35Uhbpkzdy+PLqxzHX9/KIJ7DyXktQ3wQA= X-Received: by 2002:a2e:8919:: with SMTP id d25-v6mr12634361lji.69.1538547839863; Tue, 02 Oct 2018 23:23:59 -0700 (PDT) MIME-Version: 1.0 References: <20181002140515.16299-1-ricardo.ribalda@gmail.com> <4555006.y1GbRfQLCO@avalon> In-Reply-To: <4555006.y1GbRfQLCO@avalon> From: Ricardo Ribalda Delgado Date: Wed, 3 Oct 2018 08:23:43 +0200 Message-ID: Subject: Re: [PATCH v4 1/2] [media] imx214: device tree binding To: Laurent Pinchart Cc: Hans Verkuil , Sakari Ailus , Mauro Carvalho Chehab , LKML , linux-media , jacopo@jmondi.org, phdm@macq.eu, devicetree@vger.kernel.org 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 Hi Laurent On Tue, Oct 2, 2018 at 10:06 PM Laurent Pinchart wrote: > > Hi Ricardo, > > Thank you for the patch. > > On Tuesday, 2 October 2018 17:05:15 EEST Ricardo Ribalda Delgado wrote: > > Document bindings for imx214 camera sensor > > > > Cc: devicetree@vger.kernel.org > > Signed-off-by: Ricardo Ribalda Delgado > > --- > > Changelog from v3: > > > > Sakari Ailus: > > -s/should/shall/ > > -remove clock-lanes > > > > Philippe De Muyter: > > -s/imx274/imx214/ > > > > Laurent Pinchart: > > -s/to to/to/ > > -Better description of lanes > > -clock-names: Shall be "xclk" > > -Drop clock-freq > > > > .../devicetree/bindings/media/i2c/imx214.txt | 53 +++++++++++++++++++ > > 1 file changed, 53 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/media/i2c/imx214.txt > > > > diff --git a/Documentation/devicetree/bindings/media/i2c/imx214.txt > > b/Documentation/devicetree/bindings/media/i2c/imx214.txt new file mode > > 100644 > > index 000000000000..421a019ab7f9 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/media/i2c/imx214.txt > > @@ -0,0 +1,53 @@ > > +* Sony 1/3.06-Inch 13.13Mp CMOS Digital Image Sensor > > + > > +The Sony imx214 is a 1/3.06-inch CMOS active pixel digital image sensor > > with +an active array size of 4224H x 3200V. It is programmable through an > > I2C +interface. The I2C address can be configured to 0x1a or 0x10, > > depending on +how the hardware is wired. > > +Image data is sent through MIPI CSI-2, through 2 or 4 lanes at a maximum > > +throughput of 1.2Gbps/lane. > > + > > + > > +Required Properties: > > +- compatible: value should be "sony,imx214" for imx214 sensor > > +- reg: I2C bus address of the device > > +- enable-gpios: GPIO descriptor for the enable pin. > > +- vdddo-supply: Chip digital IO regulator (1.8V). > > +- vdda-supply: Chip analog regulator (2.7V). > > +- vddd-supply: Chip digital core regulator (1.12V). > > +- clocks: Reference to the xclk clock. > > +- clock-names: Shall be "xclk". > > + > > +Optional Properties: > > +- flash-leds: See ../video-interfaces.txt > > +- lens-focus: See ../video-interfaces.txt > > + > > +The imx214 device node shall contain one 'port' child node with > > +an 'endpoint' subnode. For further reading on port node refer to > > +Documentation/devicetree/bindings/media/video-interfaces.txt. > > + > > +Required Properties on endpoint: > > +- data-lanes: check ../video-interfaces.txt > > As I suppose you got access to the datasheet which doesn't appear to be > public, I'll take this as an opportunity to fish for information :-) Does the > sensor support remapping data lanes ? Could you please document that here ? > > You should also state that only the 2 lanes and 4 lanes options are valid, and > what lanes can be used in those cases. I assume that would be <1 2> and <1 2 3 > 4>, but if other options are possible, it would be useful to document that. I wish I had. This is the best documentation that I got access to, after a lot of googling: http://www.ahdsensor.com/downloadRepository/3acdda8d-b531-4a76-a27d-9dd09be980ee.pdf I never understood this secrecy around datasheets. How the f*&& are we going to buy chips and make desings around them if we cannot get information?! Sorry that was my daily vent The 2 and 4 lane option was obtained from the functional description of the chip (page 1). The obvious order would be <1 2>, but I have also seen <1 3> in other chips, so I rather not mention it on the devicetree doc. Thanks a lot for your review :) > > With this updated, > > Reviewed-by: Laurent Pinchart > > > +- link-frequencies: check ../video-interfaces.txt > > +- remote-endpoint: check ../video-interfaces.txt > > + > > +Example: > > + > > + camera_rear@1a { > > + compatible = "sony,imx214"; > > + reg = <0x1a>; > > + vdddo-supply = <&pm8994_lvs1>; > > + vddd-supply = <&camera_vddd_1v12>; > > + vdda-supply = <&pm8994_l17>; > > + lens-focus = <&ad5820>; > > + enable-gpios = <&msmgpio 25 GPIO_ACTIVE_HIGH>; > > + clocks = <&mmcc CAMSS_MCLK0_CLK>; > > + clock-names = "xclk"; > > + port { > > + imx214_ep: endpoint { > > + data-lanes = <1 2 3 4>; > > + link-frequencies = /bits/ 64 <480000000>; > > + remote-endpoint = <&csiphy0_ep>; > > + }; > > + }; > > + }; > > > -- > Regards, > > Laurent Pinchart > > > -- Ricardo Ribalda