public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Nate Drude <nate.d@variscite.com>
To: Joe Hershberger <joe.hershberger@ni.com>,
	Ramon Fried <rfried.dev@gmail.com>,
	Michal Simek <michal.simek@amd.com>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	u-boot@lists.denx.de
Cc: Eran Matityahu <eran.m@variscite.com>
Subject: Re: [PATCH 2/2] dt-bindings: add device tree bindings for mxl-8611x PHY
Date: Wed, 12 Jul 2023 18:58:06 -0500	[thread overview]
Message-ID: <2dff1a09-3c4e-e4f0-5825-b5ff4d1ecd10@variscite.com> (raw)
In-Reply-To: <d1004a1c-095d-66a9-c10b-86ad035be4de@variscite.com>



On 7/12/23 3:50 PM, Nate Drude wrote:
> The MXL8611X driver has custom bindings for configuring the LEDs
> and RGMII internal delays. This patch adds the documentation and
> defines necessary to configure it from the device tree.
> 
> Signed-off-by: Nate Drude <nate.d@variscite.com>
> ---
>   .../net/phy/mxl-8611x.txt                     | 37 +++++++++++++++++++
>   include/dt-bindings/net/mxl-8611x.h           | 27 ++++++++++++++
>   2 files changed, 64 insertions(+)
>   create mode 100644 doc/device-tree-bindings/net/phy/mxl-8611x.txt
>   create mode 100644 include/dt-bindings/net/mxl-8611x.h
> 
> diff --git a/doc/device-tree-bindings/net/phy/mxl-8611x.txt 
> b/doc/device-tree-bindings/net/phy/mxl-8611x.txt
> new file mode 100644
> index 00000000000..462fdf61666
> --- /dev/null
> +++ b/doc/device-tree-bindings/net/phy/mxl-8611x.txt
> @@ -0,0 +1,37 @@
> +* MaxLinear MXL8611x PHY Device Tree binding
> +
> +Required properties:
> +- reg: PHY address
> +
> +Optional properties:
> +- mxl-8611x,ledN_cfg: Register configuration for COM_EXT_LED0_CFG,
> +    COM_EXT_LED1_CFG, and COM_EXT_LED2_CFG
> +- mxl-8611x,rx-internal-delay-ps: RGMII RX Clock Delay used only when 
> PHY operates
> +    in RGMII mode with internal delay (phy-mode is 'rgmii-id' or
> +    'rgmii-rxid') in pico-seconds.
> +- mxl-8611x,tx-internal-delay-ps-100m: RGMII TX Clock Delay used only 
> when PHY operates
> +    in 10/100M RGMII mode with internal delay (phy-mode is 'rgmii-id' or
> +    'rgmii-txid') in pico-seconds.
> +- mxl-8611x,tx-internal-delay-ps-1g: RGMII TX Clock Delay used only 
> when PHY operates
> +    in 1G RGMII mode with internal delay (phy-mode is 'rgmii-id' or
> +    'rgmii-txid') in pico-seconds.
> +
> +Example:
> +
> +    ethernet-phy@0 {
> +        reg = <0>;
> +
> +        mxl-8611x,led0_cfg = <(
> +            MXL8611X_LEDX_CFG_LINK_UP_RX_ACT_ON |
> +            MXL8611X_LEDX_CFG_LINK_UP_TX_ACT_ON |
> +            MXL8611X_LEDX_CFG_TRAFFIC_ACT_BLINK_IND
> +        )>;
> +        mxl-8611x,led1_cfg = <(
> +            MXL8611X_LEDX_CFG_LINK_UP_10MB_ON |
> +            MXL8611X_LEDX_CFG_LINK_UP_100MB_ON |
> +            MXL8611X_LEDX_CFG_LINK_UP_1GB_ON
> +        )>;
> +        mxl-8611x,rx-internal-delay-ps = <0>;
> +        mxl-8611x,tx-internal-delay-ps-100m = <2250>;
> +        mxl-8611x,tx-internal-delay-ps-1g = <150>;
> +    };
> diff --git a/include/dt-bindings/net/mxl-8611x.h 
> b/include/dt-bindings/net/mxl-8611x.h
> new file mode 100644
> index 00000000000..cb0ec0f8bd0
> --- /dev/null
> +++ b/include/dt-bindings/net/mxl-8611x.h
> @@ -0,0 +1,27 @@
> +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
> +/*
> + * Device Tree constants for MaxLinear MXL8611x PHYs
> + *
> + * Copyright 2023 Variscite Ltd.
> + * Copyright 2023 MaxLinear Inc.
> + */
> +
> +#ifndef _DT_BINDINGS_MXL_8611X_H
> +#define _DT_BINDINGS_MXL_8611X_H
> +
> +#define MXL8611X_LEDX_CFG_TRAFFIC_ACT_BLINK_IND        (1 << 13)
> +#define MXL8611X_LEDX_CFG_LINK_UP_FULL_DUPLEX_ON    (1 << 12)
> +#define MXL8611X_LEDX_CFG_LINK_UP_HALF_DUPLEX_ON    (1 << 11)
> +#define MXL8611X_LEDX_CFG_LINK_UP_TX_ACT_ON        (1 << 10)
> +#define MXL8611X_LEDX_CFG_LINK_UP_RX_ACT_ON        (1 << 9)
> +#define MXL8611X_LEDX_CFG_LINK_UP_TX_ON            (1 << 8)
> +#define MXL8611X_LEDX_CFG_LINK_UP_RX_ON            (1 << 7)
> +#define MXL8611X_LEDX_CFG_LINK_UP_1GB_ON        (1 << 6)
> +#define MXL8611X_LEDX_CFG_LINK_UP_100MB_ON        (1 << 5)
> +#define MXL8611X_LEDX_CFG_LINK_UP_10MB_ON        (1 << 4)
> +#define MXL8611X_LEDX_CFG_LINK_UP_COLLISION        (1 << 3)
> +#define MXL8611X_LEDX_CFG_LINK_UP_1GB_BLINK        (1 << 2)
> +#define MXL8611X_LEDX_CFG_LINK_UP_100MB_BLINK        (1 << 1)
> +#define MXL8611X_LEDX_CFG_LINK_UP_10MB_BLINK        (1 << 0)
> +
> +#endif

