From patchwork Tue Jun 5 23:34:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10449479 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8C9C56024A for ; Tue, 5 Jun 2018 23:34:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7879A29C1A for ; Tue, 5 Jun 2018 23:34:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D3F229C1E; Tue, 5 Jun 2018 23:34:45 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 1D9F429C1A for ; Tue, 5 Jun 2018 23:34:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752873AbeFEXem (ORCPT ); Tue, 5 Jun 2018 19:34:42 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:34344 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752418AbeFEXek (ORCPT ); Tue, 5 Jun 2018 19:34:40 -0400 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1CC561AA3; Wed, 6 Jun 2018 01:34:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1528241679; bh=OZ3bPEjT4cIDGsqbMebFkFG2+Lh63/Z+fkbx0sD60OM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=odtrePsx4NPPPHRrUKiwOJHNRwRbXEOxUmn274fNy2vGA0S/WEJ7mOw5eU0HPDCyp Z8WvOsdR52teHw0JzTykdX+rYbyrcJ3LWYEdfZCuMst8Bc6jtmwSmLGBJ2R6IeuGwi br0pYOWXeMNyV5hjUd5gtgiegIPzCPbjoSbdK4L0= From: Kieran Bingham To: linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org Cc: Laurent Pinchart , niklas.soderlund@ragnatech.se, jacopo@jmondi.org, Kieran Bingham Subject: [RFC PATCH v1 1/4] media: dt-bindings: max9286: add device tree binding Date: Wed, 6 Jun 2018 00:34:32 +0100 Message-Id: <20180605233435.18102-2-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180605233435.18102-1-kieran.bingham+renesas@ideasonboard.com> References: <20180605233435.18102-1-kieran.bingham+renesas@ideasonboard.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Provide device tree binding documentation for the MAX9286 Quad GMSL deserialiser. Signed-off-by: Kieran Bingham --- .../devicetree/bindings/media/i2c/max9286.txt | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/max9286.txt diff --git a/Documentation/devicetree/bindings/media/i2c/max9286.txt b/Documentation/devicetree/bindings/media/i2c/max9286.txt new file mode 100644 index 000000000000..e6e5d2c93245 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/max9286.txt @@ -0,0 +1,75 @@ +* Maxim Integrated MAX9286 GMSL Quad 1.5Gbps GMSL Deserializer + +Required Properties: + - compatible: Shall be "maxim,max9286" + +The following required properties are defined externally in +Documentation/devicetree/bindings/i2c/i2c-mux.txt: + - Standard I2C mux properties. + - I2C child bus nodes. + +A maximum of 4 I2C child nodes can be specified on the MAX9286, to +correspond with a maximum of 4 input devices. + +The device node must contain 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 +are numbered as follows. + + Port Type + ---------------------- + 0 sink + 1 sink + 2 sink + 3 sink + 4 source + +Example: +&i2c4 { + gmsl-deserializer@0 { + compatible = "maxim,max9286"; + reg = <0x4c>; + poc-supply = <&poc_12v>; + + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + max9286_in0: endpoint { + remote-endpoint = <&rdacm20_out0>; + }; + }; + + port@4 { + reg = <4>; + max9286_out0: endpoint { + clock-lanes = <0>; + data-lanes = <1 2 3 4>; + remote-endpoint = <&csi40_in>; + }; + }; + }; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + camera@51 { + compatible = MAXIM_CAMERA0; + reg = <0x51 0x61>; + + port { + rdacm20_out0: endpoint { + remote-endpoint = <&max9286_in0>; + }; + }; + }; + }; + }; +};