[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YaEGfrvdS0h0RAWf@lunn.ch>
Date: Fri, 26 Nov 2021 17:08:30 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Holger Brunck <holger.brunck@...achienergy.com>
Cc: netdev@...r.kernel.org, Jakub Kicinski <kuba@...nel.org>
Subject: Re: [PATCH 1/2] Docs/devicetree: add serdes-output-amplitude to
marvell.txt
On Fri, Nov 26, 2021 at 04:42:48PM +0100, Holger Brunck wrote:
> 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>;
Please make this actually millivolts, not an enum. Have the property
called serdes-output-amplitude-mv. The driver should convert from a mv
value to whatever value you need to write to the register, or return
-EINVAL.
Andrew
Powered by blists - more mailing lists