Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5652375ioo; Wed, 1 Jun 2022 09:40:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcHgDrFHymobwsyl1018OIJQuuRVgmWnjTDWoQkUxiX9vfg6kUSX9zf2AEa6jQ00aChqJu X-Received: by 2002:a17:90a:e7c6:b0:1e0:9cf7:d042 with SMTP id kb6-20020a17090ae7c600b001e09cf7d042mr256605pjb.234.1654101629386; Wed, 01 Jun 2022 09:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654101629; cv=none; d=google.com; s=arc-20160816; b=xc+VoCWOUKkUyDSeoKXtFquyLOPf8hGnQAszuhPTgah0/sP9pg6NBb40fhBJgKUDVS i4YxaxRv8UVhZxoMx0OVltIBb/HYXijHt25ehNBTjvfqj2whTsbhyCOg3cyrMQ0xvhuR REEq1dhtcmQax3FAdfZ3Kgzh1sUn97JfHu+6vQtXU2zhQfwoMXHQG5ugwQOYAPKCC9b/ MU/2W2hQVCOer96AR/CBPTGmuT9yeeJsJIgqL0gYTqybEcxVUbP8LnQ2pWw+j5ubLxuM V/MO+0gvQu2+cJwo8aAp06evD04UR61DUNBKUZewYSW2nq7RyDEGdKMMlLunykSAHSvC OiYg== 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=c/qfL2l2VIstbzo6BSYmwSI3H4BLd61De5L9vlVUu48=; b=WCjQBvEFCe/CLwvEsKA0qSVRAKQ3TF0pTDYDj/U2PG8/0Z06iU5mA2L0FN8Vre4uxO fjDlNAYl/uZyWo7rxqwMdVIB0eNeXDmsyJ33sFyHWUGTW8MpC+fxER6jK3uGyHeGhDHF P8suM7j9g/1OkdxFtcfoQm0L4+3G4c7Wd5PRV7OtogqR+8Xx8yyB4kII1Zs6eKpyFtm7 TP6oc/qa6rhSmyiA4WoEYelTGJTkhhUjCRNLxwXFYIXH/Od2++3Pg4Q3KN4Cmv+R8r3F 04u1HH/JogwuvGjtxUA7fwSk5qPFmc/XHSrpGMrsnkIQ+3S+WEfd+BMwtPxB2nV/eIvU IcAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="ib0f/Eqh"; 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 n19-20020a170902d0d300b00163eff0e715si2602210pln.106.2022.06.01.09.40.15; Wed, 01 Jun 2022 09:40:29 -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="ib0f/Eqh"; 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 S1349646AbiFAFaF (ORCPT + 99 others); Wed, 1 Jun 2022 01:30:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349634AbiFAFaB (ORCPT ); Wed, 1 Jun 2022 01:30:01 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAA5C9D076; Tue, 31 May 2022 22:30:00 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2515Tss8017693; Wed, 1 Jun 2022 00:29:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1654061394; bh=c/qfL2l2VIstbzo6BSYmwSI3H4BLd61De5L9vlVUu48=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=ib0f/EqhVEn/uwxrtRGT9OE2E17RQbRkgykD9BSc2lC0mCCWHS6qljvioN6v1QyXc ZOkQj7e/uXLn/j1UW1qPaIA4xD8VVZov2m63+XcwdglIOHTFrSpvi77R2Ii132ff+0 BdC2FrcnYf/DWjN/5Vg8ZZtGc+UCqk7lLeNNqhxk= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2515TrGE096664 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 1 Jun 2022 00:29:53 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 1 Jun 2022 00:29:53 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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; Wed, 1 Jun 2022 00:29:53 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2515TqQJ123375; Wed, 1 Jun 2022 00:29:53 -0500 Date: Wed, 1 Jun 2022 10:59:52 +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: <20220601052952.4htn4ycta2dkvd3l@ti.com> References: <20220525210053.2488756-1-robh@kernel.org> <20220526054642.zw44mgw2bd2u5v76@ti.com> <20220526135404.GA3831942-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220526135404.GA3831942-robh@kernel.org> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.0 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 On 26/05/22 08:54AM, Rob Herring wrote: > On Thu, May 26, 2022 at 11:16:42AM +0530, Pratyush Yadav wrote: > > 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. > > There's at least one other case already: > > cdns,read-delay: > $ref: /schemas/types.yaml#/definitions/uint32 > description: > Delay for read capture logic, in clock cycles. > > > Too many common properties is not a problem we have. Too many custom > properties doing the same thing is the problem. I agree. But in this case these two properties have different units. rx-sample-delay-ns is obviously in nanoseconds. cdns,read-delay is in number of ref clock cycles. If other controllers also use this property, it could make sense to make rx-sample-delay-ns the default/common property and drivers can then make conversions between the units that should actually be programmed. -- Regards, Pratyush Yadav Texas Instruments Inc.