Lines Matching +full:tx +full:- +full:internal +full:- +full:delay +full:- +full:ps

1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright (C) 2016 Hauke Mehrtens <hauke@hauke-m.de>
32 #define XWAY_MDIO_INIT_WOL BIT(15) /* Wake-On-LAN */
36 #define XWAY_MDIO_INIT_ANE BIT(11) /* Auto-Neg error */
37 #define XWAY_MDIO_INIT_ANC BIT(10) /* Auto-Neg complete */
38 #define XWAY_MDIO_INIT_ADSC BIT(5) /* Link auto-downspeed detect */
47 #define ADVERTISED_MPD BIT(10) /* Multi-port device */
170 struct device *dev = &phydev->mdio.dev; in xway_gphy_rgmii_init()
178 /* Existing behavior was to use default pin strapping delay in rgmii in xway_gphy_rgmii_init()
179 * mode, but rgmii should have meant no delay. Warn existing users, in xway_gphy_rgmii_init()
182 if (phydev->interface == PHY_INTERFACE_MODE_RGMII) { in xway_gphy_rgmii_init()
194 "PHY has delays (e.g. via pin strapping), but phy-mode = 'rgmii'\n" in xway_gphy_rgmii_init()
195 "Should be 'rgmii-id' to use internal delays txskew:%d ps rxskew:%d ps\n", in xway_gphy_rgmii_init()
201 if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID || in xway_gphy_rgmii_init()
202 phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID) { in xway_gphy_rgmii_init()
207 /* if rx-internal-delay-ps is missing, use default of 2.0 ns */ in xway_gphy_rgmii_init()
209 int_delay = 4; /* 2000 ps */ in xway_gphy_rgmii_init()
214 if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID || in xway_gphy_rgmii_init()
215 phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID) { in xway_gphy_rgmii_init()
220 /* if tx-internal-delay-ps is missing, use default of 2.0 ns */ in xway_gphy_rgmii_init()
222 int_delay = 4; /* 2000 ps */ in xway_gphy_rgmii_init()
290 /* Advertise as multi-port device, see IEEE802.3-2002 40.5.1.1 */ in xway_gphy14_config_aneg()
314 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { in xway_gphy_config_intr()