HomeFreeBSD

miibus: Add support for mapping OFW nodes to PHY devices

Description

miibus: Add support for mapping OFW nodes to PHY devices

Create a new miibus OFW specific layer leveraging miibus_fdt.c code.
PHY drivers can than read the properties using device_get_property(9) API.
Resource(interrupt) allocation is also supported.
In order to enable this each NIC/switch driver will have to be modified,
because of how miibus is attached to the parent driver.

Obtained from: Semihalf
Sponsored by: Alstom Group
Differential revision: https://reviews.freebsd.org/D32812

(cherry picked from commit 9174eab4142c5ed199b1599c1a3eefd5f0573ab7)

Details

Provenance
kdAuthored on Nov 15 2021, 8:55 AM
mwCommitted on Mar 29 2022, 10:24 PM
Differential Revision
D32812: miibus: Add support for mapping OFW nodes to PHY devices
Parents
rGb329bb8fd7b6: mii_fdt: Add support for switch PHY node lookup
Branches
Unknown
Tags
Unknown