1
0
Fork 0
mirror of https://github.com/u-boot/u-boot.git synced 2025-04-15 09:24:33 +00:00
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 dm: core: Add note about device_probe idempotence 2022-10-29 07:36:33 -06:00
device.h dm: clarify DM_FLAG_PROBE_AFTER_BIND behaviour 2025-03-30 09:09:04 -06:00
device_compat.h common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
devres.h dm: use newly added linux/compat alloc functions 2024-06-07 16:20:25 -06:00
fdtaddr.h core: introduce dev_read_addr_name[_size]_ptr() functions 2023-10-13 10:15:41 -07:00
lists.h dm: core: Document return value of device bind functions 2022-10-29 07:36:33 -06:00
of.h Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
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 doc: add include/dm/of*.h to the HTML documentation 2022-01-15 10:57:21 +01:00
ofnode.h dm: core: Provide ofnode_find_subnode_unit() 2025-01-22 17:08:24 -06:00
ofnode_decl.h dm: core: Add definitions for multiple ofnode trees 2022-09-29 22:43:43 -04:00
ofnode_graph.h core: ofnode: add of_graph parsing helpers 2025-03-08 16:35:46 +02:00
pci.h doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
pinctrl.h headers: don't depend on errno.h being available 2024-01-24 11:12:11 -05:00
platdata.h doc: add include/dm/platdata.h to the HTML documentation 2022-01-15 10:57:21 +01:00
read.h core: introduce dev_read_addr_name[_size]_ptr() functions 2023-10-13 10:15:41 -07:00
root.h common: Move autoprobe out to board init 2025-01-14 11:42:51 -06:00
simple_bus.h dm: core: Correctly read <ranges> of simple-bus 2021-04-15 14:22:17 +05:30
tag.h dm: core: Add a command to show driver model statistics 2022-06-28 03:09:52 +01:00
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 dm: core: Allow finding a uclass device by partial name 2022-04-25 10:00:03 -04:00
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