Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1322855imw; Tue, 5 Jul 2022 07:32:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sFO+wZHNit267JjeiFCwMOU//Wpkhz2WMoPtsvuGVTVa6UFZgZLLa25+bWuAUgycoEs0a+ X-Received: by 2002:a17:90b:3b92:b0:1ef:9234:399b with SMTP id pc18-20020a17090b3b9200b001ef9234399bmr7548786pjb.176.1657031568964; Tue, 05 Jul 2022 07:32:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657031568; cv=none; d=google.com; s=arc-20160816; b=Kr+1Der/2rh3xy8c1+cHD5EO07SltcI2eOLUA8DJIID6OE0njSrQxnjlotG5wjY8mz 5v4L/2wY85ZsE8683b78a+L6//XqF5RyMUDwGbjLavH1tId96wG6SCiRSTIt4cFcxfWN OJY0eA8v1BPg7STAAeSRqh6pD4fIgUjNcNtROYC5FsfFrGJRICkBuxOfF003GSLcNJPa rZcbpP6LYcN6lDyJz62g9A60S6uPuHeJS/u+Wbcr3WmAx9Ki1gYZ0XdzYGNvo9pXN6+S p9tPvmgrCc60j2dU5X9L9cRTCPlG2FabroO+UVGcZzmW8TbI1vWZIORv2eLEDlFnfLGi ecyA== 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=j7NwS041H2A7Av1dAuyz4ev4klbMrMlMS8fdSFJVby0=; b=sco1KAqPdV7fGkO1jVUNxuhISkqylRiFRoum/fCLxAIVea135PiJMZY8dMrkfWkwBN yCzinUmfBxobZ4vf622WjpL23vRfPYu67dLpI/oP+YPubK8Pvz2mb/oG+QrzLcs6Gv2g SqGrVUSA+hPZLKr8nE33a17eWR7+szVNrDw9mluZeSpu1/aXmF42OTFwyQCT/NkxwJXx NLPMtrLumufwMl7jCVg03DsRQ83joBoGeHczR3wWuX3zFawCzJ6yFef/CbHTiaiKPSM2 OLGHLLR2Jp7rWsNe1Uf9wy/tkl7MwnJ+++uYp8RUzwuWtVSfXf9hUW3ywSOMtvvhY3u3 JEww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=rYoDNOwU; 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 l2-20020a654c42000000b004118cff9aabsi19441767pgr.127.2022.07.05.07.32.36; Tue, 05 Jul 2022 07:32:48 -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=rYoDNOwU; 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 S231313AbiGEOM5 (ORCPT + 99 others); Tue, 5 Jul 2022 10:12:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233417AbiGEOMf (ORCPT ); Tue, 5 Jul 2022 10:12:35 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4287243; Tue, 5 Jul 2022 07:06:04 -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 DFACE2223E; Tue, 5 Jul 2022 16:06:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1657029962; 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=j7NwS041H2A7Av1dAuyz4ev4klbMrMlMS8fdSFJVby0=; b=rYoDNOwUzIU0r4i6jlRs02msbQ4lBYNejXJBFtTH49c+8b2klkF80wDkuYBDt6KJSdka// 5mLtI5ihr7pLQX2MNAxj1/OO9avk4/GLuPyEYiAB++2/50uxK1jeqV53JZS+nql24KlWza lnmEtVGmJo3ZGK3Kzsx6PY2eJ7e1Byw= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 05 Jul 2022 16:06:02 +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: 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> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <62f113a0cdb0d58bf04ab0b274912eb7@walle.cc> 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:00, schrieb Han Xu: >> -----Original Message----- >> From: Krzysztof Kozlowski >> Sent: Tuesday, July 5, 2022 8:29 AM >> To: Han Xu ; 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; >> michael@walle.cc; miquel.raynal@bootlin.com; richard@nod.at; >> vigneshr@ti.com; >> shawnguo@kernel.org; s.hauer@pengutronix.de; kernel@pengutronix.de >> Cc: 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 >> >> On 05/07/2022 15:19, Han Xu wrote: >>>>>>> + nxp,fspi-dll-slvdly: >>>>>>> + $ref: /schemas/types.yaml#/definitions/uint32 >>>>>>> + description: | >>>>>>> + Specify the DLL slave line delay value. >>>>>> >>>>>> What are the units? >>>>> >>>>> Do you mean here need to give more detail explain about this >>>>> properity? >>>>> >>>>> How about change like this? >>>>> Specify the DLL slave line delay value. The delay target for >>>>> slave delay line is: >>>> ((nxp,fspi-dll-slvdly+1) * 1/32 * clock cycle of reference clock >>>> (serial root clock). >>>> >>>> This would be good. >>>> >>>>> The range of this value is 0~16. >>>> >>>> This needs to go to schema instead as "maximum: 16". >>>> >>>> But still the question is - what are the units used in this "delay"? >>>> ms? us? >>> >>> HI Krzysztof, >>> >>> According to the formula, the range should be 0~15, 16 should do >>> nothing or no >> delay. >> >> Sure, just add some constraint. >> >>> >>> The unit should be clock phase. In other words, the delay can be in >>> range of >> 1/32~1/2 clock cycle. >> >> So we probably misunderstood each other... looking at the driver it >> also explains >> the confusing. You encoded here register value which is pretty often >> wrong >> approach. >> >> This should be instead meaningful value for the user of the bindings, >> so usually >> using one of property units: >> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com >> %2Fdevicetree-org%2Fdt- >> schema%2Fblob%2Fmain%2Fdtschema%2Fschemas%2Fproperty- >> units.yaml&data=05%7C01%7Chan.xu%40nxp.com%7C0ffe3d706e064f14382 >> 108da5e8a5add%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6379262 >> 45564450475%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV >> 2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Q4 >> SfVnBN%2BQ0vYKJzRf%2FXZkCA1WGyPV9doFcb%2BLSKx4w%3D&reserved=0 Hm, you should fix your mail server. >> >> 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? -michael