of: property: fw_devlink: Add support for "resets" and "pwms"
authorSaravana Kannan <saravanak@google.com>
Thu, 5 Aug 2021 22:37:29 +0000 (15:37 -0700)
committerRob Herring <robh@kernel.org>
Sat, 14 Aug 2021 17:24:45 +0000 (12:24 -0500)
Allows better tracking of dependencies between devices.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20210805223729.1196047-1-saravanak@google.com
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/property.c

index 6c028632f425f42242c2697f630ce270b5112e35..a81559c5ee2bab163ea2eea9e7cf73033a225f3e 100644 (file)
@@ -1287,6 +1287,8 @@ DEFINE_SIMPLE_PROP(pinctrl6, "pinctrl-6", NULL)
 DEFINE_SIMPLE_PROP(pinctrl7, "pinctrl-7", NULL)
 DEFINE_SIMPLE_PROP(pinctrl8, "pinctrl-8", NULL)
 DEFINE_SIMPLE_PROP(remote_endpoint, "remote-endpoint", NULL)
+DEFINE_SIMPLE_PROP(pwms, "pwms", "#pwm-cells")
+DEFINE_SIMPLE_PROP(resets, "resets", "#reset-cells")
 DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)
 DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells")
 
@@ -1371,6 +1373,8 @@ static const struct supplier_bindings of_supplier_bindings[] = {
        { .parse_prop = parse_pinctrl7, },
        { .parse_prop = parse_pinctrl8, },
        { .parse_prop = parse_remote_endpoint, .node_not_dev = true, },
+       { .parse_prop = parse_pwms, },
+       { .parse_prop = parse_resets, },
        { .parse_prop = parse_gpio_compat, },
        { .parse_prop = parse_interrupts, },
        { .parse_prop = parse_regulators, },