Skip to content

Commit 7f00be9

Browse files
Saravana Kannangregkh
authored andcommitted
of: property: Add device link support for interrupt-parent, dmas and -gpio(s)
Add support for creating device links out of more DT properties. Cc: Thomas Gleixner <[email protected]> Cc: Vinod Koul <[email protected]> Signed-off-by: Saravana Kannan <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4250b04 commit 7f00be9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/of/property.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,11 @@ DEFINE_SIMPLE_PROP(interconnects, "interconnects", "#interconnect-cells")
11881188
DEFINE_SIMPLE_PROP(iommus, "iommus", "#iommu-cells")
11891189
DEFINE_SIMPLE_PROP(mboxes, "mboxes", "#mbox-cells")
11901190
DEFINE_SIMPLE_PROP(io_channels, "io-channel", "#io-channel-cells")
1191+
DEFINE_SIMPLE_PROP(interrupt_parent, "interrupt-parent", NULL)
1192+
DEFINE_SIMPLE_PROP(dmas, "dmas", "#dma-cells")
11911193
DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)
1194+
DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells")
1195+
DEFINE_SUFFIX_PROP(gpios, "-gpios", "#gpio-cells")
11921196

11931197
static struct device_node *parse_iommu_maps(struct device_node *np,
11941198
const char *prop_name, int index)
@@ -1206,7 +1210,11 @@ static const struct supplier_bindings of_supplier_bindings[] = {
12061210
{ .parse_prop = parse_iommu_maps, },
12071211
{ .parse_prop = parse_mboxes, },
12081212
{ .parse_prop = parse_io_channels, },
1213+
{ .parse_prop = parse_interrupt_parent, },
1214+
{ .parse_prop = parse_dmas, },
12091215
{ .parse_prop = parse_regulators, },
1216+
{ .parse_prop = parse_gpio, },
1217+
{ .parse_prop = parse_gpios, },
12101218
{}
12111219
};
12121220

0 commit comments

Comments
 (0)