int uclass_find_device_by_phandle(enum uclass_id id, struct udevice *parent, const char *name, struct udevice **devp) { struct udevice *dev; struct uclass *uc; int find_phandle; int ret; *devp = NULL; find_phandle = dev_read_u32_default(parent, name, -1); if (find_phandle ...
* @devp: Returns pointer to device (there is only one per for each ID) * @return 0 if OK, -ve on error */ int uclass_get_device(enum uclass_id id, int index, struct udevice **devp); /** * uclass_get_device_by_name() - Get a uclass device by its name * * This searche...
@@ -503,28 +503,33 @@ int uclass_get_device_by_phandle(enum uclass_id id, struct udevice *parent, } #endif int uclass_first_device(enum uclass_id id, struct udevice **devp) /* * Starting from the given device @dev, return pointer to the first device in * the uclass that prob...
@@ -200,18 +200,29 @@ int uclass_get_device_by_phandle(enum uclass_id id, struct udevice *parent, * * @id: Uclass ID to look up * @devp: Returns pointer to the first device in that uclass, or NULL if none * @return 0 if OK (found or not found), -1 on error * @retur...
if (sysinfo_get(&sysinfo)) return CMD_RET_FAILURE; if (argc > 1) { int i = simple_strtoul(argv[1], NULL, 10); snprintf(name, sizeof(name), "ioep%d", i); ret = uclass_get_device_by_phandle(UCLASS_MISC, board, name, &ioep); ret = uclass_get_device_by_phandle(UCLASS_MIS...
debug("%s: dev_read_phandle_with_args failed: %d\n", __func__,ret); returnret; } ret=uclass_get_device_by_ofnode(UCLASS_IOMMU,args.node, &dev_iommu); if(ret) { debug("%s: uclass_get_device_by_ofnode failed: %d\n",
power_domain->id = args->args[0]; return 0; } int power_domain_get(struct udevice *dev, struct power_domain *power_domain) { struct fdtdec_phandle_args args; int ret; struct udevice *dev_power_domain; struct power_domain_ops *ops; debug("%s(dev=%p, power_domain=%p)\n", __fun...
device tree can provide below constraints/properties: - vdd-polarity-negative: if true: Vdd = vdd-microvolts * (-1) - vss-polarity-negative: if true: Vss = vss-microvolts * (-1) - vdd-supply: phandle to Vdd regulator's node - vss-supply: phandle to Vss regulator's node And ...
* @args: The clock specifier values from device tree. * @return 0 if OK, or a negative error code. */ int (*of_xlate)(struct clk *clock, struct ofnode_phandle_args *args); /** * request - Request a translated clock. * * The clock core calls this function as the second...
doc drivers dts env examples fs include lib net Kconfig Makefile arp.c arp.h bootp.c bootp.h cdp.c cdp.h checksum.c dns.c dns.h eth-uclass.c eth_common.c eth_internal.h eth_legacy.c fastboot.c link_local.c link_local.h