Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751652AbeAPJtp (ORCPT + 1 other); Tue, 16 Jan 2018 04:49:45 -0500 Received: from lb1-smtp-cloud9.xs4all.net ([194.109.24.22]:51305 "EHLO lb1-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751391AbeAPJtl (ORCPT ); Tue, 16 Jan 2018 04:49:41 -0500 Subject: Re: [PATCH v5 1/9] dt-bindings: media: Add Renesas CEU bindings To: Jacopo Mondi , laurent.pinchart@ideasonboard.com, magnus.damm@gmail.com, geert@glider.be, mchehab@kernel.org, festevam@gmail.com, sakari.ailus@iki.fi, robh+dt@kernel.org, mark.rutland@arm.com, pombredanne@nexb.com Cc: linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, linux-sh@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <1515765849-10345-1-git-send-email-jacopo+renesas@jmondi.org> <1515765849-10345-2-git-send-email-jacopo+renesas@jmondi.org> From: Hans Verkuil Message-ID: Date: Tue, 16 Jan 2018 10:49:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1515765849-10345-2-git-send-email-jacopo+renesas@jmondi.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfEZQXNDXxXvhr9KaIvdqHpPQPtsu+aEq/CLYtqkeibU8YqZwwSjEvNfG51X9hDOA1Vncv7FaoVOF5/mCFa760yUbNnvGPuG8zbhgGBBtwDh9qrZGNUuj rCjKU0vhXnMjl2BclJcoXf7/nyoyxur6tUkQ7Lh7qC1Bcqoy5l0B00P5tjZCEtUMEm6Q54BwP48qf3dDI6BMRhrbojir0MUHDW2QVU+3wPORGyL2n35+ds6g 0XRZb4vJiI12pko26QLghNtwGn8bZgwIdA2ou5yJ8K+nB+ii9FkWWaQHnB6HsHg3nMnOpLSoAqmbA87YF1DGtP0B8N7QocDwIJ4bsDjsAdPkLxQq+/WCHONf 6ux4a9t9w7PuM5AU7yvQWGy1Ci/VOiWJvYxXUvtnQDN3ZcT8dWHA3fCDXnf6RDhUD5W6gDZP2EpGdoLnUr92V4KouvODwQiE9c3ZTxLLnb2P2pf6xSWrESOr LYaJ6XmreaqA+Mkc7S/loXLYOWFDF7D7PHzLzH3U9nNJLNuDWEsDReRBmFXwXfDFp9/ErimzjGQg/OCWEhp9n7Hvs6urL9xT/nreNliedjAJImGLDcmWg8qh wASrXJhj5lJe78bdIY/dK/tvJd2XUQIg3e9fNphoZASLzeN5kRGsDZ82b57/t9Kpv/o2QmpjKRRs2Wh+165TWQ2pvXkkiRVObrKq7veaYR+q0RjHoq5ZCJ5h hqSZgA0Y2Hc= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 01/12/2018 03:04 PM, Jacopo Mondi wrote: > Add bindings documentation for Renesas Capture Engine Unit (CEU). > > Signed-off-by: Jacopo Mondi > Reviewed-by: Rob Herring > Reviewed-by: Laurent Pinchart Acked-by: Hans Verkuil Regards, Hans > --- > .../devicetree/bindings/media/renesas,ceu.txt | 81 ++++++++++++++++++++++ > 1 file changed, 81 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/renesas,ceu.txt > > diff --git a/Documentation/devicetree/bindings/media/renesas,ceu.txt b/Documentation/devicetree/bindings/media/renesas,ceu.txt > new file mode 100644 > index 0000000..590ee27 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/renesas,ceu.txt > @@ -0,0 +1,81 @@ > +Renesas Capture Engine Unit (CEU) > +---------------------------------------------- > + > +The Capture Engine Unit is the image capture interface found in the Renesas > +SH Mobile and RZ SoCs. > + > +The interface supports a single parallel input with data bus width of 8 or 16 > +bits. > + > +Required properties: > +- compatible: Shall be "renesas,r7s72100-ceu" for CEU units found in RZ/A1-H > + and RZ/A1-M SoCs. > +- reg: Registers address base and size. > +- interrupts: The interrupt specifier. > + > +The CEU supports a single parallel input and should contain a single 'port' > +subnode with a single 'endpoint'. Connection to input devices are modeled > +according to the video interfaces OF bindings specified in: > +Documentation/devicetree/bindings/media/video-interfaces.txt > + > +Optional endpoint properties applicable to parallel input bus described in > +the above mentioned "video-interfaces.txt" file are supported. > + > +- hsync-active: Active state of the HSYNC signal, 0/1 for LOW/HIGH respectively. > + If property is not present, default is active high. > +- vsync-active: Active state of the VSYNC signal, 0/1 for LOW/HIGH respectively. > + If property is not present, default is active high. > + > +Example: > + > +The example describes the connection between the Capture Engine Unit and an > +OV7670 image sensor connected to i2c1 interface. > + > +ceu: ceu@e8210000 { > + reg = <0xe8210000 0x209c>; > + compatible = "renesas,r7s72100-ceu"; > + interrupts = ; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&vio_pins>; > + > + status = "okay"; > + > + port { > + ceu_in: endpoint { > + remote-endpoint = <&ov7670_out>; > + > + hsync-active = <1>; > + vsync-active = <0>; > + }; > + }; > +}; > + > +i2c1: i2c@fcfee400 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c1_pins>; > + > + status = "okay"; > + > + clock-frequency = <100000>; > + > + ov7670: camera@21 { > + compatible = "ovti,ov7670"; > + reg = <0x21>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&vio_pins>; > + > + reset-gpios = <&port3 11 GPIO_ACTIVE_LOW>; > + powerdown-gpios = <&port3 12 GPIO_ACTIVE_HIGH>; > + > + port { > + ov7670_out: endpoint { > + remote-endpoint = <&ceu_in>; > + > + hsync-active = <1>; > + vsync-active = <0>; > + }; > + }; > + }; > +}; >