u-boot/drivers/core
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
..
acpi.c acpi: Add fill_madt to acpi_ops 2024-10-27 17:24:13 -06:00
device-remove.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
device.c dm: core: migrate debug() messages to use dm_warn 2024-07-03 07:36:33 +01:00
devres.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
dump.c dm: core: Show device sequence instead in dm_dump_tree() 2024-08-27 14:30:02 -06:00
fdtaddr.c dm: core: fdtaddr: Avoid multiple calls to fdt_parent_offset() 2024-08-27 14:32:49 -06:00
Kconfig tpl: Support numbered aliases in device tree 2024-10-03 11:52:16 -06:00
lists.c dm: core: Enhance comments on bind_drivers_pass() 2024-07-04 09:25:20 -06:00
Makefile core: ofnode: add of_graph parsing helpers 2025-03-08 16:35:46 +02:00
of_access.c dm: core: implement oftree variant of parse_phandle OPs 2024-12-06 13:00:40 -06:00
of_addr.c dm: core: downgrade some dm_warn messages to log_debug() 2024-10-29 12:09:18 -06:00
of_extra.c dm: core: downgrade some dm_warn messages to log_debug() 2024-10-29 12:09:18 -06:00
ofnode_graph.c core: ofnode_graph: Fix a comment 2025-04-10 22:32:55 -03:00
ofnode.c dm: core: Provide ofnode_find_subnode_unit() 2025-01-22 17:08:24 -06:00
read_extra.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
read.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
regmap.c dm: core: regmap: Avoid multiple calls to ofnode_get_parent() 2024-08-27 14:32:49 -06:00
root.c Revert "dm: core: Simplify dm_probe_devices()" 2025-03-04 08:22:10 -06:00
simple-bus.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
simple-pm-bus.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
syscon-uclass.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
tag.c dm: core: Add a command to show driver model statistics 2022-06-28 03:09:52 +01:00
uclass.c dm: core: Add a helper to retrieve devices through graph endpoints 2025-04-10 22:32:55 -03:00
util.c dm: use list_count_nodes() for counting list nodes 2024-07-31 09:54:53 +02:00