[PATCH] pinctrl: airoha: fix wrong MDIO function bitmaks
Andrew Lunn
andrew at lunn.ch
Mon Sep 8 12:06:03 PDT 2025
On Mon, Sep 08, 2025 at 07:48:17PM +0200, Christian Marangi wrote:
> On Mon, Sep 08, 2025 at 06:54:15PM +0200, Andrew Lunn wrote:
> > On Mon, Sep 08, 2025 at 01:37:19PM +0200, Christian Marangi wrote:
> > > With further testing with an attached Aeonsemi it was discovered that
> > > the pinctrl MDIO function applied the wrong bitmask. The error was
> > > probably caused by the confusing documentation related to these bits.
> > >
> > > Inspecting what the bootloader actually configure, the SGMII_MDIO_MODE
> > > is never actually set but instead it's set force enable to the 2 GPIO
> > > (gpio 1-2) for MDC and MDIO pin.
> >
> > Is the MDIO bus implemented using the GPIO bitbanging driver?
> >
>
> No it does use the MDIO bus integrated in the MT7530 Switch. It's just
> that the MDIO pin can be muxed as GPIO usage.
Then i do not understand this patch. Why configure the pinmux for GPIO
when you want it connected to the MDIO bus device?
Andrew
More information about the linux-arm-kernel
mailing list