@@ -1324,6 +1324,7 @@ DEFINE_SIMPLE_PROP(pwms, "pwms", "#pwm-cells")
DEFINE_SIMPLE_PROP(resets, "resets", "#reset-cells")
DEFINE_SIMPLE_PROP(leds, "leds", NULL)
DEFINE_SIMPLE_PROP(backlight, "backlight", NULL)
+DEFINE_SIMPLE_PROP(depends_on, "depends-on", NULL)
DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)
DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells")
@@ -1417,6 +1418,7 @@ static const struct supplier_bindings of_supplier_bindings[] = {
{ .parse_prop = parse_regulators, },
{ .parse_prop = parse_gpio, },
{ .parse_prop = parse_gpios, },
+ { .parse_prop = parse_depends_on, },
{}
};
The generic "depends-on" property expresses a simple functionnal dependency. The "depends-on" consumer must be available before the "depends-on" provider. Handling "depends-on" as a fw_devlink matches this dependency in a generic way. Signed-off-by: Herve Codina <herve.codina@bootlin.com> --- drivers/of/property.c | 2 ++ 1 file changed, 2 insertions(+)