linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Serge Semin <fancer.lancer@gmail.com>
Cc: Serge Semin <Sergey.Semin@baikalelectronics.ru>,
	Pratyush Yadav <p.yadav@ti.com>, Mark Brown <broonie@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	linux-spi@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] spi: dt-bindings: Move 'rx-sample-delay-ns' to spi-peripheral-props.yaml
Date: Tue, 31 May 2022 10:10:30 -0500	[thread overview]
Message-ID: <20220531151030.GC1742958-robh@kernel.org> (raw)
In-Reply-To: <20220527113226.x62neigmrnljxtph@mobilestation>

On Fri, May 27, 2022 at 02:32:26PM +0300, Serge Semin wrote:
> On Thu, May 26, 2022 at 08:54:04AM -0500, 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.
> 
> What about creating the schemas hierarchy for the device-specific
> properties as I already suggested in the other thread? Like this:
> 
> https://lore.kernel.org/linux-ide/20220527101057.b5z7ase6y4naoxvk@mobilestation

Because that doesn't work. I'll explain in that thread.

Rob

  reply	other threads:[~2022-05-31 15:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-25 21:00 [PATCH] spi: dt-bindings: Move 'rx-sample-delay-ns' to spi-peripheral-props.yaml Rob Herring
2022-05-26  5:46 ` Pratyush Yadav
2022-05-26 13:54   ` Rob Herring
2022-05-27 11:32     ` Serge Semin
2022-05-31 15:10       ` Rob Herring [this message]
2022-06-01  5:29     ` Pratyush Yadav
2022-06-07 10:46 ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220531151030.GC1742958-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=Sergey.Semin@baikalelectronics.ru \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=fancer.lancer@gmail.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=p.yadav@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).