Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7135140imu; Wed, 14 Nov 2018 12:16:30 -0800 (PST) X-Google-Smtp-Source: AJdET5cF0iyBe/2T0JmU5R2+/DhwLGp+bhGjhh35dU5iehARqXjtqBKpNo+lkLU/87afKddv35YL X-Received: by 2002:a62:5003:: with SMTP id e3mr3507305pfb.23.1542226590016; Wed, 14 Nov 2018 12:16:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542226589; cv=none; d=google.com; s=arc-20160816; b=xQFpwJPZdin+uURVtp0+7F3WJagQCeL+vtLXSsQJj3ht6UPwgR8/rI8/4HlOIMHa0i kHfLeesMmRizIcVGzfNhcITlgqrCrk0jGQukroo7WOOxYdZcwhZkEaecJdeOz6XHz0GC uqAYUYTYfk1nG7mumj3+xOHKjxk14BSw9WCq8xcUTHGJChxe2Uk2S+rBhjfvts7nN5Eu +vd5eDSMGeXJ03iQSTOo6JftGFZlaBauwzzsJYmX370/PUsKVW1LyTCqAgnWLDrZbcQr 9ONPzep56Ba88bBjQYT09Te1xNEf2yaWpRrDJEVNJK/KyEaqlTm+zH1htZNLVaH1esGu 5Vdg== 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=+sBfP6CduNGnTWpHcOm0ByyDTyu37tJa5VkSBimIPJ8=; b=iH0Ev+S6egUUuGVfIQ6q0DLazpqDxkBJHQ7rHtw9R99b+BgMgRru1tlOrXblIlEYPN Yll5ifvpnFpIk/TKuqY8eBckug4tAyFF7bMu6SVyOu93P24aeCUbS/m07oFoyqEO71+q whVozvCWr4iYePPHSTgzPhN5Uyc06HneqvaahnaRNYhk/TNN8OPLLRCW7XDfuue7AVAB I9/EKGFk7CJd7Pg785qnd98ZfyEgRjs8akFCjA5QaY1zPrOiBWkQR6tHf4Q89K3nt12B 4Vkyp61tRMZRzP52S8ZXxsgm19dWMI2iSPlid7uE750e8QSYFA0LxIXUAeaUgIId+wYE Kf8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=sJBLMmof; 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 c5si18596413pgq.434.2018.11.14.12.16.12; Wed, 14 Nov 2018 12:16:29 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=sJBLMmof; 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 S1727118AbeKOGUb (ORCPT + 99 others); Thu, 15 Nov 2018 01:20:31 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:42500 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725756AbeKOGUb (ORCPT ); Thu, 15 Nov 2018 01:20:31 -0500 Received: from avalon.localnet (unknown [64.114.255.97]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8928ABB8; Wed, 14 Nov 2018 21:15:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1542226548; bh=nU9xNPZeZl5vxgruEE226tGyIbtyDI7Pisnc1/98ZhY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sJBLMmofLqXut7QrYUZwsuR8GDhsWzbl3k9NLz04H7K9pbMR7yxKRaSxL7o8/O3DZ kH8OmNUK7Zi040JtsK37T+Kpax2oLaoUiTlg+4agu4MsNbp7keIr1ydwjfZQHfqBKq UjyH4Rq0uzCprGQ82r1eDpD8J/SqeaDONYwRN+aU= From: Laurent Pinchart To: Luis de Oliveira Cc: Rob Herring , 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 Date: Wed, 14 Nov 2018 22:16:01 +0200 Message-ID: <2394629.R0NRNf7gSs@avalon> Organization: Ideas on Board Oy In-Reply-To: <45d87050-c5a8-dd96-20ae-d4951b0f4564@synopsys.com> References: <1539953556-35762-1-git-send-email-lolivei@synopsys.com> <20181024174007.GA2902@bogus> <45d87050-c5a8-dd96-20ae-d4951b0f4564@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 Luis, Thank you for the patch. On Tuesday, 13 November 2018 12:00:22 EET Luis de Oliveira wrote: > On 24-Oct-18 18:40, Rob Herring wrote: > > 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? > > It is the name of the platform driver for CSI compatible with this block. Is > that wrong? DT bindings describe hardware, not drivers. This should be the name of the IP core, regardless of how the drivers are architectured and named. > >> +- 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. Does this describe what outputs the IP core has been instantiated (synthesized) with, or what output(s) are used at runtime ? How does that relate to the port nodes ? > >> +- 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? > > I will elaborate on that. > > >> + > >> +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. > > I will, thanks. > > >> + > >> + /* 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>; > >> + }; > >> + }; > >> + }; -- Regards, Laurent Pinchart