From: Dan Murphy <dmurphy@ti.com>
To: <andrew@lunn.ch>, <f.fainelli@gmail.com>, <hkallweit1@gmail.com>,
<davem@davemloft.net>, <robh@kernel.org>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<devicetree@vger.kernel.org>, Dan Murphy <dmurphy@ti.com>
Subject: [PATCH net-next v9 0/5] RGMII Internal delay common property
Date: Fri, 19 Jun 2020 11:18:08 -0500 [thread overview]
Message-ID: <20200619161813.2716-1-dmurphy@ti.com> (raw)
Hello
The RGMII internal delay is a common setting found in most RGMII capable PHY
devices. It was found that many vendor specific device tree properties exist
to do the same function. This creates a common property to be used for PHY's
that have internal delays for the Rx and Tx paths.
If the internal delay is tunable then the caller needs to pass the internal
delay array and the return will be the index in the array that was found in
the firmware node.
If the internal delay is fixed then the caller only needs to indicate which
delay to return. There is no need for a fixed delay to add device properties
since the value is not configurable. Per the ethernet-controller.yaml the
interface type indicates that the PHY should provide the delay.
This series contains examples of both a configurable delay and a fixed delay.
Dan Murphy (5):
dt-bindings: net: Add tx and rx internal delays
net: phy: Add a helper to return the index for of the internal delay
dt-bindings: net: Add RGMII internal delay for DP83869
net: dp83869: Add RGMII internal delay configuration
net: phy: DP83822: Add setting the fixed internal delay
.../devicetree/bindings/net/ethernet-phy.yaml | 13 +++
.../devicetree/bindings/net/ti,dp83869.yaml | 16 ++-
drivers/net/phy/dp83822.c | 79 ++++++++++++--
drivers/net/phy/dp83869.c | 53 +++++++++-
drivers/net/phy/phy_device.c | 100 ++++++++++++++++++
include/linux/phy.h | 4 +
6 files changed, 251 insertions(+), 14 deletions(-)
--
2.26.2
next reply other threads:[~2020-06-19 16:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-19 16:18 Dan Murphy [this message]
2020-06-19 16:18 ` [PATCH net-next v9 1/5] dt-bindings: net: Add tx and rx internal delays Dan Murphy
2020-06-22 22:40 ` David Miller
2020-06-23 1:18 ` Dan Murphy
2020-06-19 16:18 ` [PATCH net-next v9 2/5] net: phy: Add a helper to return the index for of the internal delay Dan Murphy
2020-06-22 22:40 ` David Miller
2020-06-23 1:19 ` Dan Murphy
2020-06-19 16:18 ` [PATCH net-next v9 3/5] dt-bindings: net: Add RGMII internal delay for DP83869 Dan Murphy
2020-06-19 16:18 ` [PATCH net-next v9 4/5] net: dp83869: Add RGMII internal delay configuration Dan Murphy
2020-06-19 16:18 ` [PATCH net-next v9 5/5] net: phy: DP83822: Add setting the fixed internal delay Dan Murphy
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=20200619161813.2716-1-dmurphy@ti.com \
--to=dmurphy@ti.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=f.fainelli@gmail.com \
--cc=hkallweit1@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=robh@kernel.org \
/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).