Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp353373rwd; Wed, 7 Jun 2023 00:26:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5LDBWklQ3fAPPSN2+WiNGx7maULFx1b5nMNEaIRo7++AmFsPh1xRR+ZCTBnhVXtHF/vTot X-Received: by 2002:a05:6a21:1191:b0:10f:f8e2:183c with SMTP id oj17-20020a056a21119100b0010ff8e2183cmr667648pzb.51.1686122778173; Wed, 07 Jun 2023 00:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686122778; cv=none; d=google.com; s=arc-20160816; b=dHI6NNm4vgxfB/64+nHSXX15YTQ5z6whLpS4qf1eoXS8yfIBcsmbez+QTJllRojcg0 m/o+B2ssu3xPmf/sPe14eeY/5c7L5Bw5K/T+WCWsrcouvAjfWvoUWxTAQeUQxax45+Yo pVTL2uchYCIn6zN3EJ9mtBltqpQfkNTerI6YV9Y87iXgysfaAkE/GwKlnaKF+WCFPEXA 7Lhz1TKepMNtQFSzLC0BIZHbIuiTjT5dXCsVuBroZMh6xqUsJtw8uLmI/RoUXAfmF6gi MFKLn+2rLGBaHI2ITHwwF2wIhHkM9mR4U2uXDk/u2oDlKNxMhTP5OY2pZzEqfBB7AJBm mFMQ== 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=UcjRw5yEiuOw1RirS6Gv9DksEnhENYHMZvUkjV/z12I=; b=GFSVx6CrQhciwZAvUnBaHdQdhCK7FdNi9rLcQ+KaRQ6tBTc7vwnZrfMJqZWDsfu8hg q+5POGrFj0Z7MYDJnTOyTKMqd28ZRM984H8ME9Zazq66y+Eyt8ejex2IY9xTZT1nGJP2 Yc8DGZShVpFgJPtrX1BckFRBWvQjMvqaTxgt/Tinp9NsghnyNH6iMuGAGyLpFtf+b6wy lEGvo8/MHm7YDbNA9QqVP0kbL5wI1lBZVlSWyd6HM1i2EwHWc/G2IU6dp1lwrVN8IdmE Fd8yJ0i8R773O8LkG/0nhQnXwoZQpqGr8xMj5E+5CxazTBlYKlq4Ag9OlJy8WyCThdyc jL3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=biShkbo0; 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 k8-20020a170902760800b001b03a1a3169si8361204pll.257.2023.06.07.00.26.05; Wed, 07 Jun 2023 00:26:18 -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=biShkbo0; 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 S238927AbjFGHVk (ORCPT + 99 others); Wed, 7 Jun 2023 03:21:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233896AbjFGHVj (ORCPT ); Wed, 7 Jun 2023 03:21:39 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92BD0173B; Wed, 7 Jun 2023 00:21:38 -0700 (PDT) Received: from pendragon.ideasonboard.com (om126233170111.36.openmobile.ne.jp [126.233.170.111]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 234E575B; Wed, 7 Jun 2023 09:21:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1686122471; bh=izbm0tBWyfpgAY85K5Gzy2xWp3Wehi94Z/QKKnMzAdo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=biShkbo0M2TQC/NMJNDFIP2cniHtDzGtCbfrEW0uEPc2Q+5u8TVNlqLN3/hbZJASy jWeQpVmb3h3Tys7+UG7FZYMurSP6Y3wdHhUP5JFDWxEnsuuNikmWjsMqpp6sKIseZI Eza9EVQIP+ncwFqwGno1QZwDLq1l1yDxkqfh34jQ= Date: Wed, 7 Jun 2023 10:21:34 +0300 From: Laurent Pinchart To: Tommaso Merciai Cc: Conor Dooley , 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: <20230607072134.GK14101@pendragon.ideasonboard.com> References: <20230606155416.260941-1-tomm.merciai@gmail.com> <20230606155416.260941-3-tomm.merciai@gmail.com> <20230606163656.GI25679@pendragon.ideasonboard.com> <20230606-jaundice-womankind-7e583789fb7a@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 On Wed, Jun 07, 2023 at 09:14:48AM +0200, Tommaso Merciai wrote: > On Tue, Jun 06, 2023 at 07:07:42PM +0100, Conor Dooley wrote: > > On Tue, Jun 06, 2023 at 07:36:56PM +0300, Laurent Pinchart wrote: > > > On Tue, Jun 06, 2023 at 05:54:03PM +0200, Tommaso Merciai wrote: > > > > > > + 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. > > > > Question about the property. > > Why not make it have a minimum value of 1 and drop the special-case > > behaviour for zero? > > Personally I prefer to stay with zero case. > This reflect better the real camera register behaviour. Speaking of which, could you document the maximum value in the bindings ? > (also is optional) -- Regards, Laurent Pinchart