Re: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

2016-10-31 Thread Neil Armstrong
On 10/21/2016 06:08 PM, Andrew Lunn wrote: > Hi Neil > >> Yes this would be a good idea if we were able to scan the internal >> and external PHYs at the same time, but with our limited knowledge >> the values we write in the register seems to switch a mux for the >> whole RMII and MDIO signals to

Re: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

2016-10-31 Thread Neil Armstrong
On 10/21/2016 06:08 PM, Andrew Lunn wrote: > Hi Neil > >> Yes this would be a good idea if we were able to scan the internal >> and external PHYs at the same time, but with our limited knowledge >> the values we write in the register seems to switch a mux for the >> whole RMII and MDIO signals to

Re: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

2016-10-21 Thread Andrew Lunn
Hi Neil > Yes this would be a good idea if we were able to scan the internal > and external PHYs at the same time, but with our limited knowledge > the values we write in the register seems to switch a mux for the > whole RMII and MDIO signals to either interface. Ah, O.K. So you need something

Re: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

2016-10-21 Thread Andrew Lunn
Hi Neil > Yes this would be a good idea if we were able to scan the internal > and external PHYs at the same time, but with our limited knowledge > the values we write in the register seems to switch a mux for the > whole RMII and MDIO signals to either interface. Ah, O.K. So you need something

Re: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

2016-10-21 Thread Neil Armstrong
On 10/21/2016 05:54 PM, Andrew Lunn wrote: > On Fri, Oct 21, 2016 at 04:40:33PM +0200, Neil Armstrong wrote: >> The Meson GXL dwmac Glue Layer also provides switching between an external >> PHY >> and an internal RMII 10/100 PHY. >> Add a way to setup the correct PHY switching from a device tree

Re: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

2016-10-21 Thread Neil Armstrong
On 10/21/2016 05:54 PM, Andrew Lunn wrote: > On Fri, Oct 21, 2016 at 04:40:33PM +0200, Neil Armstrong wrote: >> The Meson GXL dwmac Glue Layer also provides switching between an external >> PHY >> and an internal RMII 10/100 PHY. >> Add a way to setup the correct PHY switching from a device tree

Re: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

2016-10-21 Thread Andrew Lunn
On Fri, Oct 21, 2016 at 04:40:33PM +0200, Neil Armstrong wrote: > The Meson GXL dwmac Glue Layer also provides switching between an external PHY > and an internal RMII 10/100 PHY. > Add a way to setup the correct PHY switching from a device tree attribute. Humm, actually. Maybe PHY_IS_INTERNAL in

Re: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

2016-10-21 Thread Andrew Lunn
On Fri, Oct 21, 2016 at 04:40:33PM +0200, Neil Armstrong wrote: > The Meson GXL dwmac Glue Layer also provides switching between an external PHY > and an internal RMII 10/100 PHY. > Add a way to setup the correct PHY switching from a device tree attribute. Humm, actually. Maybe PHY_IS_INTERNAL in

Re: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

2016-10-21 Thread Andrew Lunn
On Fri, Oct 21, 2016 at 04:40:33PM +0200, Neil Armstrong wrote: > The Meson GXL dwmac Glue Layer also provides switching between an external PHY > and an internal RMII 10/100 PHY. > Add a way to setup the correct PHY switching from a device tree attribute. Hi Neil Can this be made automatic?

Re: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

2016-10-21 Thread Andrew Lunn
On Fri, Oct 21, 2016 at 04:40:33PM +0200, Neil Armstrong wrote: > The Meson GXL dwmac Glue Layer also provides switching between an external PHY > and an internal RMII 10/100 PHY. > Add a way to setup the correct PHY switching from a device tree attribute. Hi Neil Can this be made automatic?

[RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

2016-10-21 Thread Neil Armstrong
The Meson GXL dwmac Glue Layer also provides switching between an external PHY and an internal RMII 10/100 PHY. Add a way to setup the correct PHY switching from a device tree attribute. Currently, the register format is unknown and this is a temporary workaround until a clarification on the

[RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

2016-10-21 Thread Neil Armstrong
The Meson GXL dwmac Glue Layer also provides switching between an external PHY and an internal RMII 10/100 PHY. Add a way to setup the correct PHY switching from a device tree attribute. Currently, the register format is unknown and this is a temporary workaround until a clarification on the