Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1380973imw; Tue, 5 Jul 2022 08:27:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vp6iYwy9dLVap/6h4g54vPEmAgUU09irO/9iDLhBsu2ZGAy9ALr5znpjBvdG1XSuhdQV/3 X-Received: by 2002:a05:6a00:24c1:b0:50d:33cf:811f with SMTP id d1-20020a056a0024c100b0050d33cf811fmr42027464pfv.78.1657034864963; Tue, 05 Jul 2022 08:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657034864; cv=none; d=google.com; s=arc-20160816; b=MkBhk0RxbWHDJMu8AuxIG+YcbVx24Vhc6fFa04ncSchWyg2Lyi6g+dO3sPDg2dVzJv DuXa3wOjt6aO00jawelQidjKd9X7AXLBnJoZz9zA0E4ZQv9VJsDh3f5hiNg3s0oVLKES WMoes9kf4vCw/vBqQzLktCmtDR6MOr9pMuJEShHUsNrDKHm+MoSXavGs4AXeYkgTq98f 2osXhFlxqyzS10zVh+py058s9/jiu999JHPpaVLCR9DyrNBXHOoFhvXJFteuioJFOUdE h63p+rdnkFXCqjE9815/IUva5ZYjwQwvpgIddaL+UAdtG0hr9DYQk6toOg/Kw21JPm/Q EbqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=4ddRelHkEFY1UZnYXTarTjVbvcAsB1IiSoDi4d3IfZk=; b=oqFBjuPoyO8t10oocUYH7rl1DvmiWqEdnps3vjcVsF/5zHPbLpt8EEduwCHzYxbR5L ET+G+k8xy3nMvuaE+9JtpkIDQYyUGESrMBi8HgislCo6iIngn2Hbk7qB7OfyCk2NzdA2 bN0t9ZZbmhug5Xc/291JBCBtE9Maqh/GthCXNbCzr98aznN2iB8wJduF1C5IUE28VPDl x5Y0JxqogZOmrN60jt/bH9zVQyH+rgKPLVpUrLgheh+mYd/yvK9SrfbEUjv6biy/sNbK QHmyOzGjYJSirrR5EbrOfrd99PvfKYxxHOOEu9Hszuk4nAKIjHpQy9KWqbydgF+guQ/1 FgMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=Js7E3vrR; 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 y21-20020a63fa15000000b0040c99b2c660si22133275pgh.177.2022.07.05.08.27.33; Tue, 05 Jul 2022 08:27:44 -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 header.i=@walle.cc header.s=mail2016061301 header.b=Js7E3vrR; 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 S230110AbiGEO6r (ORCPT + 99 others); Tue, 5 Jul 2022 10:58:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbiGEO6q (ORCPT ); Tue, 5 Jul 2022 10:58:46 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B57B8140F3; Tue, 5 Jul 2022 07:58:45 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id D9C182223E; Tue, 5 Jul 2022 16:58:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1657033123; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4ddRelHkEFY1UZnYXTarTjVbvcAsB1IiSoDi4d3IfZk=; b=Js7E3vrRQYVEs8/aFpT1YMRoL0KulR/3GCYAka7mRLV9bczZHYFcN7ujJ4uHNFeQg2uZXj JqkSTsEBOi4Nil/w+72U0dJ1kHGR0m8hCvcRLTvQQ3EJryKjGgPimr/YJOkuFXhI297rQp YzeYtIoh3YYf0g7XUnb/VNx4Rtb/+0g= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 05 Jul 2022 16:58:40 +0200 From: Michael Walle To: Han Xu Cc: Krzysztof Kozlowski , Bough Chen , ashish.kumar@nxp.com, yogeshgaur.83@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, singh.kuldeep87k@gmail.com, tudor.ambarus@microchip.com, p.yadav@ti.com, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, festevam@gmail.com, dl-linux-imx , linux-arm-kernel@lists.infradead.org, zhengxunli@mxic.com.tw Subject: Re: [PATCH 07/11] dt-bindings: spi: spi-nxp-fspi: add a new property nxp,fspi-dll-slvdly In-Reply-To: <20220705145226.tarpvub6bh67tj63@umbrella> References: <1657012303-6464-1-git-send-email-haibo.chen@nxp.com> <1657012303-6464-7-git-send-email-haibo.chen@nxp.com> <59d360ef-5374-c7a7-2995-854ab3715b25@linaro.org> <62f113a0cdb0d58bf04ab0b274912eb7@walle.cc> <20220705145226.tarpvub6bh67tj63@umbrella> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: michael@walle.cc X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Am 2022-07-05 16:52, schrieb Han Xu: > On 22/07/05 04:12PM, Krzysztof Kozlowski wrote: >> On 05/07/2022 16:06, Michael Walle wrote: >> > >> >>> >> >>> I think you could use here clock cycles or clock phase, but then it >> >>> has to be obvious >> >>> it is that unit. >> >> >> >> Hi Krzysztof, >> >> >> >> Let me clarify it, in the document a term "delay cell" was used to >> >> descript this register bit. Each delay cell equals "1/32 clock phase", >> >> so the unit of delay cell is clock phase. The value user need set in >> >> DT just number to define how many delay cells needed. >> > >> > Then should the unit be "-degrees" and the possible range 0-180? >> >> Thanks. We don't have it documented currently, but the unit seems >> reasonable. > > IMO, use the unit "-degrees" makes it more complicate. Personaly I > would > calculate how many clock cycle delay needed, such as 1/4 clock cycle or > half > clock cycle. Using degree brings extra calculation. What is the extra calculation here? For hardware engineer who has to specify this, it is easier to give the delay in clock phase (in degrees) rather than reading the documentation and transform that into a value given in 1/32 part of a clock, that should be part of the driver. > The granularity of the clock phase change is 1/32 of 180 degree, but > the range > 0-180 make people feel it can be set in any degree in range. I'm not sure if the DT bindings have a granularity feature but you could just round to the next possible value. I guess that is the case for any value which isn't given as the raw value. -michael > If I describe all details of the relation between "nxp,fspi-dll-slvdly" > and > "delay cell" in patch v2, do you think it's clear for users?