summaryrefslogtreecommitdiff
path: root/drivers/of
diff options
context:
space:
mode:
authorOlivier Moysan <olivier.moysan@foss.st.com>2024-02-10 21:57:15 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-02-19 19:32:21 +0000
commit4b0b159a194f6f2dd967532951474c0b6bb2b456 (patch)
tree7ec07c83e5c556dea45f48e564fb0daa7292820d /drivers/of
parenta032b921bdeba2274866daafc8e791edd609eb13 (diff)
of: property: add device link support for io-backends
Add support for creating device links out of more DT properties. Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Nuno Sa <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20240210-iio-backend-v11-3-f5242a5fb42a@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/property.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/of/property.c b/drivers/of/property.c
index 641a40cf5cf3..ec914e4516d7 100644
--- a/drivers/of/property.c
+++ b/drivers/of/property.c
@@ -1245,6 +1245,7 @@ DEFINE_SIMPLE_PROP(interconnects, "interconnects", "#interconnect-cells")
DEFINE_SIMPLE_PROP(iommus, "iommus", "#iommu-cells")
DEFINE_SIMPLE_PROP(mboxes, "mboxes", "#mbox-cells")
DEFINE_SIMPLE_PROP(io_channels, "io-channel", "#io-channel-cells")
+DEFINE_SIMPLE_PROP(io_backends, "io-backends", "#io-backend-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")
@@ -1335,6 +1336,7 @@ static const struct supplier_bindings of_supplier_bindings[] = {
{ .parse_prop = parse_iommu_maps, .optional = true, },
{ .parse_prop = parse_mboxes, },
{ .parse_prop = parse_io_channels, },
+ { .parse_prop = parse_io_backends, },
{ .parse_prop = parse_interrupt_parent, },
{ .parse_prop = parse_dmas, .optional = true, },
{ .parse_prop = parse_power_domains, },