From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrew@lunn.ch (Andrew Lunn) Date: Fri, 21 Oct 2016 18:08:07 +0200 Subject: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection In-Reply-To: References: <1477060838-14164-1-git-send-email-narmstrong@baylibre.com> <1477060838-14164-9-git-send-email-narmstrong@baylibre.com> <20161021155408.GR16974@lunn.ch> Message-ID: <20161021160807.GT16974@lunn.ch> To: linus-amlogic@lists.infradead.org List-Id: linus-amlogic.lists.infradead.org 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 like: drivers/net/phy/mdio-mux-mmioreg.c This seems to be limited to a single byte for the mux register, so you might need to make some extensions. Andrew From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection Date: Fri, 21 Oct 2016 18:08:07 +0200 Message-ID: <20161021160807.GT16974@lunn.ch> References: <1477060838-14164-1-git-send-email-narmstrong@baylibre.com> <1477060838-14164-9-git-send-email-narmstrong@baylibre.com> <20161021155408.GR16974@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org To: Neil Armstrong Cc: khilman@baylibre.com, carlo@caione.org, linus.walleij@linaro.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org List-Id: linux-gpio@vger.kernel.org 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 like: drivers/net/phy/mdio-mux-mmioreg.c This seems to be limited to a single byte for the mux register, so you might need to make some extensions. Andrew From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrew@lunn.ch (Andrew Lunn) Date: Fri, 21 Oct 2016 18:08:07 +0200 Subject: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection In-Reply-To: References: <1477060838-14164-1-git-send-email-narmstrong@baylibre.com> <1477060838-14164-9-git-send-email-narmstrong@baylibre.com> <20161021155408.GR16974@lunn.ch> Message-ID: <20161021160807.GT16974@lunn.ch> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 like: drivers/net/phy/mdio-mux-mmioreg.c This seems to be limited to a single byte for the mux register, so you might need to make some extensions. Andrew