Received: by 10.223.185.116 with SMTP id b49csp4684429wrg; Tue, 27 Feb 2018 00:22:50 -0800 (PST) X-Google-Smtp-Source: AH8x227yH8V26lj/cC850YKAj/Sf0YBldg0xW6BAdPpQKZyB1ouodrJqV6o/oT2b6ZNs/8+ORNGo X-Received: by 10.99.98.5 with SMTP id w5mr10900772pgb.307.1519719770272; Tue, 27 Feb 2018 00:22:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519719770; cv=none; d=google.com; s=arc-20160816; b=gxndCwmsZONvcVkj2SF8DvWERFz93TyBwqiPjVImRMJQgjAzvVTce2MlcxoJ3FH3Ay WtT66lBX8S8OTPnmXWzfe01fChLKn7TTO582erB82XNQJEMY8Hi2R/D7Mtd1r849WOcm 3nwccVWzN0X9lL7awMfsZIw0/StkMlDsM5tvFXvGndy393DlPXUzSaJqmtO+kzKuJaCE 5tze4Lcu+NmPEm1nikz+ZscTj5vhWaY1KhAUT45JTrg4/6HQUIeiqWPJR0bmZRIpI6yq WOhSxNPOppk7vVkYGl7g+FZdnBEIHlIngnjRZbAyZlYf/Kz5WRGAifSNw2sT194BlBUY Oi6w== 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:date:cc:to:from:subject:message-id :arc-authentication-results; bh=FffKU4qtxjvq31PAHMEzlrNegfwalAVMbvtgn9gJHkk=; b=o9Zsy9AGjcmuNVps5tuXgzh+ENfoT2LMbGW/uoW3tjXI07RMxGWYttAcOw6j4BMDT8 joWtS42BJy88xWc8NgXaqFYj7IU5jiS/o9S+VyjSkSp7NGYZimsH2MT6AQVtdlLQvI/H Hb5ncAVbEggdtK2vyOFAz4/6BfDy4DIl38cKPYwrpkSKEYXAHsA7bslOu9nl6nB07foC LS2zCX+VITKNKrI2Z8mDhc/J7BimZro/yCMFLiXbz+SsFS3Fh8y1IuT7CY1iHWvoo9aW jXZvc8Y8+sNEYdv5iPceNMosFCJKBRGxiY5aKZz3l+JvDreL/s+Uky8NUeaSmZZm8tp/ oPKA== 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 e9-v6si8177423plt.685.2018.02.27.00.22.35; Tue, 27 Feb 2018 00:22:50 -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 S1752458AbeB0IV1 (ORCPT + 99 others); Tue, 27 Feb 2018 03:21:27 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:38971 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752069AbeB0IV0 (ORCPT ); Tue, 27 Feb 2018 03:21:26 -0500 Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1eqaVJ-0008ES-IX; Tue, 27 Feb 2018 09:20:53 +0100 Message-ID: <1519719639.3402.2.camel@pengutronix.de> Subject: Re: [PATCH v8 1/2] dt-bindings: media: Add Allwinner V3s Camera Sensor Interface (CSI) From: Philipp Zabel To: Yong Deng , Maxime Ripard Cc: 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 Date: Tue, 27 Feb 2018 09:20:39 +0100 In-Reply-To: <1519697256-32472-1-git-send-email-yong.deng@magewell.com> References: <1519697256-32472-1-git-send-email-yong.deng@magewell.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 regards Philipp