Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1991160imm; Thu, 20 Sep 2018 06:12:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ0av31V93cvEs4A4y+5+C9O7W6L7CTO1FUFtr9cgZ2vGWRcOr53ieOEpIKXvTs879navv8 X-Received: by 2002:a17:902:9a47:: with SMTP id x7-v6mr39689941plv.37.1537449179331; Thu, 20 Sep 2018 06:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537449179; cv=none; d=google.com; s=arc-20160816; b=SygtisVNg5BnBotXQBCHseKOR1MADOSpKQ5AveCLKrZU51W52YV5CLGgL7w6Srh9DU 0xmOYHdpLRnDbJ8HqNej3yO0OBROV/mVIzk5Uaf2YzqGAYrPPmCzdYPLtyx2vNrKurAj suaurRJDIpubn6eShUt5FhuIaUZZLjJ84Ec3r/HCQ1+xhXKR24u3OnAnHQLPk9MQuRIU ZHeDKRcbYqCdnjyUkgN/UQjCIglekLzHCP7G5OA/nqVi4WR6G/EyTGNzjovLoOWyNkst aMeEZP5RgQivgLa5Vu334/onQycrCjIotwqzcSDz9xcB33/aSh4CGxgg5EkC2Whq0HZr I1dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=4vpUSorVRs0PtVcXj9sfp0cBjS2gZHK6GURvAOdMZ6I=; b=YzkPze/Wy/br4Y3Ca+5r/KD2bmjH7KdJ60OcBvxXhbw+ozZ5qsW3Mh9rztKU0MNgbS 9DY7ZgVcz2fPjwtbIAe8cul7lgZqzlcOlRnryL4T9hLh0sxsVhgkI28vxGiturkjmsYr lYHR5z5WarLSsSL6pUf+HmLc0J2phqPFBlVYD0n/2P41w5p3AIjpncv0L/MqijAZpom3 JSB25AR1VVvcYGa7/Ha5+FNah9urO2FItHJ658GPJbzxTJkYsUQcYlEfkfqOf+wVW+Tz /MqcZWfzaXH2GjhJLAqHA2YPv0DfFN1jdlQk7ftMST9q/bzRQs36iSUZy/MIcmEGAFCc tTIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WUeGnraN; 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 y63-v6si23456978pgd.435.2018.09.20.06.12.39; Thu, 20 Sep 2018 06:12:59 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=WUeGnraN; 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 S2387931AbeITSyc (ORCPT + 99 others); Thu, 20 Sep 2018 14:54:32 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:54874 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387418AbeITSyc (ORCPT ); Thu, 20 Sep 2018 14:54:32 -0400 Received: from avalon.localnet (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5FC051A9C; Thu, 20 Sep 2018 15:11:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1537449062; bh=KzxRfSGlTG36QHbdDuu62BeSdIst1dfK7oU07zhAYc0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WUeGnraNABJEJEzRS/aRinOpk/UIHEUmYoyFBLE32o5QB0hw8npyLHHAmEVuhwSeX mFqbhchjZDkbk6BrzCnKdj0gMp/y1nV+nrRwK1AWILdbEQY/+NpbfdgzJwP20Vgily 4kjNchrjHc8IojTAXY4PURss4Z1sVtpOLG8EMZlk= From: Laurent Pinchart To: Luis Oliveira Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Joao.Pinto@synopsys.com, festevam@gmail.com, Luis Oliveira , Rob Herring , Mark Rutland , Mauro Carvalho Chehab , Hans Verkuil , Geert Uytterhoeven , Laurent Pinchart , Arnd Bergmann , Jacob Chen , Neil Armstrong , Keiichi Watanabe , Kate Stewart , Philipp Zabel , Todor Tomov , devicetree@vger.kernel.org Subject: Re: [V2, 2/5] Documentation: dt-bindings: Document the Synopsys MIPI DPHY Rx bindings Date: Thu, 20 Sep 2018 16:11:14 +0300 Message-ID: <1754496.WQhu2lOnZY@avalon> Organization: Ideas on Board Oy In-Reply-To: <20180920111648.27000-3-lolivei@synopsys.com> References: <20180920111648.27000-1-lolivei@synopsys.com> <20180920111648.27000-3-lolivei@synopsys.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Louis, Thank you for the patch. On Thursday, 20 September 2018 14:16:40 EEST Luis Oliveira wrote: > Add device-tree bindings documentation for SNPS DesignWare MIPI D-PHY in > RX mode. > > Signed-off-by: Luis Oliveira > --- > Changelog > v2: > - no changes > > .../devicetree/bindings/phy/snps,dphy-rx.txt | 36 +++++++++++++++++++ > 1 file changed, 36 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/snps,dphy-rx.txt > > diff --git a/Documentation/devicetree/bindings/phy/snps,dphy-rx.txt > b/Documentation/devicetree/bindings/phy/snps,dphy-rx.txt new file mode > 100644 > index 0000000..9079f4a > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/snps,dphy-rx.txt > @@ -0,0 +1,36 @@ > +Synopsys DesignWare MIPI Rx D-PHY block details > + > +Description > +----------- > + > +The Synopsys MIPI D-PHY controller supports MIPI-DPHY in receiver mode. > +Please refer to phy-bindings.txt for more information. > + > +Required properties: > +- compatible : Shall be "snps,dphy-rx". > +- #phy-cells : Must be 1. > +- snps,dphy-frequency : Output frequency of the D-PHY. If that's the frequency of the clock on the output side of the RX PHY, doesn't it depend on the frequency on the CSI-2 (or other) bus ? Can't it vary ? Why do you need to have it in DT ? > +- snps,dphy-te-len : Size of the communication interface (8 bits->8 or > 12bits->12). We have similar properties in various bindings, such as bus-width in video- interfaces.txt. Couldn't we use a more standard name ? > +- reg : Physical base address and size of the device memory mapped > + registers; The example below shows three ranges. Could you document the ranges that are expected ? > +Optional properties: > +- snps,compat-mode : Compatibility mode control What is this ? > +The per-board settings: > +- gpios : Synopsys testchip used as reference uses this to change setup > + configurations. Here too, what is this for ? > +Example: > + > + mipi_dphy_rx1: dphy@3040 { > + compatible = "snps,dphy-rx"; > + #phy-cells = <1>; > + snps,dphy-frequency = <300000>; > + snps,dphy-te-len = <12>; > + snps,compat-mode = <1>; > + reg = < 0x03040 0x20 > + 0x08000 0x100 > + 0x09000 0x100>; The base addresses are pretty low, what kind of bus does this sit on ? > + }; > + -- Regards, Laurent Pinchart