[PATCH net-next v3 0/3] net: dsa: mxl-gsw1xx: setup polarities and validate chip

Daniel Golle posted 3 patches 6 days, 8 hours ago
.../bindings/net/dsa/lantiq,gswip.yaml        |  4 ++
drivers/net/dsa/lantiq/Kconfig                |  1 +
drivers/net/dsa/lantiq/mxl-gsw1xx.c           | 66 +++++++++++++++----
drivers/net/dsa/lantiq/mxl-gsw1xx.h           |  9 +++
4 files changed, 68 insertions(+), 12 deletions(-)
[PATCH net-next v3 0/3] net: dsa: mxl-gsw1xx: setup polarities and validate chip
Posted by Daniel Golle 6 days, 8 hours ago
Now that common PHY properties make it easy to configure the SerDes RX
and TX polarities, use that for the SGMII/1000Base-X/2500Base-X port of
the MaxLinear GSW1xx switches.

Also, validate hardware in probe() function to make sure the switch is
actually present and MDIO communication works properly.
---
Changes since v2:
 * be more clear about describing polarity at port, ie. external pin level

Changes since initial submission:
 * use allOf to include phy-common-props in dt-schema
 * use phy_get_manual_rx_polarity and phy_get_manual_tx_polarity helpers
   instead of open-coding them


Daniel Golle (3):
  dt-bindings: net: dsa: lantiq,gswip: reference common PHY properties
  net: dsa: mxl-gsw1xx: configure SerDes port polarities
  net: dsa: mxl-gsw1xx: validate chip ID

 .../bindings/net/dsa/lantiq,gswip.yaml        |  4 ++
 drivers/net/dsa/lantiq/Kconfig                |  1 +
 drivers/net/dsa/lantiq/mxl-gsw1xx.c           | 66 +++++++++++++++----
 drivers/net/dsa/lantiq/mxl-gsw1xx.h           |  9 +++
 4 files changed, 68 insertions(+), 12 deletions(-)

-- 
2.52.0
Re: [PATCH net-next v3 0/3] net: dsa: mxl-gsw1xx: setup polarities and validate chip
Posted by Vladimir Oltean 6 days, 3 hours ago
On Sun, Feb 01, 2026 at 03:41:34AM +0000, Daniel Golle wrote:
> Now that common PHY properties make it easy to configure the SerDes RX
> and TX polarities, use that for the SGMII/1000Base-X/2500Base-X port of
> the MaxLinear GSW1xx switches.
> 
> Also, validate hardware in probe() function to make sure the switch is
> actually present and MDIO communication works properly.
> ---
> Changes since v2:
>  * be more clear about describing polarity at port, ie. external pin level
> 
> Changes since initial submission:
>  * use allOf to include phy-common-props in dt-schema
>  * use phy_get_manual_rx_polarity and phy_get_manual_tx_polarity helpers
>    instead of open-coding them

For the set:

Reviewed-by: Vladimir Oltean <olteanv@gmail.com>