netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Docs/devicetree: add serdes-output-amplitude to marvell.txt
@ 2021-11-26 15:42 Holger Brunck
  2021-11-26 15:42 ` [PATCH 2/2] dsa: mv88e6xxx: make serdes SGMII/Fiber output amplitude configurable Holger Brunck
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Holger Brunck @ 2021-11-26 15:42 UTC (permalink / raw)
  To: netdev; +Cc: Holger Brunck, Andrew Lunn, Jakub Kicinski

This can be configured from the device tree. Add this property to the
documentation accordingly.
The eight different values added in the dt-bindings file correspond to
the values we can configure on 88E6352, 88E6240 and 88E6176 switches
according to the datasheet.

CC: Andrew Lunn <andrew@lunn.ch>
CC: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
---
 .../devicetree/bindings/net/dsa/marvell.txt    |  3 +++
 include/dt-bindings/net/mv-88e6xxx.h           | 18 ++++++++++++++++++
 2 files changed, 21 insertions(+)
 create mode 100644 include/dt-bindings/net/mv-88e6xxx.h

diff --git a/Documentation/devicetree/bindings/net/dsa/marvell.txt b/Documentation/devicetree/bindings/net/dsa/marvell.txt
index 2363b412410c..bff397a2dc49 100644
--- a/Documentation/devicetree/bindings/net/dsa/marvell.txt
+++ b/Documentation/devicetree/bindings/net/dsa/marvell.txt
@@ -46,6 +46,9 @@ Optional properties:
 - mdio?		: Container of PHYs and devices on the external MDIO
 			  bus. The node must contains a compatible string of
 			  "marvell,mv88e6xxx-mdio-external"
+- serdes-output-amplitude: Configure the output amplitude of the serdes
+			   interface.
+    serdes-output-amplitude = <MV88E6352_SERDES_OUT_AMP_210MV>;
 
 Example:
 
diff --git a/include/dt-bindings/net/mv-88e6xxx.h b/include/dt-bindings/net/mv-88e6xxx.h
new file mode 100644
index 000000000000..9bc6decaee83
--- /dev/null
+++ b/include/dt-bindings/net/mv-88e6xxx.h
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Device Tree constants for the Marvell 88E6XXX switch devices
+ */
+
+#ifndef _DT_BINDINGS_MV_88E6XXX_H
+#define _DT_BINDINGS_MV_88E6XXX_H
+
+#define MV88E6352_SERDES_OUT_AMP_14MV		0x0
+#define MV88E6352_SERDES_OUT_AMP_112MV		0x1
+#define MV88E6352_SERDES_OUT_AMP_210MV		0x2
+#define MV88E6352_SERDES_OUT_AMP_308MV		0x3
+#define MV88E6352_SERDES_OUT_AMP_406MV		0x4
+#define MV88E6352_SERDES_OUT_AMP_504MV		0x5
+#define MV88E6352_SERDES_OUT_AMP_602MV		0x6
+#define MV88E6352_SERDES_OUT_AMP_700MV		0x7
+
+#endif
-- 
2.34.0


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

end of thread, other threads:[~2021-11-29 11:20 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-26 15:42 [PATCH 1/2] Docs/devicetree: add serdes-output-amplitude to marvell.txt Holger Brunck
2021-11-26 15:42 ` [PATCH 2/2] dsa: mv88e6xxx: make serdes SGMII/Fiber output amplitude configurable Holger Brunck
2021-11-26 16:16   ` Andrew Lunn
2021-11-26 19:56   ` Marek Behún
2021-11-26 20:43     ` Andrew Lunn
2021-11-26 21:13       ` Marek Behún
2021-11-26 21:49         ` Andrew Lunn
2021-11-29 11:17     ` Holger Brunck
2021-11-26 16:08 ` [PATCH 1/2] Docs/devicetree: add serdes-output-amplitude to marvell.txt Andrew Lunn
2021-11-29 10:40   ` Holger Brunck
2021-11-26 16:12 ` Andrew Lunn
2021-11-29 11:14   ` Holger Brunck
2021-11-26 18:37 ` Jakub Kicinski
2021-11-26 19:57   ` Jakub Kicinski
2021-11-26 23:14 ` Andrew Lunn

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).