Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5157166imu; Tue, 13 Nov 2018 02:01:11 -0800 (PST) X-Google-Smtp-Source: AJdET5d24c8q5j46A+q0I1wl/KdjFoh643LwS2DCN7FhaThfbMkKqV/hP5JRGN1rVyIWXRQmysnw X-Received: by 2002:a63:af45:: with SMTP id s5-v6mr4136255pgo.125.1542103271757; Tue, 13 Nov 2018 02:01:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542103271; cv=none; d=google.com; s=arc-20160816; b=gu1Kbr7USxDh9RnBzSBE7Gg6eiXhZan8f/LcBeXhuCA0PI/Tf/VoV+0TR8YYiw/Sit gQSKaN9BnaiaWKlq+0jiOKdt0WarIHuY5LXxMKtXIO9I0Io0lr5hIsmedE2aGCd4x+bu NiYRzzV0VIJ2yIqqJ8nHmjMl4DiAecQeByVvw10Ro+qYfFZH0T4xKNZ2LRrqTi25cuPd NLARsIibBw4NB+xLsGLJP7zm8yCaeDXa18fa5YUTrJWiFseBnn8SkiUAQaBXtPttp8kk Af3B1SyHR3c7akshdVTMvJjvvsr+gctfNTqgo4h2Q7Na9vXrZLUGkOyQWoWPOPjglqJb G66A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=K4Ix+huIDktzQMFIQLnaArp2WudOeDDrLff0+RKsMlM=; b=iF0gg/yz8n/AHVPAVYjPlhBRdu9I+4sgRzASt2LBPrPxnGm03D+Ivr31LfzECmaJe7 k+ljf+vxf9XPyG4+2rrtvAXUSbXwpoq4Ddfb0993iKQH/n3u1JK62B/JppPrWM6chvfj P9/lW4zEZg5Y0QHNGErVAMWhx0ur6UZaf9g4w7DwJn4+BaYbhgWebROFbNd6RZvlHVTp vW2eAyQ/8OKz1jB22ZSrb3Vt9DhAS8UDXwMIE31JKtZ3T63gurWzazhR9cxEjfAmwWDW e5SEFf1WmDVWV1AwRxTbLpWWxKFzOpmvriAJggU+UGyL2LOfdsIvkkRHYmx9c8KOPUQ0 QeBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=Ahb1kKjV; 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=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g13-v6si20341923plo.68.2018.11.13.02.00.56; Tue, 13 Nov 2018 02:01:11 -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 header.i=@synopsys.com header.s=mail header.b=Ahb1kKjV; 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=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731833AbeKMT5s (ORCPT + 99 others); Tue, 13 Nov 2018 14:57:48 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111]:54448 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731606AbeKMT5s (ORCPT ); Tue, 13 Nov 2018 14:57:48 -0500 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 897F210C004C; Tue, 13 Nov 2018 02:00:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1542103227; bh=0JYzbCT1ZxnaInC/7pfsyI2Qxplr7eoPRIQQ1O/CExw=; h=Subject:To:CC:References:From:Date:In-Reply-To:From; b=Ahb1kKjVuMahSX9aRRrrwQYoPcTy9FsDa1lGa7I87kE7WGZRzScQ8AYS5iKwaykPr cLdyEMTIsnkAIBLuZAcHqCy7lVXa+WVAOsJt+OQCaO4qAuLkey2gEZqKRvzuYhPvhG KIcQFvyhAoEFobfce9yuLpP0WnikM0EXSPscHj68ABiruMPAuIv07/vX2dyXrtK2tU /br2YrRGLR5eo89Us68ipy8DuI6tQAzVmWgla1hlyRGUW1DNfTeoawEe77Y4vnh3Qw 1thtIpqkQsxMGoMmSedR54G194zmuB9f8KWB87Xl+1dfPtE7LJpyWeoTrOwof4ubRe ek8WgZ2ANDSUA== Received: from US01WEHTC2.internal.synopsys.com (us01wehtc2.internal.synopsys.com [10.12.239.237]) by mailhost.synopsys.com (Postfix) with ESMTP id C54AC35CA; Tue, 13 Nov 2018 02:00:26 -0800 (PST) Received: from DE02WEHTCB.internal.synopsys.com (10.225.19.94) by US01WEHTC2.internal.synopsys.com (10.12.239.237) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 13 Nov 2018 02:00:26 -0800 Received: from DE02WEHTCA.internal.synopsys.com (10.225.19.92) by DE02WEHTCB.internal.synopsys.com (10.225.19.94) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 13 Nov 2018 11:00:24 +0100 Received: from [10.107.25.130] (10.107.25.130) by DE02WEHTCA.internal.synopsys.com (10.225.19.80) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 13 Nov 2018 11:00:24 +0100 Subject: Re: [V3, 3/4] Documentation: dt-bindings: media: Document bindings for DW MIPI CSI-2 Host To: Rob Herring , Luis Oliveira CC: , , , , Mauro Carvalho Chehab , Mark Rutland , Hans Verkuil , Laurent Pinchart , Arnd Bergmann , Geert Uytterhoeven , Neil Armstrong , Philipp Zabel , "Keiichi Watanabe" , Kate Stewart , Todor Tomov , References: <1539953556-35762-1-git-send-email-lolivei@synopsys.com> <1539953556-35762-4-git-send-email-lolivei@synopsys.com> <20181024174007.GA2902@bogus> From: Luis de Oliveira Message-ID: <45d87050-c5a8-dd96-20ae-d4951b0f4564@synopsys.com> Date: Tue, 13 Nov 2018 10:00:22 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181024174007.GA2902@bogus> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.107.25.130] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? >> +- 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? > 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>; >> + }; >> + }; >> + }; >> -- >> 2.7.4 >>