diff options
author | Saravana Kannan <[email protected]> | 2020-02-19 21:52:50 -0800 |
---|---|---|
committer | Rob Herring <[email protected]> | 2020-02-26 09:50:54 -0600 |
commit | 2f7afc343d49eea0bf88ea5fc8cb3afc392356c3 (patch) | |
tree | 8c1423bee30b4c0c90f3edf8b3f72030cdbbc16b | |
parent | 8acbbddcf9913149ef47b20f487289da02c4a291 (diff) |
of: property: Add device link support for power-domains and hwlocks
Add support for creating device links out of more DT properties.
To: lkml <[email protected]>
To: John Stultz <[email protected]>
To: Rob Herring <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Kevin Hilman <[email protected]>
Cc: Ulf Hansson <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Len Brown <[email protected]>
Cc: Todd Kjos <[email protected]>
Cc: Bjorn Andersson <[email protected]>
Cc: Liam Girdwood <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Signed-off-by: Saravana Kannan <[email protected]>
Tested-by: John Stultz <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
-rw-r--r-- | drivers/of/property.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/of/property.c b/drivers/of/property.c index e851c57a15b0..d977c11decda 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1204,6 +1204,8 @@ DEFINE_SIMPLE_PROP(mboxes, "mboxes", "#mbox-cells") DEFINE_SIMPLE_PROP(io_channels, "io-channel", "#io-channel-cells") DEFINE_SIMPLE_PROP(interrupt_parent, "interrupt-parent", NULL) DEFINE_SIMPLE_PROP(dmas, "dmas", "#dma-cells") +DEFINE_SIMPLE_PROP(power_domains, "power-domains", "#power-domain-cells") +DEFINE_SIMPLE_PROP(hwlocks, "hwlocks", "#hwlock-cells") DEFINE_SUFFIX_PROP(regulators, "-supply", NULL) DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells") DEFINE_SUFFIX_PROP(gpios, "-gpios", "#gpio-cells") @@ -1226,6 +1228,8 @@ static const struct supplier_bindings of_supplier_bindings[] = { { .parse_prop = parse_io_channels, }, { .parse_prop = parse_interrupt_parent, }, { .parse_prop = parse_dmas, }, + { .parse_prop = parse_power_domains, }, + { .parse_prop = parse_hwlocks, }, { .parse_prop = parse_regulators, }, { .parse_prop = parse_gpio, }, { .parse_prop = parse_gpios, }, |