diff options
author | Saravana Kannan <saravanak@google.com> | 2024-04-17 22:07:37 +0200 |
---|---|---|
committer | Rob Herring (Arm) <robh@kernel.org> | 2024-04-23 18:33:10 +0200 |
commit | 669430b183fccb3a8b39000a1e9dfb3a2d3028ce (patch) | |
tree | 5c7202d9e6de9ae1b4a8dd38a8f373969ffbfd40 /drivers/of/property.c | |
parent | dt-bindings: watchdog: aspeed,ast2400-wdt: Convert to DT schema (diff) | |
download | linux-669430b183fccb3a8b39000a1e9dfb3a2d3028ce.tar.xz linux-669430b183fccb3a8b39000a1e9dfb3a2d3028ce.zip |
of: property: fw_devlink: Add support for "power-supplies" binding
Add support for parsing power-supplies binding so that fw_devlink can
enforce the dependency.
Signed-off-by: Saravana Kannan <saravanak@google.com>
Cc: Sebastian Reichel <sre@kernel.org>
Link: https://lore.kernel.org/r/20240417200738.1370896-1-saravanak@google.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'drivers/of/property.c')
-rw-r--r-- | drivers/of/property.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/of/property.c b/drivers/of/property.c index c1be194412bf..4ede45001025 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1242,6 +1242,7 @@ DEFINE_SIMPLE_PROP(backlight, "backlight", NULL) DEFINE_SIMPLE_PROP(panel, "panel", NULL) DEFINE_SIMPLE_PROP(msi_parent, "msi-parent", "#msi-cells") DEFINE_SIMPLE_PROP(post_init_providers, "post-init-providers", NULL) +DEFINE_SIMPLE_PROP(power_supplies, "power-supplies", NULL) DEFINE_SUFFIX_PROP(regulators, "-supply", NULL) DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells") @@ -1347,6 +1348,7 @@ static const struct supplier_bindings of_supplier_bindings[] = { { .parse_prop = parse_backlight, }, { .parse_prop = parse_panel, }, { .parse_prop = parse_msi_parent, }, + { .parse_prop = parse_power_supplies, }, { .parse_prop = parse_gpio_compat, }, { .parse_prop = parse_interrupts, }, { .parse_prop = parse_regulators, }, |