Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp995050imu; Mon, 5 Nov 2018 12:03:21 -0800 (PST) X-Google-Smtp-Source: AJdET5cosBEATgBiMlnldnOtIHiNocQbQCM1GB4oF/i2yD6cHKJd5tydwtyr0iW9SjkBVv1gjp5L X-Received: by 2002:a17:902:b405:: with SMTP id x5-v6mr17073986plr.4.1541448201437; Mon, 05 Nov 2018 12:03:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541448201; cv=none; d=google.com; s=arc-20160816; b=mB4kO+2bqR7OpP5XEDQF0h0yb5XPvAs877qg3/m2Uxmdy/dSgteoOrECp/Pq2ZR9Gv KdIAr2Ny/Fapm2qXt/v83fAKD4GKUdWm1UCDVldTzCpWA11co/WYNlhkXMNREyytpqu7 afaG5OtdxPd3poMWprTnjlkbN4FTt74qbqfK5gl4OEjNBTvcFaoBbP+NpzqwdEKZSXOJ rb9YCfl1dNQ7wZG51J/LMCXJIBReHrbZqi1cwXO7tJ62Uv8Zbn/M+neRrkAed8JMwJY5 38LV+ZFsV8Lomp+SyyVDMbh3i/57uX2BgV8AK+tCh8QadGvCV1lbPPmS8lVd54EYONDg TvhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=C9sG2KemDzFXTzVCEydyHJ9q9vQbvq4N2OSfBrV0/wc=; b=u/DfzTdPyhLx9O0p6CcVZUvDHcDaUAD9TO7M1+Q102YPXJt898sITPpZuFjR96ai2h UryeK+hHxQ4q26qaXi5YN782QTltxN6+cayJnJZoG6FiHeFztseNNur7XooEenucg6Yb S8HzCQhuSBVrlex0wnUrZS6IXSSMYkKU9p+RDjI2MH4ChLESI0Me5SRSCTpB2k/nAytH fh6HBp8pCXo0RckHUO96mOMdxsynmMmJCvYltmziUsVHhdhlySUpGG3pG/c917Sc1m5A BWr3hA75RKiI9IrHutnnXJYs2CVhvlGx/eNWJGGllNolT3jh2T6FevMeBj90OZs+C9v4 p6uw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d18si4409074pgm.212.2018.11.05.12.03.04; Mon, 05 Nov 2018 12:03:21 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387561AbeKFFYA (ORCPT + 99 others); Tue, 6 Nov 2018 00:24:00 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:40352 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725735AbeKFFYA (ORCPT ); Tue, 6 Nov 2018 00:24:00 -0500 Received: by mail-oi1-f194.google.com with SMTP id u130-v6so8634087oie.7; Mon, 05 Nov 2018 12:02:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=C9sG2KemDzFXTzVCEydyHJ9q9vQbvq4N2OSfBrV0/wc=; b=CfErFrujagdjAMG99Vovs7adT39GjAMWewVFDSYcpawEzrvcmGm4hOSOJozdHG0xq9 WnhHy2i63X7q10TeBPasxiEPjifGqWpIBFzR/TXpycqaY6Q7FVzbMSaTYn0uDsSm2ijs m7Y7Dp+C4jwZXiAX7VWbH2VoU2RQRI9akNFyFZmkBvzUd5YF2GvkqzmvtAN5xYqYZsCw fAVWA47H78We+JwGD7PQoWfQed5sGiZqocE0PMP5uTfBlKZeFWfCWVElfjWtAmuAwDMv mKP0adaV3qRuDpXdtEzyGvYlImLfWZ5ZkXBgs+KNnH7fwuGv510VywEYqJEE9V1jqewn c6VQ== X-Gm-Message-State: AGRZ1gLmv8MA0sZuqIs+RImgcj3INpE68BquYi3qKsROfB//bisPNZWX 1fJKs/y1m1NOMrUrKZjYRw== X-Received: by 2002:aca:ddc3:: with SMTP id u186-v6mr13070740oig.204.1541448160594; Mon, 05 Nov 2018 12:02:40 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id m39sm4145156otd.72.2018.11.05.12.02.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Nov 2018 12:02:39 -0800 (PST) Date: Mon, 5 Nov 2018 14:02:38 -0600 From: Rob Herring To: Kieran Bingham Cc: linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, sakari.ailus@iki.fi, Niklas =?iso-8859-1?Q?S=F6derlund?= , Jacopo Mondi , Laurent Pinchart , Kieran Bingham , linux-kernel@vger.kernel.org, Laurent Pinchart , Jacopo Mondi Subject: Re: [PATCH v4 1/4] dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286 Message-ID: <20181105200238.GA12435@bogus> References: <20181102154723.23662-1-kieran.bingham@ideasonboard.com> <20181102154723.23662-2-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181102154723.23662-2-kieran.bingham@ideasonboard.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 02, 2018 at 03:47:20PM +0000, Kieran Bingham wrote: > From: Laurent Pinchart > > The MAX9286 deserializes video data received on up to 4 Gigabit > Multimedia Serial Links (GMSL) and outputs them on a CSI-2 port using up > to 4 data lanes. > > Signed-off-by: Laurent Pinchart > Signed-off-by: Jacopo Mondi > Signed-off-by: Kieran Bingham > > --- > v3: > - Update binding descriptions > > v4: > - Define the use of a CSI2 D-PHY > - Rename pwdn-gpios to enable-gpios (with inverted polarity) > - Remove clock-lanes mapping support > - rewrap text blocks > - Fix typos > --- > .../bindings/media/i2c/maxim,max9286.txt | 182 ++++++++++++++++++ > 1 file changed, 182 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt > > diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt > new file mode 100644 > index 000000000000..672f6a4d417d > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt > @@ -0,0 +1,182 @@ > +Maxim Integrated Quad GMSL Deserializer > +--------------------------------------- > + > +The MAX9286 deserializer receives video data on up to 4 Gigabit Multimedia > +Serial Links (GMSL) and outputs them on a CSI-2 D-PHY port using up to 4 data > +lanes. > + > +In addition to video data, the GMSL links carry a bidirectional control channel > +that encapsulates I2C messages. The MAX9286 forwards all I2C traffic not > +addressed to itself to the other side of the links, where a GMSL serializer > +will output it on a local I2C bus. In the other direction all I2C traffic > +received over GMSL by the MAX9286 is output on the local I2C bus. > + > +Required Properties: > + > +- compatible: Shall be "maxim,max9286" > +- reg: I2C device address > + > +Optional Properties: > + > +- poc-supply: Regulator providing Power over Coax to the cameras > +- enable-gpios: GPIO connected to the #PWDN pin with inverted polarity > + > +Required endpoint nodes: > +----------------------- > + > +The connections to the MAX9286 GMSL and its endpoint nodes are modeled using > +the OF graph bindings in accordance with the video interface bindings defined > +in Documentation/devicetree/bindings/media/video-interfaces.txt. > + > +The following table lists the port number corresponding to each device port. > + > + Port Description > + ---------------------------------------- > + Port 0 GMSL Input 0 > + Port 1 GMSL Input 1 > + Port 2 GMSL Input 2 > + Port 3 GMSL Input 3 > + Port 4 CSI-2 Output > + > +Optional Endpoint Properties for GMSL Input Ports (Port [0-3]): > + > +- remote-endpoint: phandle to the remote GMSL source endpoint subnode in the > + remote node port. > + > +Required Endpoint Properties for CSI-2 Output Port (Port 4): > + > +- remote-endpoint: phandle to the remote CSI-2 sink endpoint node. > +- data-lanes: array of physical CSI-2 data lane indexes. > + > +Required i2c-mux nodes: > +---------------------- > + > +Each GMSL link is modeled as a child bus of an i2c bus multiplexer/switch, in > +accordance with bindings described in > +Documentation/devicetree/bindings/i2c/i2c-mux.txt. The serializer device on the > +remote end of the GMSL link shall be modelled as a child node of the > +corresponding I2C bus. > + > +Required i2c child bus properties: > +- all properties described as required i2c child bus nodes properties in > + Documentation/devicetree/bindings/i2c/i2c-mux.txt. > + > +Example: > +------- > + > + gmsl-deserializer@2c { > + compatible = "maxim,max9286"; > + reg = <0x2c>; > + poc-supply = <&camera_poc_12v>; > + enable-gpios = <&gpio 13 GPIO_ACTIVE_LOW>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + i2c@0 { > + #address-cells = <1>; > + #size-cells = <0>; It's better to not have a mixture of nodes at a level with and without unit-addresses. So I'd move all the i2c nodes under an 'i2c-mux' node. Rob