Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp883863ima; Wed, 24 Oct 2018 10:40:48 -0700 (PDT) X-Google-Smtp-Source: AJdET5frC4lwAQIWxNDvDrIXJvRK0NbkF9A1Jm8Nf6oD3sW6J/MI7gI/llolTWaY0vIuwZYiQlvg X-Received: by 2002:a17:902:9a8b:: with SMTP id w11-v6mr3308913plp.94.1540402848042; Wed, 24 Oct 2018 10:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540402848; cv=none; d=google.com; s=arc-20160816; b=qh3KSFhwVboBP7Z4ttAsVB5Ppw6m7zlhWiBMFvOUH169p3Vc8xsBPgBFQUTMJ+u8Bp aGcwghWjMY0qZz67DNGP4xwa7WEXFNuyN3XJozP6WBj6WRe7e78GfpX22EiXS1V49VWC Uv0JxD4UbFh/Ty6MyfxfSLBwmvTEtE7edScJRF8LBSzzhCEwhsxs8HX87MAaeE05PTNF 6x06/kE1RNAtJRzsOnYlGo5VnglfzWk+vt+1MX5Sgp8wgmWTsiY28FJ++eaJ0OWJ9tJx ylN8Mo3quA5dnqGCyrwYA1gWaxbB+mOupqF+mLoqcmgm963SvZb/t36e3tGkDAIpqjLs MXyA== 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=WBCwW9brnhcDkuSWyHAUGAX4fOkdacpnsoYAQDqjNT0=; b=Fy2qNU4vJdA8eemvVEsEIH28SVRsmrVo0jJ7w19FkL5yLtvP75Vsl57O2hZJjggIYt Lg1aCSFe66+MEbNxgMvYLp+b9BFCSEdTfy+/flrNWvV/MNjMPvJqw8A3O5WGMnWCLQLl puURlS0pYSWWfl2P3+WoTQC+MArN77WwlMpDpr3k2yldg7CDppDC040C9QeFLjsRc4Ox yPP3txeWT5dL4bsFC7ie3/OhvEx6uTaXdErFKfPHILmhWm8y4iS5V6ZwH9ToZgejJ33P Ql64/jWJZcq9uJZMRz4L7OMQxVik1sGun7JHljwDlX9JHCF356jK3RcfgzVAO3l9YA22 1XlA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b16-v6si5160920pgk.358.2018.10.24.10.40.31; Wed, 24 Oct 2018 10:40:48 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727106AbeJYCJI (ORCPT + 99 others); Wed, 24 Oct 2018 22:09:08 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:38525 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726735AbeJYCJH (ORCPT ); Wed, 24 Oct 2018 22:09:07 -0400 Received: by mail-ot1-f66.google.com with SMTP id l1so5882157otj.5; Wed, 24 Oct 2018 10:40:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=WBCwW9brnhcDkuSWyHAUGAX4fOkdacpnsoYAQDqjNT0=; b=NxOtuTtWgmNeS2Dh6fy/qOg88ff5Sxo20LY7p87RPyUEFOFhYRLLvdO6Xh6WmVAb7X QP5rO7DcD1Z4KKN1eHno+x8pH6ShiIeURaXPMY0iWcbWwWSEsF72zozx3QdO40xqdnkF HVPjgiObACNoHaiOptW4yFh0JPSRLM4/X9yfdJaTTXVl9Mf1/bgN4v0I1P5hCRzixrMo YQj/VgQ3KqbwEYlTYKltRm6vVWlPsdLUXpxCTUHiwUstC7+TNJd5QpTvEDbRrPCHN0JE EdypvR7cszIgaA4XWEQlr4fdsqbJJDuNr07l0DkEZG0LR4CcQulVJE2jEgpr4rBv6uul F0Mw== X-Gm-Message-State: AGRZ1gL6Qisl5mkSy3D5a4zIK/JBZdq3zsDsDfb4f0vY/VZdJogMB/kK RndTC1XhoSDFvN/3R7S/WQ== X-Received: by 2002:a9d:42e1:: with SMTP id c30mr2382773otj.307.1540402809775; Wed, 24 Oct 2018 10:40:09 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id z9sm1778779ota.44.2018.10.24.10.40.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Oct 2018 10:40:08 -0700 (PDT) Date: Wed, 24 Oct 2018 12:40:07 -0500 From: Rob Herring To: Luis Oliveira Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, joao.pinto@synopsys.com, festevam@gmail.com, Mauro Carvalho Chehab , Mark Rutland , Hans Verkuil , Laurent Pinchart , Arnd Bergmann , Geert Uytterhoeven , Neil Armstrong , Philipp Zabel , Keiichi Watanabe , Kate Stewart , Todor Tomov , devicetree@vger.kernel.org Subject: Re: [V3, 3/4] Documentation: dt-bindings: media: Document bindings for DW MIPI CSI-2 Host Message-ID: <20181024174007.GA2902@bogus> References: <1539953556-35762-1-git-send-email-lolivei@synopsys.com> <1539953556-35762-4-git-send-email-lolivei@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1539953556-35762-4-git-send-email-lolivei@synopsys.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 19, 2018 at 02:52:25PM +0200, Luis Oliveira wrote: > Add bindings for Synopsys DesignWare MIPI CSI-2 host. > > Signed-off-by: Luis Oliveira > --- > Changelog > v2-V3 > - removed IPI settings > > .../devicetree/bindings/media/snps,dw-csi-plat.txt | 52 ++++++++++++++++++++++ > 1 file changed, 52 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/snps,dw-csi-plat.txt > > diff --git a/Documentation/devicetree/bindings/media/snps,dw-csi-plat.txt b/Documentation/devicetree/bindings/media/snps,dw-csi-plat.txt > new file mode 100644 > index 0000000..be3da05 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/snps,dw-csi-plat.txt > @@ -0,0 +1,52 @@ > +Synopsys DesignWare CSI-2 Host controller > + > +Description > +----------- > + > +This HW block is used to receive image coming from an MIPI CSI-2 compatible > +camera. > + > +Required properties: > +- compatible: shall be "snps,dw-csi-plat" 'plat' is really part of the name of the h/w block? > +- reg : physical base address and size of the device memory mapped > + registers; > +- interrupts : CSI-2 Host interrupt > +- snps,output-type : Core output to be used (IPI-> 0 or IDI->1 or BOTH->2) > + These values choose which of the Core outputs will be used, > + it can be Image Data Interface or Image Pixel Interface. > +- phys : List of one PHY specifier (as defined in > + Documentation/devicetree/bindings/phy/phy-bindings.txt). > + This PHY is a MIPI DPHY working in RX mode. > +- resets : Reference to a reset controller (optional) > + > +The per-board settings: > + - port sub-node describing a single endpoint connected to the camera as > + described in video-interfaces.txt[1]. Need to say 2 ports and what is each port? Why no port #0? > + > +Example: > + > + csi2_1: csi2@3000 { > + compatible = "snps,dw-csi-plat"; > + #address-cells = <1>; > + #size-cells = <0>; > + reg = < 0x03000 0x7FF>; > + interrupts = <2>; > + output-type = <2>; > + resets = <&dw_rst 1>; > + phys = <&mipi_dphy_rx1 0>; > + phy-names = "csi2-dphy"; Not documented. Not really needed for a single entry, so I'd just drop it. > + > + /* CSI-2 per-board settings */ > + port@1 { > + reg = <1>; > + csi1_ep1: endpoint { > + remote-endpoint = <&camera_1>; > + data-lanes = <1 2>; > + }; > + }; > + port@2 { > + csi1_ep2: endpoint { > + remote-endpoint = <&vif1_ep>; > + }; > + }; > + }; > -- > 2.7.4 >