Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp696891ioo; Thu, 26 May 2022 12:29:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQvyU36SuPH6Hdedi5HmjNPBS3VoS4wyj2gqrz7clPnEh4UqKUbr7mSiM+0WQwFSxcK2vy X-Received: by 2002:a17:903:2443:b0:162:223c:c0e9 with SMTP id l3-20020a170903244300b00162223cc0e9mr21504437pls.68.1653593391298; Thu, 26 May 2022 12:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653593391; cv=none; d=google.com; s=arc-20160816; b=ecB5q6Ebnq+XS9E1bPydjXmWHoP+eGXen3WNZihTYz2sEV87ny2BnoIIyH4AaEG1r0 1qU48CjqBZ2Ato1yldfCrozYuRgJcC1UwB4Q3jCW5+NRwsGh3J9t/wilK1BCH9nq6wbA IA/G2DdtoI5JPO7Y2RZXcIn/i+r/rANMynFkyd7qEXFsuk3T1n+l6h8oJ76lP/0yEzDY jR2RDnGuVCtJpwa6Y3CSycKnMGzPif0O+R2lqMdS+Kh7rxEPCI//c5artP+sRrAQSm4x ZejqT1ryzUbpG3HxIejFbLCfAJO8tpcIAGqNK1o4/6u3CUTXFk3Q7GA4MDM84FOoG366 hbOA== 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=I/YTCXZm5E9ZxaZWf6oiSo905eleVQs4JTl/yNkbmJg=; b=hSHkFSB4S5B4Fr6K6jh40XD6b+/7m6pjmUyjyOAJYCjbnU8TQWP/QYI8WscOPBHZjn 4VTkOdaXhQjHJUYQtj/tpE9l6n7LTVcPqv8CikKQYTmC06MST8aql+R5G49TTSAKt6cu JnlLcQGXGcIjGkMpFfb3rS7VTWakuBjsx6H/8gwiqDK6Ufpf7Mfr1EYgBueUgIEsxzfS oH09U441hg9UChlTo8gEQNblh+UlBePv9leIyhufPGpr6jCk5P9x2BjLOOyo/HxlvsOm oXM00MPY9wbpPdQvO/W2zDJ3SGPVA4Sl1PXB5lyh1dtkea4/1EMPWPEDO3CuqxDInjkR tx7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kF+i1Pma; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c4-20020a170902724400b0016206ea00cbsi2742089pll.61.2022.05.26.12.29.39; Thu, 26 May 2022 12:29:51 -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=@ti.com header.s=ti-com-17Q1 header.b=kF+i1Pma; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345747AbiEZFrA (ORCPT + 99 others); Thu, 26 May 2022 01:47:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231845AbiEZFqy (ORCPT ); Thu, 26 May 2022 01:46:54 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CAE68A308; Wed, 25 May 2022 22:46:49 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 24Q5kiBm083160; Thu, 26 May 2022 00:46:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1653544004; bh=I/YTCXZm5E9ZxaZWf6oiSo905eleVQs4JTl/yNkbmJg=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=kF+i1PmagY0+lsFH5BDXzF756K4I00IT5698UAUkjOzco5ria6XwAtZNAQGCZry8n Mf2E8D65fwfGBllOPm/G3NlcrEk5NMxxn5esAtxPA7B7SuzkL145I7sdwxXYvNzX7F nX+tFKnEmd+/fiY5N6hhseAFCYRJb14TyEnZ1PP0= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 24Q5kiCF079732 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 26 May 2022 00:46:44 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 26 May 2022 00:46:44 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Thu, 26 May 2022 00:46:44 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 24Q5khKn055572; Thu, 26 May 2022 00:46:43 -0500 Date: Thu, 26 May 2022 11:16:42 +0530 From: Pratyush Yadav To: Rob Herring CC: Serge Semin , Mark Brown , Krzysztof Kozlowski , , , Subject: Re: [PATCH] spi: dt-bindings: Move 'rx-sample-delay-ns' to spi-peripheral-props.yaml Message-ID: <20220526054642.zw44mgw2bd2u5v76@ti.com> References: <20220525210053.2488756-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220525210053.2488756-1-robh@kernel.org> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 Hi Rob, On 25/05/22 04:00PM, Rob Herring wrote: > SPI bus per device properties must be defined in spi-peripheral-props.yaml > for unevaluatedProperties checks to work correctly on device nodes. > > This has the side effect of promoting 'rx-sample-delay-ns' to be a > common property, but functionally it's no different if it was defined in > a Synopsys specific schema file. Functionally it is no different, but does this property make sense for other controllers? If not then I don't see why we should pollute the common list with controller-specific ones. For one, this now no longer makes it obvious that this property should only be used with the Synopsys controller. And if you keep making small exceptions for other controllers too, soon the common list will be full of controller properties and it will be a mess finding out what belongs to who. > > Signed-off-by: Rob Herring > --- > .../bindings/spi/snps,dw-apb-ssi.yaml | 18 +++++++++--------- > .../bindings/spi/spi-peripheral-props.yaml | 5 +++++ > 2 files changed, 14 insertions(+), 9 deletions(-) > > diff --git a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml > index d7e08b03e204..e25d44c218f2 100644 > --- a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml > +++ b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml > @@ -124,9 +124,16 @@ properties: > > rx-sample-delay-ns: > default: 0 > - description: Default value of the rx-sample-delay-ns property. > + description: | > + Default value of the rx-sample-delay-ns property. > This value will be used if the property is not explicitly defined > - for a SPI slave device. See below. > + for a SPI slave device. > + > + SPI Rx sample delay offset, unit is nanoseconds. > + The delay from the default sample time before the actual sample of the > + rxd input signal occurs. The "rx_sample_delay" is an optional feature > + of the designware controller, and the upper limit is also subject to > + controller configuration. > > patternProperties: > "^.*@[0-9a-f]+$": > @@ -142,13 +149,6 @@ patternProperties: > spi-tx-bus-width: > const: 1 > > - rx-sample-delay-ns: > - description: SPI Rx sample delay offset, unit is nanoseconds. > - The delay from the default sample time before the actual > - sample of the rxd input signal occurs. The "rx_sample_delay" > - is an optional feature of the designware controller, and the > - upper limit is also subject to controller configuration. > - > unevaluatedProperties: false > > required: > diff --git a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml > index 5e32928c4fc3..6ffb74352bef 100644 > --- a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml > +++ b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml > @@ -71,6 +71,11 @@ properties: > description: > Delay, in microseconds, after a read transfer. > > + rx-sample-delay-ns: > + description: SPI Rx sample delay offset, unit is nanoseconds. > + The delay from the default sample time before the actual > + sample of the rxd input signal occurs. > + > spi-tx-bus-width: > description: > Bus width to the SPI bus used for write transfers. > -- > 2.34.1 > -- Regards, Pratyush Yadav Texas Instruments Inc.