From: Antoine Tenart <hidden> Date: 2020-02-27 15:41:15
Hello,
This series adds a device tree property for the VSC8584 PHY family to
describe the LOS pin connected to the PHY as being active low. This new
property is then used in the MSCC PHY driver.
Thanks!
Antoine
Antoine Tenart (2):
dt-bindings: net: phy: mscc: document LOS active low property
net: phy: mscc: support LOS being active low
Documentation/devicetree/bindings/net/mscc-phy-vsc8531.txt | 1 +
drivers/net/phy/mscc.c | 7 +++++++
2 files changed, 8 insertions(+)
--
2.24.1
From: Antoine Tenart <hidden> Date: 2020-02-27 15:41:18
This patch adds support for describing the LOS pin as being active low
when using MSCC PHYs.
Signed-off-by: Antoine Tenart <redacted>
---
drivers/net/phy/mscc.c | 7 +++++++
1 file changed, 7 insertions(+)
From: Antoine Tenart <hidden> Date: 2020-02-27 15:41:19
This patch adds a "vsc8584,los-active-low" property to denote when the
LOS signal connected directly to the PHY is active low.
Signed-off-by: Antoine Tenart <redacted>
---
Documentation/devicetree/bindings/net/mscc-phy-vsc8531.txt | 1 +
1 file changed, 1 insertion(+)
@@ -39,6 +39,7 @@ Optional properties: Allowed values are defined in "include/dt-bindings/net/mscc-phy-vsc8531.h". Default value is VSC8584_RGMII_SKEW_0_2.+- vsc8584,los-active-low : If set, indicates the LOS pin is active low. Table: 1 - Edge rate change
From: Andrew Lunn <andrew@lunn.ch> Date: 2020-02-27 15:54:45
On Thu, Feb 27, 2020 at 04:40:31PM +0100, Antoine Tenart wrote:
Hello,
This series adds a device tree property for the VSC8584 PHY family to
describe the LOS pin connected to the PHY as being active low. This new
property is then used in the MSCC PHY driver.
Hi Antoine
I think i'm missing the big picture.
Is this for when an SFP is connected directly to the PHY? The SFP
output LOS, indicating loss of received fibre/copper signal, is active
low?
Andrew
From: Antoine Tenart <hidden> Date: 2020-02-27 16:10:14
Hello Andrew,
On Thu, Feb 27, 2020 at 04:54:40PM +0100, Andrew Lunn wrote:
On Thu, Feb 27, 2020 at 04:40:31PM +0100, Antoine Tenart wrote:
quoted
This series adds a device tree property for the VSC8584 PHY family to
describe the LOS pin connected to the PHY as being active low. This new
property is then used in the MSCC PHY driver.
I think i'm missing the big picture.
Is this for when an SFP is connected directly to the PHY? The SFP
output LOS, indicating loss of received fibre/copper signal, is active
low?
Yes, the SFP cage can be connected directly to the PHY, and the SFP LOS
signal is active low (there's a pull-up on the LOS line).
Also, I realized I send this series before my other patches adding
support for fibre mode on this PHY, so it may make more sense to send
this one after.
Thanks!
Antoine
--
Antoine Ténart, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
From: David Miller <davem@davemloft.net> Date: 2020-03-01 05:24:09
From: Antoine Tenart <redacted>
Date: Thu, 27 Feb 2020 17:10:10 +0100
Hello Andrew,
On Thu, Feb 27, 2020 at 04:54:40PM +0100, Andrew Lunn wrote:
quoted
On Thu, Feb 27, 2020 at 04:40:31PM +0100, Antoine Tenart wrote:
quoted
This series adds a device tree property for the VSC8584 PHY family to
describe the LOS pin connected to the PHY as being active low. This new
property is then used in the MSCC PHY driver.
I think i'm missing the big picture.
Is this for when an SFP is connected directly to the PHY? The SFP
output LOS, indicating loss of received fibre/copper signal, is active
low?
Yes, the SFP cage can be connected directly to the PHY, and the SFP LOS
signal is active low (there's a pull-up on the LOS line).
Also, I realized I send this series before my other patches adding
support for fibre mode on this PHY, so it may make more sense to send
this one after.
Please do so, I'll mark these as deferred in patchwork.