public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Kongyang Liu <seashell11234455@gmail.com>
To: u-boot@lists.denx.de
Cc: Baruch Siach <baruch@tkos.co.il>, Jim Liu <jim.t90615@gmail.com>,
	Joe Hershberger <joe.hershberger@ni.com>,
	Jonas Karlman <jonas@kwiboo.se>, Leo <ycliang@andestech.com>,
	Nils Le Roux <gilbsgilbert@gmail.com>,
	Parvathi Bhogaraju <pbhogaraju@microsoft.com>,
	Ramon Fried <rfried.dev@gmail.com>,
	Rick Chen <rick@andestech.com>, Sean Anderson <seanga2@gmail.com>,
	Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>
Subject: [PATCH v2 0/3] board: sophgo: milkv_duo: Add ethernet support for Milk-V Duo board
Date: Sat, 20 Apr 2024 15:00:26 +0800	[thread overview]
Message-ID: <20240420070149.8917-1-seashell11234455@gmail.com> (raw)

This series add init code for cv1800b ethernet phy and enable ethernet
support for Sophgo Milk-V Duo board.

In cv1800b, as the PHY register phy_id being initialized to 0, it is
necessary to initialize the PHY before the ethernet driver initialization.
Therefore, the initialization code is placed in the board_init function.

For the Linux kernel, due to the presence of a hibernation mechanism, whether
the phy id will be reset to 0 after hibernation and how to reassign it
thereafter remains an issue to consider. Once this issue is resolved, the
Ethernet driver for the Milk-V Duo will be sent to the kernel.

Changes in v2:
- Change compatible
- Add clocks and interrupt properties.

Kongyang Liu (3):
  board: milkv_duo: Add init code for Milk-V Duo ethernet
  riscv: dts: sophgo: Add ethernet node
  configs: milkv_duo: Add ethernet configs

 arch/riscv/dts/cv1800b-milkv-duo.dts |  7 ++-
 arch/riscv/dts/cv18xx.dtsi           | 23 ++++++++
 board/sophgo/milkv_duo/Makefile      |  3 +-
 board/sophgo/milkv_duo/board.c       |  4 ++
 board/sophgo/milkv_duo/ethernet.c    | 79 ++++++++++++++++++++++++++++
 board/sophgo/milkv_duo/ethernet.h    | 11 ++++
 configs/milkv_duo_defconfig          |  4 ++
 drivers/net/designware.c             |  1 +
 8 files changed, 130 insertions(+), 2 deletions(-)
 create mode 100644 board/sophgo/milkv_duo/ethernet.c
 create mode 100644 board/sophgo/milkv_duo/ethernet.h

-- 
2.41.0


             reply	other threads:[~2024-04-20 10:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-20  7:00 Kongyang Liu [this message]
2024-04-20  7:00 ` [PATCH v2 1/3] board: milkv_duo: Add init code for Milk-V Duo ethernet Kongyang Liu
2024-04-20  7:00 ` [PATCH v2 2/3] riscv: dts: sophgo: Add ethernet node Kongyang Liu
2024-05-01 14:32   ` Leo Liang
2024-04-20  7:00 ` [PATCH v2 3/3] configs: milkv_duo: Add ethernet configs Kongyang Liu

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=20240420070149.8917-1-seashell11234455@gmail.com \
    --to=seashell11234455@gmail.com \
    --cc=baruch@tkos.co.il \
    --cc=gilbsgilbert@gmail.com \
    --cc=jim.t90615@gmail.com \
    --cc=joe.hershberger@ni.com \
    --cc=jonas@kwiboo.se \
    --cc=pbhogaraju@microsoft.com \
    --cc=rfried.dev@gmail.com \
    --cc=rick@andestech.com \
    --cc=seanga2@gmail.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=ycliang@andestech.com \
    /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