u-boot/include/dm
Miquel Raynal 04fcddac28 dm: core: Add a helper to retrieve devices through graph endpoints
There are already several helpers to find a udevice based on its
position in a device tree, like getting a child or a node pointed by a
phandle, but there was no support for graph endpoints, which are very
common in display pipelines.

Add a new helper, named uclass_get_device_by_endpoint() which enters the
child graph reprensentation, looks for a specific port, then follows the
remote endpoint, and finally retrieves the first parent of the given
uclass_id.

This is a very handy and straightforward way to get a bridge or a panel
handle.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
2025-04-10 22:32:55 -03:00
..
platform_data serial: mxc: Support bulk enabling clocks 2025-03-19 13:17:21 -03:00
acpi.h acpi: Add fill_madt to acpi_ops 2024-10-27 17:24:13 -06:00
device-internal.h
device.h dm: clarify DM_FLAG_PROBE_AFTER_BIND behaviour 2025-03-30 09:09:04 -06:00
device_compat.h
devres.h
fdtaddr.h
lists.h
of.h
of_access.h dm: core: implement oftree variant of parse_phandle OPs 2024-12-06 13:00:40 -06:00
of_addr.h include: dm: Remove duplicate newlines 2024-07-29 15:01:04 -06:00
of_extra.h
ofnode.h dm: core: Provide ofnode_find_subnode_unit() 2025-01-22 17:08:24 -06:00
ofnode_decl.h
ofnode_graph.h core: ofnode: add of_graph parsing helpers 2025-03-08 16:35:46 +02:00
pci.h
pinctrl.h
platdata.h
read.h
root.h common: Move autoprobe out to board init 2025-01-14 11:42:51 -06:00
simple_bus.h
tag.h
test.h test: Drop the _test suffix on linker lists 2025-01-24 14:34:40 -06:00
uclass-id.h usb: tcpm: add core framework 2024-10-17 03:12:47 +02:00
uclass-internal.h
uclass.h dm: core: Add a helper to retrieve devices through graph endpoints 2025-04-10 22:32:55 -03:00
util.h dm: use list_count_nodes() for counting list nodes 2024-07-31 09:54:53 +02:00