From patchwork Fri Jan 19 08:15:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 125114 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp184773ljf; Fri, 19 Jan 2018 00:16:05 -0800 (PST) X-Google-Smtp-Source: ACJfBou7CD3CNB47h9keuyd5QW18hgrFulQHK2mHJsoXQGUx6ZLsZoq9zkYPk6lI0a/F5XItE2Ov X-Received: by 10.98.103.209 with SMTP id t78mr34410268pfj.53.1516349765610; Fri, 19 Jan 2018 00:16:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516349765; cv=none; d=google.com; s=arc-20160816; b=YnsCK4IhsWAPiqoP7IUdAnJX01nvc9vfpcdY6hdQBY3JS5G2EOTNg7o6I+AoEOD9Gd S+DTu5vnKsXuSnnf/LmXNOf9j/WiU7372bCxTZ5w9fy3kp4BxavUwFV5Ap4iIeEl8qYc 7UGWVwOHw7p1BHHKsCLsnuMJsLBpP2mnGJENWvOMUnaeYVnhgt4hFapQRFH7uV6cgv5t DnAwfkqqISmh7ypVZDShfCVGzxPCLyXxUdXZQt0lR/kPH4ojFDPzscjXKB0l8UVi5XIV B981nAeuXsbSABpLMLMzhtyJQap3QzKi/MVb9clt3USaK8wNhPoR6HGFzuK6FLFReL/Z 7scQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=5nLwpknXUui1VBHEmTn05R0c5XPWyikoMhuq/LNqUEw=; b=iKZNEGRNmqPnf/zkTxWSzQvJgI80huwP7U2fGDkKHEBxHxpMBVEG1IPJuvmq7MoT0f Sldw9ka0uyCYCH8q7KlzFXrFAXDOho1OXdT0M5CSqlvZwWYVm7b3A35Wld3EhQfs/PIa q7x5CfUSU5A5zKZDda1Ce4Y9zTcc+g0WytkYUUGn4v+LeCDFJaomPSB83QBG3kozRLtc 3z63T/blo76V+iodRJvJRdnR4x+ymzzMHBxCJNAvVQ/yhnTaznTXRHORSyKxUPbEC4dy rCJoeDUKi3mK/mDMdvdCoCL940Aju2H9PR23bNonjnZBqvqbF0j74iSqLGxeJ1WdYN4j IKFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 n189si8715483pfn.40.2018.01.19.00.16.05; Fri, 19 Jan 2018 00:16:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-media-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-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754881AbeASIQD (ORCPT + 4 others); Fri, 19 Jan 2018 03:16:03 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:33653 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751747AbeASIQB (ORCPT ); Fri, 19 Jan 2018 03:16:01 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id B52222088F; Fri, 19 Jan 2018 09:15:59 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 8556D2046F; Fri, 19 Jan 2018 09:15:49 +0100 (CET) From: Maxime Ripard To: Mauro Carvalho Chehab , Mark Rutland , Rob Herring Cc: Laurent Pinchart , linux-media@vger.kernel.org, devicetree@vger.kernel.org, Richard Sproul , Alan Douglas , Steve Creaney , Thomas Petazzoni , Boris Brezillon , =?utf-8?q?Niklas_S=C3=B6derlund?= , Hans Verkuil , Sakari Ailus , Benoit Parrot , nm@ti.com, Simon Hatliff , Maxime Ripard Subject: [PATCH v2 1/2] dt-bindings: media: Add Cadence MIPI-CSI2 TX Device Tree bindings Date: Fri, 19 Jan 2018 09:15:46 +0100 Message-Id: <20180119081547.22312-2-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180119081547.22312-1-maxime.ripard@free-electrons.com> References: <20180119081547.22312-1-maxime.ripard@free-electrons.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The Cadence MIPI-CSI2 TX controller is a CSI2 bridge that supports up to 4 video streams and can output on up to 4 CSI-2 lanes, depending on the hardware implementation. It can operate with an external D-PHY, an internal one or no D-PHY at all in some configurations. Acked-by: Rob Herring Signed-off-by: Maxime Ripard --- .../devicetree/bindings/media/cdns,csi2tx.txt | 98 ++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/cdns,csi2tx.txt -- 2.14.3 diff --git a/Documentation/devicetree/bindings/media/cdns,csi2tx.txt b/Documentation/devicetree/bindings/media/cdns,csi2tx.txt new file mode 100644 index 000000000000..acbbd625a75f --- /dev/null +++ b/Documentation/devicetree/bindings/media/cdns,csi2tx.txt @@ -0,0 +1,98 @@ +Cadence MIPI-CSI2 TX controller +=============================== + +The Cadence MIPI-CSI2 TX controller is a CSI-2 bridge supporting up to +4 CSI lanes in output, and up to 4 different pixel streams in input. + +Required properties: + - compatible: must be set to "cdns,csi2tx" + - reg: base address and size of the memory mapped region + - clocks: phandles to the clocks driving the controller + - clock-names: must contain: + * esc_clk: escape mode clock + * p_clk: register bank clock + * pixel_if[0-3]_clk: pixel stream output clock, one for each stream + implemented in hardware, between 0 and 3 + +Optional properties + - phys: phandle to the D-PHY. If it is set, phy-names need to be set + - phy-names: must contain dphy + +Required subnodes: + - ports: A ports node with one port child node per device input and output + port, in accordance with the video interface bindings defined in + Documentation/devicetree/bindings/media/video-interfaces.txt. The + port nodes numbered as follows. + + Port Description + ----------------------------- + 0 CSI-2 output + 1 Stream 0 input + 2 Stream 1 input + 3 Stream 2 input + 4 Stream 3 input + + The stream input port nodes are optional if they are not + connected to anything at the hardware level or implemented + in the design. Since there is only one endpoint per port, + the endpoints are not numbered. + +Example: + +csi2tx: csi-bridge@0d0e1000 { + compatible = "cdns,csi2tx"; + reg = <0x0d0e1000 0x1000>; + clocks = <&byteclock>, <&byteclock>, + <&coreclock>, <&coreclock>, + <&coreclock>, <&coreclock>; + clock-names = "p_clk", "esc_clk", + "pixel_if0_clk", "pixel_if1_clk", + "pixel_if2_clk", "pixel_if3_clk"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + csi2tx_out: endpoint { + remote-endpoint = <&remote_in>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + + port@1 { + reg = <1>; + + csi2tx_in_stream0: endpoint { + remote-endpoint = <&stream0_out>; + }; + }; + + port@2 { + reg = <2>; + + csi2tx_in_stream1: endpoint { + remote-endpoint = <&stream1_out>; + }; + }; + + port@3 { + reg = <3>; + + csi2tx_in_stream2: endpoint { + remote-endpoint = <&stream2_out>; + }; + }; + + port@4 { + reg = <4>; + + csi2tx_in_stream3: endpoint { + remote-endpoint = <&stream3_out>; + }; + }; + }; +};