[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YbploCb6sJRN+HJH@robh.at.kernel.org>
Date: Wed, 15 Dec 2021 16:01:04 -0600
From: Rob Herring <robh@...nel.org>
To: Marek Behún <kabel@...nel.org>
Cc: Andrew Lunn <andrew@...n.ch>, devicetree@...r.kernel.org,
Vladimir Oltean <olteanv@...il.com>,
Holger Brunck <holger.brunck@...achienergy.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Russell King <rmk+kernel@...linux.org.uk>,
linux-phy@...ts.infradead.org, Vinod Koul <vkoul@...nel.org>,
Kishon Vijay Abraham I <kishon@...com>
Subject: Re: [PATCH devicetree 2/2] dt-bindings: phy: Add
`tx-amplitude-microvolt` property binding
On Wed, Dec 15, 2021 at 06:22:22PM +0100, Marek Behún wrote:
> On Wed, 15 Dec 2021 11:55:00 +0100
> Andrew Lunn <andrew@...n.ch> wrote:
>
> > On Wed, Dec 15, 2021 at 12:34:32AM +0100, Marek Behún wrote:
> > > Common PHYs often have the possibility to specify peak-to-peak voltage
> > > on the differential pair - the default voltage sometimes needs to be
> > > changed for a particular board.
> >
> > Hi Marek
> >
> > Common PHYs are not the only user of this. Ethernet PHYs can also use
> > it, as well as SERDESes embedded within Ethernet switches.
> >
> > That is why i suggested these properties go into something like
> > serdes.yaml. That can then be included into Common PHY, Ethernet PHYs,
> > switch drivers etc.
> >
> > Please could you make such a split?
> >
> > Andrew
>
> Hi Andrew,
>
> and where (into which directory) should this serdes.yaml file go?
>
> My idea was to put the properties into common PHY and then refer to
> them from other places, so for example this would be put into ethernet
> PHY binding:
>
> serdes-tx-amplitude-microvolt:
Why do you need a different name here?
> $ref: '/schemas/phy/phy.yaml#/properties/tx-amplitude-microvolt'
This is a pattern I try to avoid generally. Put what's common in 1
schema file and then reference all of it from the top level.
Rob
Powered by blists - more mailing lists