Skip to content
Browse files

overlay-hacks: update for of_check_fragment_phandles function

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
  • Loading branch information...
1 parent cdd6692 commit 98229d1dd5016dcceea3254606fa23d9317407b2 Joel A Fernandes committed
Showing with 19 additions and 1 deletion.
  1. +2 −0 drivers/misc/cape/overlay-hacks.c
  2. +17 −1 firmware/overlay-test.dts
View
2 drivers/misc/cape/overlay-hacks.c
@@ -48,6 +48,8 @@ static int __init overlay_init(void)
/* mark it as detached */
of_node_set_flag(ov_node, OF_DETACHED);
+ of_check_fragment_phandles(ov_node);
+
/*
err = of_resolve(ov_node);
if (err != 0) {
View
18 firmware/overlay-test.dts
@@ -5,9 +5,25 @@
fragment@0 {
target = <&intc>;
__overlay__ {
- bar {
+ barbie {
compatible = "corp,bar";
};
};
};
+ fragment@1 {
+ target = <&i2c2_pins>;
+ __overlay__ {
+ barnie {
+ compatible = "corp,fujj";
+ };
+ };
+ };
+ fragment@2 {
+ target = <&edma>;
+ __overlay__ {
+ bartender {
+ compatible = "corp,eeee";
+ };
+ };
+ };
};

0 comments on commit 98229d1

Please sign in to comment.
Something went wrong with that request. Please try again.