Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7396361rwd; Tue, 6 Jun 2023 10:06:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7qk832plhgzbszSbf+D0TibrQX0Uwg9DUQrIeDf++7MqrARh1zDmDhfAiMXCRCC27APG7i X-Received: by 2002:a05:6a20:3c8e:b0:103:8c8b:c689 with SMTP id b14-20020a056a203c8e00b001038c8bc689mr317889pzj.51.1686071181781; Tue, 06 Jun 2023 10:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686071181; cv=none; d=google.com; s=arc-20160816; b=JldNhzPL2VtENf5lgdNeCalSwaxB0wnett263Mc5gFQXe/ciBevydR03Q5oXC++iBD dBgt8TZDv0t1CzDKg/U9x8QOEBK0XdCg5O2KI1CL9odZb3wRhZi+97W4vbTydrvO9CGu wYjNd5grTvM43x7Rg8lsW2cwO3NgNL61sEgY1UUxzUd9VTEwCPfb9ViVjOTkRVWqAXi/ cQW1I2xi9DZmkae7wYg1sbtduNbkDN1flnR/gDuHNFBLVW0SFmA3r9mFxExmzoSzbkCJ fF26wVephfhK5wjxjhkaIxuT5dyJEKGiChzSE1y+WWXecaWrZbUFeGtxMyT+5OyfmqOd AkNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cF+sUxsYtTowdeX7x429Qptz7AkKP2u1kLqUfFpyYCg=; b=0jVu+aliAF/nY5JHwS2ofjJWYuYP9Db1Ifvwe8Ku19c2IkEuNiRTqbvcs7XmV2+g0J 51DvCBhxCCQqzmkvPOvBaz2qIbZ965Rn/8NfST3KuvvmMWBZ0fBtlbUQn2AZ9N3KE00i 1nnxebSu/ayW2+Q2e39SMi0JETbS6ZGRpxMp6A1ZsKKvsRik92e7Z7D+6d+0sNIulvhE zJHxDhpc6nCWARnEeA8OT6nKN/Gpgp8Ifg7nXyQFetABJU4x+mlN0GunZXcdP1NED7iF 1D3iWVoFC91N2Kk5mla7ozH9QwEqZF3XNwtNrtDkRJrgywIWXNpMeCRldPcPZEOn6JK7 FMEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="jjaK0/jj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r10-20020a638f4a000000b0054402b987eesi499452pgn.213.2023.06.06.10.06.05; Tue, 06 Jun 2023 10:06:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="jjaK0/jj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238139AbjFFQhF (ORCPT + 99 others); Tue, 6 Jun 2023 12:37:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238106AbjFFQhD (ORCPT ); Tue, 6 Jun 2023 12:37:03 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EEC5E60; Tue, 6 Jun 2023 09:37:01 -0700 (PDT) Received: from pendragon.ideasonboard.com (om126253223039.31.openmobile.ne.jp [126.253.223.39]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2F4F0283; Tue, 6 Jun 2023 18:36:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1686069394; bh=mIN2yt0zcJ6bRzfCdL2PKquhnpwr1YRPgjxLXylXsKo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jjaK0/jjSOSRMeHfLvhGxZb63kuxTMpVU5GNuT7Wvlxzukm/6hkImiy0Wgf0zYrEP n1oqnTIBcoNxaiWBaKFhTtHLzXjdtLjzTxP/ekbSvHyO5pLC0kqLyvYh8G4aRyKbiL Pe5y4/sIfabYgiwL5oOJQqboDn0m3k0JRx1ZjeXc= Date: Tue, 6 Jun 2023 19:36:56 +0300 From: Laurent Pinchart To: Tommaso Merciai Cc: jacopo.mondi@ideasonboard.com, martin.hecht@avnet.eu, michael.roeder@avnet.eu, linuxfancy@googlegroups.com, Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Sakari Ailus , Hans Verkuil , Marco Felsch , Gerald Loacker , Mikhail Rudenko , Shawn Tu , Linus Walleij , Benjamin Mugnier , Krzysztof =?utf-8?Q?Ha=C5=82asa?= , Nicholas Roth , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/3] media: dt-bindings: alvium: add document YAML binding Message-ID: <20230606163656.GI25679@pendragon.ideasonboard.com> References: <20230606155416.260941-1-tomm.merciai@gmail.com> <20230606155416.260941-3-tomm.merciai@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230606155416.260941-3-tomm.merciai@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tommaso, Thank you for the patch. On Tue, Jun 06, 2023 at 05:54:03PM +0200, Tommaso Merciai wrote: > Add documentation of device tree in YAML schema for the ALVIUM > Camera from Allied Vision Inc. > > References: > - https://www.alliedvision.com/en/products/embedded-vision-solutions > > Signed-off-by: Tommaso Merciai > --- > Changes since v1: > - Fixed build error as suggested by RHerring bot > > Changes since v2: > - Fixed License as suggested by KKozlowski/CDooley > - Removed rotation property as suggested by CDooley/LPinchart > - Fixed example node name as suggested by CDooley > - Fixed title as suggested by LPinchart > - Fixed compatible name as suggested by LPinchart > - Removed clock as suggested by LPinchart > - Removed gpios not as suggested by LPinchart > - Renamed property name streamon-delay into alliedvision,lp2hs-delay-us > - Fixed vendor prefix, unit append as suggested by KKozlowski > - Fixed data-lanes > - Fixed blank space + example indentation (from 6 -> 4 space) as suggested by KKozlowski > - Dropped status into example as suggested by KKozlowski > - Added vcc-ext-in supply as suggested by LPinchart > - Dropped pinctrl into example as suggested by LPinchart > > .../media/i2c/alliedvision,alvium-csi2.yaml | 93 +++++++++++++++++++ > 1 file changed, 93 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/i2c/alliedvision,alvium-csi2.yaml > > diff --git a/Documentation/devicetree/bindings/media/i2c/alliedvision,alvium-csi2.yaml b/Documentation/devicetree/bindings/media/i2c/alliedvision,alvium-csi2.yaml > new file mode 100644 > index 000000000000..191534e2f7bd > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/i2c/alliedvision,alvium-csi2.yaml > @@ -0,0 +1,93 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/i2c/alliedvision,alvium.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Allied Vision Alvium Camera > + > +maintainers: > + - Tommaso Merciai > + - Martin Hecht > + > +allOf: > + - $ref: /schemas/media/video-interface-devices.yaml# > + > +properties: > + compatible: > + const: alliedvision,alvium-csi2 > + > + reg: > + maxItems: 1 > + > + vcc-ext-in-supply: > + description: > + Definition of the regulator used as interface power supply. The regulator that supplies power to the VCC_EXT_IN pins. > + > + alliedvision,lp2hs-delay-us: > + maxItems: 1 > + description: > + Low power to high speed delay time in microseconds. You can drop "in microseconds", that's implied by the suffix. > + The purpose of this property is force a DPhy reset for the period > + described by the microseconds on the property, before it starts > + streaming. To be clear, with that value bigger than 0 the Alvium > + forces a dphy-reset on all lanes for that period. That means all > + lanes go up into low power state. This may help a csi2 rx ip to > + reset if that IP can't deal with a continous clock. I'd like to propose what I think is a clearer version: description: | Low power to high speed delay time. If the value is larger than 0, the camera forces a reset of all D-PHY lanes for the duration specified by this property. All lanes will transition to the low-power state and back to the high-speed state after the delay. Otherwise the lanes will transition to and remain in the high-speed state immediately after power on. This is meant to help CSI-2 receivers synchronizing their D-PHY RX. Reviewed-by: Laurent Pinchart > + > + port: > + description: Digital Output Port > + $ref: /schemas/graph.yaml#/$defs/port-base > + additionalProperties: false > + > + properties: > + endpoint: > + $ref: /schemas/media/video-interfaces.yaml# > + unevaluatedProperties: false > + > + properties: > + link-frequencies: true > + > + data-lanes: > + minItems: 1 > + items: > + - const: 1 > + - const: 2 > + - const: 3 > + - const: 4 > + > + required: > + - data-lanes > + - link-frequencies > + > +required: > + - compatible > + - reg > + - vcc-ext-in-supply > + - port > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + alvium: camera@3c { > + compatible = "alliedvision,alvium-csi2"; > + reg = <0x3c>; > + vcc-ext-in-supply = <®_vcc_ext_in>; > + alliedvision,lp2hs-delay-us = <20>; > + > + port { > + alvium_out: endpoint { > + remote-endpoint = <&mipi_csi_0_in>; > + data-lanes = <1 2 3 4>; > + link-frequencies = /bits/ 64 <681250000>; > + }; > + }; > + }; > + }; > + > +... -- Regards, Laurent Pinchart