Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1830468ybl; Thu, 19 Dec 2019 03:48:42 -0800 (PST) X-Google-Smtp-Source: APXvYqw/ujfDxnh/4c6rBazFt+Uubcsy8oVRmo7wqlBSqYfZgdLgbjBTFTqPklqqrqKEBiz23Sb0 X-Received: by 2002:a9d:39cb:: with SMTP id y69mr8806874otb.283.1576756122561; Thu, 19 Dec 2019 03:48:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576756122; cv=none; d=google.com; s=arc-20160816; b=K2dXXt8fNPO6CRrMFMoYNDiAr0HHfT4DQI2CHIjYXLyg8sxE3Uxo7JX3cG7EnLD6OL UNFB+y6cOLXkVn6DL+IfUb7ppnrd2n4DfagZg13bwDsox/P0qETC0IXDhpALZph2CdRl neIT0iKQwb9LKkZDUdd8L+CPnJcw6DgIv1HkY++QWW8jq5pUZhjA+dXOd/0nHv0NHZtb ZLCwbcQ2TmHdujqwKsGkwmXBpnYk4cS5hVOHgiar5d159Qt5cq+5RDzo1dDUQX1dSTbS rAj4use6ws2RlOLVOxsxIyXNn8ScGoAa+EyGVLUMC5sGrClFsGKDCHiz2tkxxDxyZKrG gw5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:openpgp:reply-to:from:references :cc:to:subject:dkim-signature; bh=odswvqECYmJxqgkH0ii6gHqpKqeHuJfC3nGA1cQXaK0=; b=I5L8Axx56HjsNyLK0fumtJYjvYkR+ylnCErRLEve898FqV+pJNkRqyEIj6+sueFPAj of57b50pMjcxfVReBkhED2/CAyIz0DJOQHloWJIoctrSvDpZRz91ncQIT5XU8ezEMYyC sQJPDwKem9Kz9/m39+sLxPEBEMIjVDEqy95k81ahZ6hxwMHInv4kKAT8WQu0Eqfj11Gj OIcPgxQvmDjpx7/3ddcM4WrUmXvqzHn6BW8KzOHh4VeM8z7F0lqIDs+gelpRUvs5KEQK hg8QMaKcWaouqrVuzrkmYQihsDc45fauiTNOgcla24SJS6V/A8k5d6x0mzaxcqe8BPSu PDGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HC3WbIbu; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f98si2711332otf.145.2019.12.19.03.48.30; Thu, 19 Dec 2019 03:48:42 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HC3WbIbu; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726824AbfLSLqj (ORCPT + 99 others); Thu, 19 Dec 2019 06:46:39 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:60306 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726704AbfLSLqj (ORCPT ); Thu, 19 Dec 2019 06:46:39 -0500 Received: from [10.0.51.123] (freisa.pact.srf.ac.uk [193.37.225.51]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CC5BAE3B; Thu, 19 Dec 2019 12:46:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1576755994; bh=NWKpXW5WuiMZ4Pv+o+46Dp9oxBqgKSEn7q7K4h4XIH0=; h=Subject:To:Cc:References:From:Reply-To:Date:In-Reply-To:From; b=HC3WbIbuK/DzkEBMgMfLahCwFbUr+iq26wpS3PQwyJbxyCsGXCdf9k74wEyT8SZoM fpKII7TpVa1x5bANjXsKjMwgUngcIRNP8iiVvbicSjzXlIYAcxSQ02Mly+DlxDFGbe gH3SwUWpedVZQQ4bBjq627xflMPxvfbM62S1LU8g= Subject: Re: [PATCH v6 1/2] dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286 To: Rob Herring , Kieran Bingham Cc: linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , Kieran Bingham , Laurent Pinchart , Jacopo Mondi , =?UTF-8?Q?Niklas_S=c3=b6derlund?= , Mark Rutland , sakari.ailus@iki.fi, Hans Verkuil , Laurent Pinchart , Jacopo Mondi , =?UTF-8?Q?Niklas_S=c3=b6derlund?= References: <20191211124459.20508-1-kieran.bingham+renesas@ideasonboard.com> <20191211124459.20508-2-kieran.bingham+renesas@ideasonboard.com> <20191218181352.GA6385@bogus> From: Kieran Bingham Reply-To: kieran.bingham@ideasonboard.com Openpgp: preference=signencrypt Autocrypt: addr=kieran.bingham@ideasonboard.com; keydata= mQINBFYE/WYBEACs1PwjMD9rgCu1hlIiUA1AXR4rv2v+BCLUq//vrX5S5bjzxKAryRf0uHat V/zwz6hiDrZuHUACDB7X8OaQcwhLaVlq6byfoBr25+hbZG7G3+5EUl9cQ7dQEdvNj6V6y/SC rRanWfelwQThCHckbobWiQJfK9n7rYNcPMq9B8e9F020LFH7Kj6YmO95ewJGgLm+idg1Kb3C potzWkXc1xmPzcQ1fvQMOfMwdS+4SNw4rY9f07Xb2K99rjMwZVDgESKIzhsDB5GY465sCsiQ cSAZRxqE49RTBq2+EQsbrQpIc8XiffAB8qexh5/QPzCmR4kJgCGeHIXBtgRj+nIkCJPZvZtf Kr2EAbc6tgg6DkAEHJb+1okosV09+0+TXywYvtEop/WUOWQ+zo+Y/OBd+8Ptgt1pDRyOBzL8 RXa8ZqRf0Mwg75D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zuuRBv8wX4OQl+hbWbB/VKIx5HKlLu1eypen/5lNVzSqMMIYkkZcjV2SWQyUGxSwq0O/sx S0A8/atCHUXOboUsn54qdxrVDaK+6jIAuo8JiRWctP16KjzUM7MO0/+4zllM8EY57rXrj48j sbEYX0YQnzaj+jO6kJtoZsIaYR7rMMq9aUAjyiaEZpmP1qF/2sYenDx0Fg2BSlLvLvXM0vU8 pQk3kgDu7kb/7PRYrZvBsr21EIQoIjXbZxDz/o7z95frkP71EaICttZ6k9q5oxxA5WC6sTXc MW8zs8avFNuA9VpXt0YupJd2ijtZy2mpZNG02fFVXhIn4G807G7+9mhuC4XG5rKlBBUXTvPU AfYnB4JBDLmLzBFavQfvonSfbitgXwCG3vS+9HEwAjU30Bar1PEOmIbiAoMzuKeRm2LVpmq4 WZw01QYHU/GUV/zHJSFk Organization: Ideas on Board Message-ID: <86bbf27f-dc0c-0661-13b8-e96b28ec7529@ideasonboard.com> Date: Thu, 19 Dec 2019 11:46:31 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191218181352.GA6385@bogus> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks Rob, On 18/12/2019 18:13, Rob Herring wrote: > On Wed, Dec 11, 2019 at 12:44:58PM +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 >> Reviewed-by: Niklas Söderlund >> Signed-off-by: Niklas Söderlund >> --- >> .../bindings/media/i2c/maxim,max9286.yaml | 289 ++++++++++++++++++ >> 1 file changed, 289 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml > > A couple of nits, with those fixed: I'll fix them up :-D Thank you very much. Converting this to YAML picked up a few issues in our DTS - so it certainly seems very worthwhile! -- Kieran > Reviewed-by: Rob Herring > >> >> diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml >> new file mode 100644 >> index 000000000000..d37ea2c432f6 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml >> @@ -0,0 +1,289 @@ >> +# SPDX-License-Identifier: GPL-2.0-only > > Dual license new bindings please: > > (GPL-2.0-only OR BSD-2-Clause) That's two of those I've got to fix up for you :D. I'll make sure all new ones I add have this correctly presented. >> +# Copyright (C) 2019 Renesas Electronics Corp. >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/media/i2c/maxim,max9286.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Maxim Integrated Quad GMSL Deserializer >> + >> +maintainers: >> + - Jacopo Mondi >> + - Kieran Bingham >> + - Laurent Pinchart >> + - Niklas Söderlund >> + >> +description: -| > > I usually see '|-', but I guess that works. Oh, I'm happy to change to conform to whatever is the accepted norm... > >> + 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. >> + >> +properties: >> + '#address-cells': >> + const: 1 >> + >> + '#size-cells': >> + const: 0 >> + >> + compatible: >> + const: maxim,max9286 >> + >> + reg: >> + description: I2C device address >> + maxItems: 1 >> + >> + poc-supply: >> + description: Regulator providing Power over Coax to the cameras >> + maxItems: 1 >> + >> + enable-gpios: >> + description: GPIO connected to the \#PWDN pin with inverted polarity >> + maxItems: 1 >> + >> + ports: >> + type: object >> + description: -| >> + The connections to the MAX9286 GMSL and its endpoint nodes are modelled >> + 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 >> + >> + properties: >> + '#address-cells': >> + const: 1 >> + >> + '#size-cells': >> + const: 0 >> + >> + port@[0-3]: >> + type: object >> + properties: >> + reg: >> + enum: [ 0, 1, 2, 3 ] >> + >> + endpoint: >> + type: object >> + >> + properties: >> + remote-endpoint: >> + description: -| >> + phandle to the remote GMSL source endpoint subnode in the >> + remote node port. >> + maxItems: 1 > > This is not an array. You can just drop and assume it has a type defined > elsewhere. > Will fix and validate. >> + >> + required: >> + - remote-endpoint >> + >> + required: >> + - reg >> + - endpoint >> + >> + additionalProperties: false >> + >> + port@4: >> + type: object >> + properties: >> + reg: >> + const: 4 >> + >> + endpoint: >> + type: object >> + >> + properties: >> + remote-endpoint: >> + description: phandle to the remote CSI-2 sink endpoint. >> + maxItems: 1 > > And here. Likewise. > >> + >> + data-lanes: >> + description: array of physical CSI-2 data lane indexes. >> + >> + required: >> + - remote-endpoint >> + - data-lanes >> + >> + required: >> + - reg >> + - endpoint >> + >> + additionalProperties: false >> + >> + required: >> + - port@4 >> + >> + i2c-mux: >> + type: object >> + description: -| >> + Each GMSL link is modelled 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. >> + >> + properties: >> + '#address-cells': >> + const: 1 >> + >> + '#size-cells': >> + const: 0 >> + >> + additionalProperties: false >> + >> +required: >> + - compatible >> + - reg >> + - ports >> + - i2c-mux >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + #include >> + >> + i2c@e66d8000 { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + reg = <0 0xe66d8000 0 0x40>; >> + >> + gmsl-deserializer@2c { >> + compatible = "maxim,max9286"; >> + reg = <0x2c>; >> + poc-supply = <&camera_poc_12v>; >> + enable-gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; >> + >> + ports { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + port@0 { >> + reg = <0>; >> + >> + max9286_in0: endpoint { >> + remote-endpoint = <&rdacm20_out0>; >> + }; >> + }; >> + >> + port@1 { >> + reg = <1>; >> + >> + max9286_in1: endpoint { >> + remote-endpoint = <&rdacm20_out1>; >> + }; >> + }; >> + >> + port@2 { >> + reg = <2>; >> + >> + max9286_in2: endpoint { >> + remote-endpoint = <&rdacm20_out2>; >> + }; >> + }; >> + >> + port@3 { >> + reg = <3>; >> + >> + max9286_in3: endpoint { >> + remote-endpoint = <&rdacm20_out3>; >> + }; >> + }; >> + >> + port@4 { >> + reg = <4>; >> + >> + max9286_out: endpoint { >> + data-lanes = <1 2 3 4>; >> + remote-endpoint = <&csi40_in>; >> + }; >> + }; >> + }; >> + >> + i2c-mux { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + i2c@0 { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + reg = <0>; >> + >> + camera@51 { >> + reg = <0x51>; >> + >> + port { >> + rdacm20_out0: endpoint { >> + remote-endpoint = <&max9286_in0>; >> + }; >> + }; >> + >> + }; >> + }; >> + >> + i2c@1 { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + reg = <1>; >> + >> + camera@52 { >> + reg = <0x52>; >> + >> + port { >> + rdacm20_out1: endpoint { >> + remote-endpoint = <&max9286_in1>; >> + }; >> + }; >> + }; >> + }; >> + >> + i2c@2 { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + reg = <2>; >> + >> + camera@53 { >> + reg = <0x53>; >> + >> + port { >> + rdacm20_out2: endpoint { >> + remote-endpoint = <&max9286_in2>; >> + }; >> + }; >> + }; >> + }; >> + >> + i2c@3 { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + reg = <3>; >> + >> + camera@54 { >> + reg = <0x54>; >> + >> + port { >> + rdacm20_out3: endpoint { >> + remote-endpoint = <&max9286_in3>; >> + }; >> + }; >> + }; >> + }; >> + }; >> + }; >> + }; >> -- >> 2.20.1 >> -- Regards -- Kieran