Received: by 10.223.185.116 with SMTP id b49csp4691397wrg; Tue, 27 Feb 2018 00:32:24 -0800 (PST) X-Google-Smtp-Source: AH8x225OqL66TLUBTU7tZzwBqNslTkyGnAyevNZR4RFawEdOM7kBKDIJmyOPC2Viy/1oKDN8x2DJ X-Received: by 10.99.173.3 with SMTP id g3mr11018368pgf.213.1519720344089; Tue, 27 Feb 2018 00:32:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519720344; cv=none; d=google.com; s=arc-20160816; b=xJxWM4XBx4U9yMkQYO0bCYt9/VQaNNUjTSsrwrXR5XcTLKjzc5zTj7SkxCvG5qyDin YL+FqBySdPf2AfspiIqJByp2CpVpBiGnfarSjivjes3LRtRfnIdoOZYZfAkdWAGFmRC5 Et4gl+o3iEpjpJpxNdjg/TfcxmtsvCfAUUgUfBl1YrGmqR5TibIJpU0LntIHDov24xP7 RLXEB0N+gGS3RbcRYaOkx/OGF1UpUL5mRpRa6qgDtuwhDT/9y1M3bTO+M3Kv4R82t/bm plLjF+poj+MIMlQWTaWDhC0s2Y/CZahxCl1Lag1gvOMBn78iQNgV/baGLEDPTLkIyITw H0UA== 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:message-id:subject:cc:to:from:date :arc-authentication-results; bh=wOszgjMTKg9YED7AW9E0v9xpUdVL/4DK+hsVvkTilds=; b=j4hKK4n3YnY0rfbCii2uwvOeGYltIbUXTxgyPnXFyhpRAND41zkwq9SWfEybt0s4pu UQTpU7dyaVK2Efn5NQLbVGE120/OrIc0muqKxeCbiHj/QJx0QTjTUsalI92hS5MVrB1L tRUpn5iNPyZWSCLiSZ1JA2euPqBmwFqc6oHqrxz81JPsKBw8aZ2q7nWK3hdWjCL0s0c4 yVJtDUvoNfN6YSDsLCiGSrtCh5qmo6fV9keTBBdRIpr1ll3rx9BQ8BHtWv17rNRyIQ1S sYtWtir1JNuJ/Ni+iJ6itmOkbi46vS2YQF156KZUDfUop1DrjgnyRlo2MNRcWvTRcRBq 4X7w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l128si6741081pgl.248.2018.02.27.00.32.09; Tue, 27 Feb 2018 00:32:24 -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; 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 S1752050AbeB0Ib1 (ORCPT + 99 others); Tue, 27 Feb 2018 03:31:27 -0500 Received: from out20-3.mail.aliyun.com ([115.124.20.3]:47978 "EHLO out20-3.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751530AbeB0IbZ (ORCPT ); Tue, 27 Feb 2018 03:31:25 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1035927|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03310;MF=yong.deng@magewell.com;NM=1;PH=DS;RN=23;RT=23;SR=0;TI=SMTPD_---.B6AfdjB_1519720260; Received: from John(mailfrom:yong.deng@magewell.com fp:58.213.29.2) by smtp.aliyun-inc.com(10.147.42.253); Tue, 27 Feb 2018 16:31:01 +0800 Date: Tue, 27 Feb 2018 16:31:00 +0800 From: Yong To: Philipp Zabel Cc: Maxime Ripard , Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Chen-Yu Tsai , "David S. Miller" , Greg Kroah-Hartman , Linus Walleij , Randy Dunlap , Hans Verkuil , Stanimir Varbanov , Benjamin Gaignard , Arnd Bergmann , Ramesh Shanmugasundaram , Yannick Fertre , Sakari Ailus , Todor Tomov , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v8 1/2] dt-bindings: media: Add Allwinner V3s Camera Sensor Interface (CSI) Message-Id: <20180227163100.af7828ff4930b91cda54fd46@magewell.com> In-Reply-To: <1519719639.3402.2.camel@pengutronix.de> References: <1519697256-32472-1-git-send-email-yong.deng@magewell.com> <1519719639.3402.2.camel@pengutronix.de> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 27 Feb 2018 09:20:39 +0100 Philipp Zabel wrote: > On Tue, 2018-02-27 at 10:07 +0800, Yong Deng wrote: > > Add binding documentation for Allwinner V3s CSI. > > > > Acked-by: Maxime Ripard > > Acked-by: Sakari Ailus > > Reviewed-by: Rob Herring > > Signed-off-by: Yong Deng > > --- > > .../devicetree/bindings/media/sun6i-csi.txt | 59 ++++++++++++++++++++++ > > 1 file changed, 59 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/media/sun6i-csi.txt > > > > diff --git a/Documentation/devicetree/bindings/media/sun6i-csi.txt b/Documentation/devicetree/bindings/media/sun6i-csi.txt > > new file mode 100644 > > index 000000000000..2ff47a9507a6 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/media/sun6i-csi.txt > > @@ -0,0 +1,59 @@ > > +Allwinner V3s Camera Sensor Interface > > +------------------------------------- > > + > > +Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2 > > +interface and CSI1 is used for parallel interface. > > + > > +Required properties: > > + - compatible: value must be "allwinner,sun8i-v3s-csi" > > + - reg: base address and size of the memory-mapped region. > > + - interrupts: interrupt associated to this IP > > + - clocks: phandles to the clocks feeding the CSI > > + * bus: the CSI interface clock > > + * mod: the CSI module clock > > + * ram: the CSI DRAM clock > > + - clock-names: the clock names mentioned above > > + - resets: phandles to the reset line driving the CSI > > + > > +Each CSI node should contain one 'port' child node with one child 'endpoint' > > +node, according to the bindings defined in > > +Documentation/devicetree/bindings/media/video-interfaces.txt. As mentioned > > +above, the endpoint's bus type should be MIPI CSI-2 for CSI0 and parallel or > > +Bt656 for CSI1. > > + > > +Endpoint node properties for CSI1 > > +--------------------------------- > > + > > +- remote-endpoint : (required) a phandle to the bus receiver's endpoint > > + node > > +- bus-width: : (required) must be 8, 10, 12 or 16 > > +- pclk-sample : (optional) (default: sample on falling edge) > > It would be helpful to state that 1 is rising edge and 0 is falling > edge, see for example ov5640.txt I think this is already documented at Documentation/devicetree/bindings/media/video-interfaces.txt. > > regards > Philipp Thanks, Yong