From: Andrew Lunn <andrew@lunn.ch>
To: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: Joey Lu <a0987203069@gmail.com>,
andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org,
mcoquelin.stm32@gmail.com, richardcochran@gmail.com,
devicetree@vger.kernel.org, ychuang3@nuvoton.com,
netdev@vger.kernel.org, openbmc@lists.ozlabs.org,
alexandre.torgue@foss.st.com, linux-kernel@vger.kernel.org,
joabreu@synopsys.com, schung@nuvoton.com, peppe.cavallaro@st.com,
yclu4@nuvoton.com, linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH net-next v7 3/3] net: stmmac: dwmac-nuvoton: Add dwmac glue for Nuvoton MA35 family
Date: Tue, 14 Jan 2025 03:16:57 +0100 [thread overview]
Message-ID: <e7041d36-9bc7-482a-877d-6d8f549c0ada@lunn.ch> (raw)
In-Reply-To: <a30b338f-0a6f-47e7-922b-c637a6648a6d@molgen.mpg.de>
> > +#define NVT_MISCR_RMII BIT(0)
> > +
> > +/* 2000ps is mapped to 0x0 ~ 0xF */
>
> Excuse my ignorance: What is ps?
picoseconds. An RGMII link needs a 2ns delay between the clock line
and the data lines. Some MACs allow you to tune the delay they can
insert, in this case in steps of 2ns / 16.
> > +#define NVT_PATH_DELAY_DEC 134
> > +#define NVT_TX_DELAY_MASK GENMASK(19, 16)
> > +#define NVT_RX_DELAY_MASK GENMASK(23, 20)
> > +
> > +struct nvt_priv_data {
> > + struct platform_device *pdev;
> > + struct regmap *regmap;
> > +};
> > +
> > +static struct nvt_priv_data *
> > +nvt_gmac_setup(struct platform_device *pdev, struct plat_stmmacenet_data *plat)
> > +{
> > + struct device *dev = &pdev->dev;
> > + struct nvt_priv_data *bsp_priv;
> > + phy_interface_t phy_mode;
> > + u32 tx_delay, rx_delay;
>
> Please append the unit to the variable name.
Which is trick, because they are in units of 2000/16 of a picosecond.
Andrew
next prev parent reply other threads:[~2025-01-14 2:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-13 5:54 [PATCH net-next v7 0/3] Add support for Nuvoton MA35D1 GMAC Joey Lu
2025-01-13 5:54 ` [PATCH net-next v7 1/3] dt-bindings: net: nuvoton: Add schema for Nuvoton MA35 family GMAC Joey Lu
2025-01-13 5:54 ` [PATCH net-next v7 2/3] arm64: dts: nuvoton: Add Ethernet nodes Joey Lu
2025-01-13 5:54 ` [PATCH net-next v7 3/3] net: stmmac: dwmac-nuvoton: Add dwmac glue for Nuvoton MA35 family Joey Lu
2025-01-14 1:49 ` Paul Menzel
2025-01-14 2:16 ` Andrew Lunn [this message]
2025-01-14 2:21 ` Paul Menzel
2025-01-14 10:29 ` Yanteng Si
2025-01-14 23:35 ` Jakub Kicinski
[not found] ` <2cf758f2-529e-4ccd-9dc1-18fc29ad5ac0@gmail.com>
2025-01-15 9:22 ` Paul Menzel
2025-01-15 11:05 ` Joey Lu
2025-01-14 23:33 ` Jakub Kicinski
2025-01-15 9:09 ` Joey Lu
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=e7041d36-9bc7-482a-877d-6d8f549c0ada@lunn.ch \
--to=andrew@lunn.ch \
--cc=a0987203069@gmail.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=joabreu@synopsys.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=openbmc@lists.ozlabs.org \
--cc=pabeni@redhat.com \
--cc=peppe.cavallaro@st.com \
--cc=pmenzel@molgen.mpg.de \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=schung@nuvoton.com \
--cc=ychuang3@nuvoton.com \
--cc=yclu4@nuvoton.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
all inboxes | Powered by JetHome®