I mistakenly sent the mxl-8611x patch series In-Reply-To my previous 
adin patch.

Is this okay, or should I resend the mxl-8611x patches?

Thanks,
Nate

  parent reply	other threads:[~2023-07-12 23:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-11 21:59 [PATCH] phy: adin: add readext and writeext support for mdio cmd Nate Drude
2023-07-11 23:11 ` Marek Vasut
2023-07-12 20:48 ` [PATCH 1/2] phy: mxl-8611x: add driver for MaxLinear mxl-8611x PHYs Nate Drude
2023-07-12 20:50   ` [PATCH 2/2] dt-bindings: add device tree bindings for mxl-8611x PHY Nate Drude
2023-07-12 22:16     ` Marek Vasut
2023-07-13  0:12       ` Nate Drude
2023-07-13  0:22         ` Marek Vasut
2023-07-12 23:58     ` Nate Drude [this message]
2023-07-12 22:15   ` [PATCH 1/2] phy: mxl-8611x: add driver for MaxLinear mxl-8611x PHYs Marek Vasut
2023-07-13  0:14     ` Nate Drude
2023-07-27 20:46 ` [PATCH] phy: adin: add readext and writeext support for mdio cmd Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2dff1a09-3c4e-e4f0-5825-b5ff4d1ecd10@variscite.com \
    --to=nate.d@variscite.com \
    --cc=eran.m@variscite.com \
    --cc=joe.hershberger@ni.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=michal.simek@amd.com \
    --cc=rfried.dev@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox