Re: [PATCH v1 2/4] dt-bindings: net: dsa: qca,ar9331 switch documentation
From: Oleksij Rempel
Date: Thu Oct 17 2019 - 02:42:22 EST
On 16.10.19 22:23, Andrew Lunn wrote:
On Mon, Oct 14, 2019 at 08:15:47AM +0200, Oleksij Rempel wrote:
Atheros AR9331 has built-in 5 port switch. The switch can be configured
to use all 5 or 4 ports. One of built-in PHYs can be used by first built-in
ethernet controller or to be used directly by the switch over second ethernet
controller.
Hi Oleksij
How exactly is this phy sharing controlled? I did not see anything in
the driver. Is there a mux we need to set?
Currently it is not controlled at all, eth0 should be disabled and switch port5 enabled
(or other way around) in devicetree. If both are enabled, it will be some how brocken. I
don't know how to properly implement it.
I assume, it should not be controlled by devicetree configuration and user should be able
to do it dynamically from user space.
Ideas, suggestions?
Kind regards,
Oleksij Rempel
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |