public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Marek Behún" <marek.behun@nic.cz>
To: Stefan Roese <sr@denx.de>
Cc: u-boot@lists.denx.de, Ramon Fried <rfried.dev@gmail.com>,
	Joe Hershberger <joe.hershberger@ni.com>,
	Aaron Williams <awilliams@marvell.com>,
	Chandrakala Chavva <cchavva@marvell.com>
Subject: Re: [PATCH 1/2] net: phy: marvell: Support reg config via "marvell, reg-init" DT property
Date: Wed, 30 Mar 2022 14:16:01 +0200	[thread overview]
Message-ID: <20220330141601.3225c713@thinkpad> (raw)
In-Reply-To: <20220330083826.829473-1-sr@denx.de>

On Wed, 30 Mar 2022 10:38:25 +0200
Stefan Roese <sr@denx.de> wrote:

> This patch adds support for the "marvell,reg-init" DT property, which
> is used to describe board specific Marvell PHY register configurations
> in the board dts file. This DT property is supported in the Linux Kernel
> since a longer time. Adding it to U-Boot now, enables the boards which
> describe the register settings in their DT files here as well.
> 
> I've included calling this marvell_of_reg_init() to all foo_config()
> functions in this patch as well. If CONFIG_DM_ETH is not set, there is
> no ofnode, or no "marvell,reg-init" property, the PHY initialization is
> unchanged.
> 
> The function marvell_of_reg_init() is a port of the Linux version.
> Please note that I explicitly did not add error checking and handling
> to the U-Boot version, as this is basically not done for phy_read/write
> in this Marvell PHY code.
> 
> This will be used by the upcoming ethernet support on the MIPS
> Octeon EBB 7304 board.
> 
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Ramon Fried <rfried.dev@gmail.com>
> Cc: Joe Hershberger <joe.hershberger@ni.com>
> Cc: Aaron Williams <awilliams@marvell.com>
> Cc: Chandrakala Chavva <cchavva@marvell.com>

Hi Stefan, I know this property is used also in kernel, but what do you
want to use it for?

Because in kernel the idea is to deprecate it.

It is used for example to confiure INT pin, but that should have it's
own property once someone implements it. It is also used to configure
LEDs, and that is hopefully gonna be obsoleted by supporting the LEDs
via the LED subsystem, so afterwards we will write
   ethernet-phy@1 {
      leds {
          led@0 {
              color = ...;
          };
      };
   };

Marek

  parent reply	other threads:[~2022-03-30 12:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-30  8:38 [PATCH 1/2] net: phy: marvell: Support reg config via "marvell, reg-init" DT property Stefan Roese
2022-03-30  8:38 ` [PATCH 2/2] net: phy: marvell: Add support for 88E1240 PHY Stefan Roese
2022-03-30 12:16 ` Marek Behún [this message]
2022-03-30 13:33   ` [PATCH 1/2] net: phy: marvell: Support reg config via "marvell, reg-init" DT property Stefan Roese
2022-03-30 13:48     ` Marek Behún

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=20220330141601.3225c713@thinkpad \
    --to=marek.behun@nic.cz \
    --cc=awilliams@marvell.com \
    --cc=cchavva@marvell.com \
    --cc=joe.hershberger@ni.com \
    --cc=rfried.dev@gmail.com \
    --cc=sr@denx.de \
    --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