[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
<PAXPR04MB8510CCEA719F8A6DADB8566A8854A@PAXPR04MB8510.eurprd04.prod.outlook.com>
Date: Mon, 14 Jul 2025 10:28:04 +0000
From: Wei Fang <wei.fang@....com>
To: Krzysztof Kozlowski <krzk@...nel.org>
CC: "F.S. Peng" <fushi.peng@....com>, "devicetree@...r.kernel.org"
<devicetree@...r.kernel.org>, "netdev@...r.kernel.org"
<netdev@...r.kernel.org>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>, "imx@...ts.linux.dev" <imx@...ts.linux.dev>,
"robh@...nel.org" <robh@...nel.org>, "krzk+dt@...nel.org"
<krzk+dt@...nel.org>, "conor+dt@...nel.org" <conor+dt@...nel.org>,
"richardcochran@...il.com" <richardcochran@...il.com>, Claudiu Manoil
<claudiu.manoil@....com>, Vladimir Oltean <vladimir.oltean@....com>, Clark
Wang <xiaoning.wang@....com>, "andrew+netdev@...n.ch"
<andrew+netdev@...n.ch>, "davem@...emloft.net" <davem@...emloft.net>,
"edumazet@...gle.com" <edumazet@...gle.com>, "kuba@...nel.org"
<kuba@...nel.org>, "pabeni@...hat.com" <pabeni@...hat.com>
Subject: RE: [PATCH net-next 01/12] dt-bindings: ptp: add bindings for NETC
Timer
> >> How does the other consumer - ethernet - reference this one here? Paste
> >> complete DTS of this and users, otherwise it is just ping-pong
> >> discussion where you put just a little effort to bounce back my question.
> >
> > Below is the DTS node of enetc (ethernet device) and timer node.
> >
> > enetc_port0: ethernet@0,0 {
> > compatible = "pci1131,e101";
> > reg = <0x000000 0 0 0 0>;
> > pinctrl-names = "default";
> > pinctrl-0 = <&pinctrl_enetc0>;
> > phy-handle = <ðphy0>;
> > phy-mode = "rgmii-id";
> > status = "okay";
>
> How do you use netc_timer in such case?
>
> > };
> >
> > netc_timer: ethernet@18,0 {
> > compatible = "pci1131,ee02";
> > reg = <0x00c000 0 0 0 0>;
> > clocks = <&netc_system333m>;
> > clock-names = "system";
> > };
> >
> > Currently, the enetc driver uses the PCIe device number and function number
> > of the Timer to obtain the Timer device, so there is no related binding in DTS.
>
> So you just tightly coupled these devices. Looks poor design for me, but
> your choice. Anyway, then use that channel as information to pass the
> pin/timer/channel number. You do not get a new property for that.
>
I do not understand, the property is to indicate which pin the board is
used to out PPS signal, as I said earlier, these pins are multiplexed with
other devices, so different board design may use different pins to out
this PPS signal.
The PPS interface (echo x > /sys/class/ptp/ptp0/pps_enable) provided
by the current PTP framework only supports enabling or disabling the
PPS signal. This is obviously limited for PTP devices with multiple channels.
> > In the future, we plan to add phandle to the enetc document to bind enetc
> > and Timer, because there will be multiple Timer instances on subsequent
> > platforms.
>
> Bindings must be complete, not "in the future" but now. Start sending
> complete work, so we won't have to guess it.
>
> >
> > But what I want to say is that "nxp,pps-channel" is used to specify which
>
> There is no user in your DTS of nxp,pps-channel.
>
The user is the PTP device itself.
Powered by blists - more mailing lists