From patchwork Tue Dec 18 14:12:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Felsch X-Patchwork-Id: 10735715 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DE6E46C2 for ; Tue, 18 Dec 2018 14:13:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD5712A643 for ; Tue, 18 Dec 2018 14:13:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C19D82A654; Tue, 18 Dec 2018 14:13:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6198B2A687 for ; Tue, 18 Dec 2018 14:13:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726989AbeLRONA (ORCPT ); Tue, 18 Dec 2018 09:13:00 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:57251 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726626AbeLRONA (ORCPT ); Tue, 18 Dec 2018 09:13:00 -0500 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gZG7B-0003vI-Al; Tue, 18 Dec 2018 15:12:53 +0100 Received: from mfe by dude.hi.pengutronix.de with local (Exim 4.91) (envelope-from ) id 1gZG7B-0002Wj-2P; Tue, 18 Dec 2018 15:12:53 +0100 From: Marco Felsch To: hans.verkuil@cisco.com, sakari.ailus@linux.intel.com, mchehab@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, graphics@pengutronix.de Subject: [PATCH 1/3] media: dt-bindings: add bindings for Toshiba TC358746 Date: Tue, 18 Dec 2018 15:12:38 +0100 Message-Id: <20181218141240.3056-2-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181218141240.3056-1-m.felsch@pengutronix.de> References: <20181218141240.3056-1-m.felsch@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-media@vger.kernel.org Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add corresponding dt-bindings for the Toshiba tc358746 device. Signed-off-by: Marco Felsch Reviewed-by: Rob Herring --- .../bindings/media/i2c/toshiba,tc358746.txt | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.txt diff --git a/Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.txt b/Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.txt new file mode 100644 index 000000000000..499733df744a --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.txt @@ -0,0 +1,80 @@ +* Toshiba TC358746 Parallel to MIPI CSI2-TX or MIPI CSI2-RX to Parallel Bridge + +The Toshiba TC358746 is a bridge that converts a Parallel-in stream to MIPI CSI-2 TX +or a MIPI CSI-2 RX stream into a Parallel-out. It is programmable through I2C. + +Required Properties: + +- compatible: should be "toshiba,tc358746" +- reg: should be <0x0e> +- clocks: should contain a phandle link to the reference clock source +- clock-names: the clock input is named "refclk". + +Optional Properties: + +- reset-gpios: gpio phandle GPIO connected to the reset pin + +Parallel Endpoint: + +Required Properties: + +- reg: should be <0> +- bus-width: the data bus width e.g. <8> for eight bit bus, or <16> + for sixteen bit wide bus. + +MIPI CSI-2 Endpoint: + +Required Properties: + +- reg: should be <1> +- data-lanes: should be <1 2 3 4> for four-lane operation, + or <1 2> for two-lane operation +- clock-lanes: should be <0> +- link-frequencies: List of allowed link frequencies in Hz. Each frequency is + expressed as a 64-bit big-endian integer. The frequency + is half of the bps per lane due to DDR transmission. + +Optional Properties: + +- clock-noncontinuous: Presence of this boolean property decides whether the + MIPI CSI-2 clock is continuous or non-continuous. + +For further information on the endpoint node properties, see +Documentation/devicetree/bindings/media/video-interfaces.txt. + +Example: + +&i2c { + tc358746: tc358746@0e { + reg = <0x0e>; + compatible = "toshiba,tc358746"; + pinctrl-names = "default"; + clocks = <&clk_cam_ref>; + clock-names = "refclk"; + reset-gpios = <&gpio3 2 GPIO_ACTIVE_LOW>; + + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + tc358746_parallel_in: endpoint { + bus-width = <8>; + remote-endpoint = <µn_parallel_out>; + }; + }; + + port@1 { + reg = <1>; + + tc358746_mipi2_out: endpoint { + remote-endpoint = <&mipi_csi2_in>; + data-lanes = <1 2>; + clock-lanes = <0>; + clock-noncontinuous; + link-frequencies = /bits/ 64 <216000000>; + }; + }; + }; +};