From: Rob Herring <robh@kernel.org>
To: Sarath Babu Naidu Gaddam <sarath.babu.naidu.gaddam@amd.com>
Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, krzysztof.kozlowski+dt@linaro.org,
netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, yangbo.lu@nxp.com,
radhey.shyam.pandey@amd.com, anirudha.sarangi@amd.com,
harini.katakam@amd.com
Subject: Re: [RFC PATCH] dt-bindings: net: ethernet-controller: Add ptimer_handle
Date: Fri, 30 Sep 2022 14:22:00 -0500 [thread overview]
Message-ID: <20220930192200.GA693073-robh@kernel.org> (raw)
In-Reply-To: <20220929121249.18504-1-sarath.babu.naidu.gaddam@amd.com>
On Thu, Sep 29, 2022 at 06:12:49AM -0600, Sarath Babu Naidu Gaddam wrote:
> There is currently no standard property to pass PTP device index
> information to ethernet driver when they are independent.
>
> ptimer_handle property will contain phandle to PTP timer node.
ptimer_handle or ptimer-handle? One matches conventions.
However, 'handle' is redundant and 'ptimer' is vague. 'ptp-timer'
instead? (Humm, looking at fsl-fman.txt after writing everything here,
it's already using that name! So why are you making something new?)
However, for anything common, I'd like to see multiple examples and
users. Do we have any custom bindings for this purpose already (besides
FSL)?
Could an ethernet device ever need more than 1 timer? Could a provider
provide multiple timers? IOW, does this need to follow standard
provider/consumer pattern of 'foos' and '#foo-cells'?
> Freescale driver currently has this implementation but it will be
> good to agree on a generic (optional) property name to link to PTP
> phandle to Ethernet node. In future or any current ethernet driver
> wants to use this method of reading the PHC index,they can simply use
What's PHC index?
> this generic name and point their own PTP timer node, instead of
> creating seperate property names in each ethernet driver DT node.
>
> axiethernet driver uses this method when PTP support is integrated.
>
> Example:
> fman0: fman@1a00000 {
> ptimer-handle = <&ptp_timer0>;
> }
>
> ptp_timer0: ptp-timer@1afe000 {
> compatible = "fsl,fman-ptp-timer";
> reg = <0x0 0x1afe000 0x0 0x1000>;
> }
>
> Signed-off-by: Sarath Babu Naidu Gaddam <sarath.babu.naidu.gaddam@amd.com>
> ---
> We want binding to be reviewed/accepted and then make changes in freescale
> binding documentation to use this generic binding.
You can't just change the binding you are using. That's an ABI break.
Rob
next prev parent reply other threads:[~2022-09-30 19:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-29 12:12 [RFC PATCH] dt-bindings: net: ethernet-controller: Add ptimer_handle Sarath Babu Naidu Gaddam
2022-09-29 15:45 ` Andrew Lunn
2022-09-30 4:43 ` Gaddam, Sarath Babu Naidu
2022-09-30 19:22 ` Rob Herring [this message]
2022-10-03 9:29 ` Gaddam, Sarath Babu Naidu
2022-10-03 14:20 ` Richard Cochran
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=20220930192200.GA693073-robh@kernel.org \
--to=robh@kernel.org \
--cc=anirudha.sarangi@amd.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=harini.katakam@amd.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=radhey.shyam.pandey@amd.com \
--cc=sarath.babu.naidu.gaddam@amd.com \
--cc=yangbo.lu@nxp.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).