linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] dt-bindings: net: dsa: marvell: describe compatibility string
@ 2018-03-05 22:05 Brandon Streiff
  2018-03-05 22:41 ` Andrew Lunn
  2018-03-07 17:19 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Brandon Streiff @ 2018-03-05 22:05 UTC (permalink / raw)
  To: Andrew Lunn, Vivien Didelot
  Cc: Rob Herring, Mark Rutland, netdev, devicetree, linux-kernel,
	Brandon Streiff

There are two compatibility strings for mv88e6xxx, but it isn't clear
from the documentation why only those two exist when the mv88e6xxx driver
supports more than the 6085 and 6190. Briefly describe how the compatible
property is used, and provide guidance on which to use.

The model list comes from looking at port_base_addr values (0x0 vs 0x10)
in drivers/net/dsa/mv88e6xxx/chip.c.

Signed-off-by: Brandon Streiff <brandon.streiff@ni.com>
---
 Documentation/devicetree/bindings/net/dsa/marvell.txt | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/net/dsa/marvell.txt b/Documentation/devicetree/bindings/net/dsa/marvell.txt
index 1d4d0f4..caf71e2 100644
--- a/Documentation/devicetree/bindings/net/dsa/marvell.txt
+++ b/Documentation/devicetree/bindings/net/dsa/marvell.txt
@@ -13,9 +13,18 @@ placed as a child node of an mdio device.
 The properties described here are those specific to Marvell devices.
 Additional required and optional properties can be found in dsa.txt.
 
+The compatibility string is used only to find an identification register,
+which is at a different MDIO base address in different switch families.
+- "marvell,mv88e6085"	: Switch has base address 0x10. Use with models:
+			  6085, 6095, 6097, 6123, 6131, 6141, 6161, 6165,
+			  6171, 6172, 6175, 6176, 6185, 6240, 6320, 6321,
+			  6341, 6350, 6351, 6352
+- "marvell,mv88e6190"	: Switch has base address 0x00. Use with models:
+			  6190, 6190X, 6191, 6290, 6390, 6390X
+
 Required properties:
 - compatible		: Should be one of "marvell,mv88e6085" or
-			  "marvell,mv88e6190"
+			  "marvell,mv88e6190" as indicated above
 - reg			: Address on the MII bus for the switch.
 
 Optional properties:
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] dt-bindings: net: dsa: marvell: describe compatibility string
  2018-03-05 22:05 [PATCH net-next] dt-bindings: net: dsa: marvell: describe compatibility string Brandon Streiff
@ 2018-03-05 22:41 ` Andrew Lunn
  2018-03-07 17:19 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2018-03-05 22:41 UTC (permalink / raw)
  To: Brandon Streiff
  Cc: Vivien Didelot, Rob Herring, Mark Rutland, netdev, devicetree,
	linux-kernel

On Mon, Mar 05, 2018 at 04:05:22PM -0600, Brandon Streiff wrote:
> There are two compatibility strings for mv88e6xxx, but it isn't clear
> from the documentation why only those two exist when the mv88e6xxx driver
> supports more than the 6085 and 6190. Briefly describe how the compatible
> property is used, and provide guidance on which to use.
> 
> The model list comes from looking at port_base_addr values (0x0 vs 0x10)
> in drivers/net/dsa/mv88e6xxx/chip.c.
> 
> Signed-off-by: Brandon Streiff <brandon.streiff@ni.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] dt-bindings: net: dsa: marvell: describe compatibility string
  2018-03-05 22:05 [PATCH net-next] dt-bindings: net: dsa: marvell: describe compatibility string Brandon Streiff
  2018-03-05 22:41 ` Andrew Lunn
@ 2018-03-07 17:19 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2018-03-07 17:19 UTC (permalink / raw)
  To: brandon.streiff
  Cc: andrew, vivien.didelot, robh+dt, mark.rutland, netdev,
	devicetree, linux-kernel

From: Brandon Streiff <brandon.streiff@ni.com>
Date: Mon, 5 Mar 2018 16:05:22 -0600

> There are two compatibility strings for mv88e6xxx, but it isn't clear
> from the documentation why only those two exist when the mv88e6xxx driver
> supports more than the 6085 and 6190. Briefly describe how the compatible
> property is used, and provide guidance on which to use.
> 
> The model list comes from looking at port_base_addr values (0x0 vs 0x10)
> in drivers/net/dsa/mv88e6xxx/chip.c.
> 
> Signed-off-by: Brandon Streiff <brandon.streiff@ni.com>

Applied.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-07 17:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-05 22:05 [PATCH net-next] dt-bindings: net: dsa: marvell: describe compatibility string Brandon Streiff
2018-03-05 22:41 ` Andrew Lunn
2018-03-07 17:19 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).