U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] net: Use dev APIs
@ 2026-05-26  7:25 Peng Fan (OSS)
  2026-05-26  7:25 ` [PATCH 1/6] net: ethoc: Use dev_read_addr_index() Peng Fan (OSS)
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Peng Fan (OSS) @ 2026-05-26  7:25 UTC (permalink / raw)
  To: u-boot
  Cc: Jerome Forissier, Tom Rini, Peter Robinson, Svyatoslav Ryhel,
	Heiko Schocher, Simon Glass, Marek Vasut, Andrew Goodbody,
	Rasmus Villemoes, Peng Fan

This series converts several Ethernet drivers to use the generic
device model APIs for device tree access, replacing devfdt_* and
fdtdec/fdt_* interfaces.

The goal is to improve compatibility with both live device tree
and flat device tree backends, and to reduce direct dependencies
on low-level FDT helpers.

Patches 1–5 perform straightforward replacements:
  - devfdt_get_addr() → dev_read_addr()
  - devfdt_get_addr_index() → dev_read_addr_index()
  - devfdt_get_addr_index_ptr() → dev_read_addr_index_ptr()
  - map_physmem(devfdt_get_addr()) → dev_remap_addr()

These changes are mechanical and introduce no functional change.

Patch 6 converts the mvpp2 driver from legacy fdtdec/fdt_* APIs
to ofnode-based interfaces. This removes dependencies on
gd->fdt_blob and updates phandle parsing, subnode iteration,
property access, and device lookup.

No intended functional changes.

I not have the platforms to test, just best practice for this work.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
Peng Fan (6):
      net: ethoc: Use dev_read_addr_index()
      net: qe: dm_qe_uec: Use dev_read_addr()
      net: calxedaxgmac: Use dev_read_addr()
      net: dc2114x: Use dev_remap_addr()
      net: mvpp2: Use dev_read_addr_index_ptr()
      net: mvpp2: convert FDT access to ofnode API

 drivers/net/calxedaxgmac.c |  2 +-
 drivers/net/dc2114x.c      |  2 +-
 drivers/net/ethoc.c        |  2 +-
 drivers/net/mvpp2.c        | 63 +++++++++++++++++++++++-----------------------
 drivers/net/qe/dm_qe_uec.c |  2 +-
 5 files changed, 35 insertions(+), 36 deletions(-)
---
base-commit: bb354d04459f5425318aeb8a70bae995ee573f1d
change-id: 20260526-devfdt-net-a0fe75cd7f49

Best regards,
-- 
Peng Fan <peng.fan@nxp.com>


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-05-27 14:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-26  7:25 [PATCH 0/6] net: Use dev APIs Peng Fan (OSS)
2026-05-26  7:25 ` [PATCH 1/6] net: ethoc: Use dev_read_addr_index() Peng Fan (OSS)
2026-05-27  1:17   ` Simon Glass
2026-05-26  7:25 ` [PATCH 2/6] net: qe: dm_qe_uec: Use dev_read_addr() Peng Fan (OSS)
2026-05-27  1:17   ` Simon Glass
2026-05-26  7:25 ` [PATCH 3/6] net: calxedaxgmac: " Peng Fan (OSS)
2026-05-27  1:17   ` Simon Glass
2026-05-26  7:25 ` [PATCH 4/6] net: dc2114x: Use dev_remap_addr() Peng Fan (OSS)
2026-05-27  1:17   ` Simon Glass
2026-05-26  7:25 ` [PATCH 5/6] net: mvpp2: Use dev_read_addr_index_ptr() Peng Fan (OSS)
2026-05-27  1:17   ` Simon Glass
2026-05-26  7:25 ` [PATCH 6/6] net: mvpp2: convert FDT access to ofnode API Peng Fan (OSS)
2026-05-27  1:20   ` Simon Glass
2026-05-27 14:29     ` Peng Fan (OSS)
2026-05-27 14:47       ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox