Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp441299rwb; Tue, 29 Nov 2022 00:12:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf7PMvszNwSpagEup6ci4Z7w31N/EPwSTM/iK4d22Vm9u3TJ6BCpsZ5c9gQTpFmfM7aX7jId X-Received: by 2002:a17:906:328e:b0:78d:7f22:2c53 with SMTP id 14-20020a170906328e00b0078d7f222c53mr30580013ejw.420.1669709539338; Tue, 29 Nov 2022 00:12:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669709539; cv=none; d=google.com; s=arc-20160816; b=v0558oztLjdE4i3GxDXRGbVa/Wg0kWHfhQ3p1BVrq49ZVdvQ2kE9nbBpjb6X9kgN3/ EwKbul2wT4vL6SiNhHkrzT+TH8SNObaPMx2qSi78GggQowS8fq4mSbu0JZtc6AwiB2Kw CEpTjG4K9XM0EREHHx/OFFrKivMSf/BtYGmXcu2KGPI7YIdUhEQwNoYENUr+BdsgLLqq ZZ6kBQFH750qw5E8UuXMcVaBCAyw88ryRWcTqp7HtOxdRVUIcnMYhNZcOzZTbp7l/RH4 86Thghcp8Qahgh0txdMaUBJF5k5POIVwx94vBIn2E/a09kXLB6Nxw5wpYxDqBHUI4u5A 8c0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=loSpF9AgG01RMo3LBV/v8v6fFtboHwkwvrGYRwDPayw=; b=tyXozjnBZD+bYxhScvCtJnhqCXFZTVO0+3hMrm8FmCzjBK5+9hwSbDZH2a6Ynjfx19 pR7JocUZjHa/CYaYCs3qiT/7G9taffJqAupS+vdOiCO1jhgOd03FEsJ1dXeCCxREP9PW MAdu1qC81jyV8HB0ABCUcWMkZza5QRdSrlaQW6bCQlxrbvg1l9DyKrc9VqYn2Pvfj5vd ASLZQU8J+xFgt11AN1icd6NMGBNrBA5sKNd3yBvwPyPEzn1CA1O1a5EeCqxruTqtxadq HxEvJAMb3OC9XEfKGv5ZaNJix308Dryg76rjpXvvcL9wJR5NLlgt4NjzLnu7m+vQ+K+y u09g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BCIwFn6W; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp3-20020a1709071b0300b00781d82a6fc9si11359525ejc.264.2022.11.29.00.11.58; Tue, 29 Nov 2022 00:12:19 -0800 (PST) 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=@linaro.org header.s=google header.b=BCIwFn6W; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229579AbiK2HrL (ORCPT + 83 others); Tue, 29 Nov 2022 02:47:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbiK2HrJ (ORCPT ); Tue, 29 Nov 2022 02:47:09 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63A0C51C0E for ; Mon, 28 Nov 2022 23:47:08 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id g7so21207887lfv.5 for ; Mon, 28 Nov 2022 23:47:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=loSpF9AgG01RMo3LBV/v8v6fFtboHwkwvrGYRwDPayw=; b=BCIwFn6W/n3Cf25bMWz/YeiC1vDxWars4v8YMEFnaxBFn1+klIarsq0thr5IvFXBd9 y0iEYk/HW1kb38E9fGJQE23xoYKh1JSMPNptDyAci8eDnjw187PoZRcMaTSsGScprKF0 3JnzlEVO7XLzbb726ClGkCFzGKUg130Zltw6RkyFgarJr3EFrx3Ku1npNJ8ga77eTfkO 69uWTfnN2vC1onzoddkNRL9JzocY4lCxV2vQJqwWxkWEMQCWlm07jXhcvDk8tqH+MEI6 NmW+Z+mOT5piPL3GJr0IjEujQDbz1T01BGCV4QvqAHhK5GOztAAeZlu9lhf35ypj5sSe RrOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=loSpF9AgG01RMo3LBV/v8v6fFtboHwkwvrGYRwDPayw=; b=BYxO/+rgVlNALSIyJVH6r250HPuXwimgCxLReP6IEmwPy/fobOMRqhmn4tJtx5yzK/ oJB8gEq3rnPBEcTWKhL7XSdFw7GDGzSJwHdTtH6oT69TI3+vqIVIHDYswzGmCsns09qO 5YLNjDQM0GPJUwOeXk+xJLXkYmBqPn6IYWGnXFEcShDugg4PfRHPSmY5bgcOTZD6WkJi ziX9nrusQ8yVPAjYn9k1BpvNC6RG1mv5GA8DP9Ml+2Yt8ZA0ErZ6rEXXia3fqsctIFGS EWON2Dn82bDbnWCWAlqCeBeTiPzNCqjPbQcEOUE63eWZh2hLWOiB1CslTVUlAUhDvTBJ vtww== X-Gm-Message-State: ANoB5pmdfxAJUdkQhepZPgdg6gkdm9vZhM4a92eS4wF0FSOEWF38u0Zm GSvt1yMVHRnZbxwOvm8ABaatWw== X-Received: by 2002:a05:6512:2212:b0:4b5:acf:8789 with SMTP id h18-20020a056512221200b004b50acf8789mr4757200lfu.549.1669708026761; Mon, 28 Nov 2022 23:47:06 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id r13-20020ac252ad000000b004b49025f96dsm2096814lfm.187.2022.11.28.23.47.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Nov 2022 23:47:06 -0800 (PST) Message-ID: <08ebc76a-0220-f984-b546-23dba8677be9@linaro.org> Date: Tue, 29 Nov 2022 08:47:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH 7/9] dt-bindings: spi: mtk-snfi: add two timing delay property Content-Language: en-US To: =?UTF-8?B?WGlhbmdzaGVuZyBIb3UgKOS+r+elpeiDnCk=?= , "miquel.raynal@bootlin.com" , "robh+dt@kernel.org" , "broonie@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "matthias.bgg@gmail.com" , "gch981213@gmail.com" , "vigneshr@ti.com" , "richard@nod.at" Cc: "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "linux-mtd@lists.infradead.org" , "devicetree@vger.kernel.org" , =?UTF-8?B?QmVubGlhbmcgWmhhbyAo6LW15pys5LquKQ==?= , "linux-spi@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , =?UTF-8?B?QmluIFpoYW5nICjnq6Dmlowp?= References: <20221128020613.14821-1-xiangsheng.hou@mediatek.com> <20221128020613.14821-8-xiangsheng.hou@mediatek.com> <9985d44e-977e-d7ea-0932-4879a3ccd14d@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 29/11/2022 03:50, Xiangsheng Hou (侯祥胜) wrote: >>> --- a/Documentation/devicetree/bindings/spi/mediatek,spi-mtk- >>> snfi.yaml >>> +++ b/Documentation/devicetree/bindings/spi/mediatek,spi-mtk- >>> snfi.yaml >>> @@ -55,6 +55,22 @@ properties: >>> description: device-tree node of the accompanying ECC engine. >>> $ref: /schemas/types.yaml#/definitions/phandle >>> >>> + rx-sample-delay: >> >> No, use existing property, don't invent your own stuff - missing unit >> suffix. See spi-peripheral-props.yaml. > Will change to other private property. The read sample delay with > MediaTek SPI NAND controller can be set with values from 0 to 47. > However, it`s difficult to say the unit of each vaule, because the unit > value will be difference with different chip process or different > corner IC. Why you cannot use same formula as other SPI drivers for sample-delay? And divide/multiple by some factor specific to SoC, which is taken from driver_data? > >>> + description: Rx delay to sample data with this value, the >>> valid >>> + values are from 0 to 47. The delay is smaller >>> than >>> + the rx-latch-latency. >>> + $ref: /schemas/types.yaml#/definitions/uint32 >> >> Drop $ref. > Will do. > >> >>> + minItems: 0 >>> + maxItems: 47 >>> + default: 0 >>> + >>> + rx-latch-latency: >> >> Same problems. Did you check spi-peripheral-props.yaml or other SPI >> controller schemas for such property? >> >>> + description: Rx delay to sample data with this value, the >>> value >>> + unit is clock cycle. >> >> I think the unit should be rather time (e.g. us). >> > Yes, I checked the spi-peripheral-props.yaml and the delay values are > described exactly unit with ns or us. However the unit of MediaTek read > latch latency is clock cycle and it`s difference with different clock > frequency. This is fine in such case. > >>> + $ref: /schemas/types.yaml#/definitions/uint32 >>> + enum: [0, 1, 2, 3] >>> + default: 0 >>> + Best regards, Krzysztof