Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2024 20:40:35 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        freebsd-arm@freebsd.org
Subject:   connect a "loose" device to a OFW/FDT node (and then use mii_fdt)?
Message-ID:  <45965774-5534-s0o7-173n-ssq2s1330276@yvfgf.mnoonqbm.arg>

next in thread | raw e-mail | index | archive | help
Hi,

I have a device which has its own ivars and is not created from OFW/FDT.

The parent(parent(dev)) was but FDT does not fully represent the logic
of it and we need to create the intermediate device *sigh*

I tried to put ASCII art below (try a plain text view if needed).

Is there any way to connect this "mac" device to its relevant node in FDT
(continuing the "tree" there) and then use mii_fdt to attach (doing
all the PHY stuff and references)?

/bz

So looks something like this:

  X (ofw/fdt/simplebus node/device)
  |
  +--- interim dev (not in FDT created by X)
       |
       +----- mac dev (in FDT but created as child of 'interim dev' and not out of ofw/fdt/simplebus)
                |
                +---- miibus(_fdt if possible)
                         |
                         +------ PHY

-- 
Bjoern A. Zeeb                                                     r15:7



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45965774-5534-s0o7-173n-ssq2s1330276>