[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211126154249.2958-1-holger.brunck@hitachienergy.com>
Date: Fri, 26 Nov 2021 16:42:48 +0100
From: Holger Brunck <holger.brunck@...achienergy.com>
To: netdev@...r.kernel.org
Cc: Holger Brunck <holger.brunck@...achienergy.com>,
Andrew Lunn <andrew@...n.ch>, Jakub Kicinski <kuba@...nel.org>
Subject: [PATCH 1/2] Docs/devicetree: add serdes-output-amplitude to marvell.txt
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@...n.ch>
CC: Jakub Kicinski <kuba@...nel.org>
Signed-off-by: Holger Brunck <holger.brunck@...achienergy.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
Powered by blists - more mailing lists