u-boot/include/dm
Rasmus Villemoes ca031c0827 dm: core: introduce uclass_get_device_by_of_path()
There's quite a few instances of board-specific code doing

  off = fdt_path_offset(gd->fdt_blob, ...);
  ...
  ret = uclass_get_device_by_of_offset(..., off, &dev);

looking for an eeprom or a pmic via some alias. Such code can be
simplified a little if we have a helper for directly getting a device
via device tree path (including being given as an alias).

Implement it in terms of ofnode rather than raw offsets so that this
will work whether live tree is enabled or not.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
2023-04-28 11:48:59 -06:00
..
platform_data serial: sh: Add HSCIF support for R-Car SoC 2023-04-07 17:13:28 +02:00
acpi.h acpi: Collect tables in the acpi_item list 2022-01-25 11:44:36 -07:00
device-internal.h dm: core: Add note about device_probe idempotence 2022-10-29 07:36:33 -06:00
device.h dm: treewide: Complete migration to new driver model schema 2023-02-14 09:43:27 -07:00
device_compat.h dm: Don't undefine dev_xxx macros 2020-10-16 09:44:27 -04:00
devres.h dm: core: Allow devres to be disabled in SPL 2022-04-18 17:53:56 -04:00
fdtaddr.h doc: add include/dm/fdtaddr.h to the HTML documentation 2022-01-15 10:57:21 +01:00
lists.h dm: core: Document return value of device bind functions 2022-10-29 07:36:33 -06:00
of.h dm: core: Document the livetree structures properly 2022-09-29 16:07:58 -04:00
of_access.h dm: core: Expand integer-reading tests 2022-09-29 22:43:42 -04:00
of_addr.h doc: add include/dm/of*.h to the HTML documentation 2022-01-15 10:57:21 +01: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: treewide: Complete migration to new driver model schema 2023-02-14 09:43:27 -07:00
ofnode_decl.h dm: core: Add definitions for multiple ofnode trees 2022-09-29 22:43:43 -04:00
pci.h doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
pinctrl.h pinctrl: Add third argument label for pinctrl_gpio_request() function 2022-07-28 15:17:45 +02:00
platdata.h doc: add include/dm/platdata.h to the HTML documentation 2022-01-15 10:57:21 +01:00
read.h drivers: core: ofnode: Add panel timing decode. 2023-02-04 18:13:21 +01:00
root.h dm: core: Add a command to show driver model statistics 2022-06-28 03:09:52 +01: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 dm: core: Switch the testbus driver to use a new struct 2022-06-28 03:09:52 +01:00
uclass-id.h drivers/mtd/nvmxip: introduce NVM XIP block storage emulation 2023-04-27 17:01:14 -04: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: introduce uclass_get_device_by_of_path() 2023-04-28 11:48:59 -06:00
util.h dm: core: Support sorting devices with dm tree 2023-01-23 18:11:39 -05:00