[PATCH v1 08/20] ARM: i.MX6: gw54xx: rename watchdog nodes
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Feb 17 09:30:45 PST 2023
Newer device trees have renamed nodes to adhere to schema. Add the new
node names as well. Proper way would be to add aliases in barebox DT and
use reproducible names, but given that I can't test my changes, do this
small change nad hope the new names are stable enough.
---
arch/arm/boards/gateworks-ventana/board.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boards/gateworks-ventana/board.c b/arch/arm/boards/gateworks-ventana/board.c
index c4c696019226..07a21b6d60ef 100644
--- a/arch/arm/boards/gateworks-ventana/board.c
+++ b/arch/arm/boards/gateworks-ventana/board.c
@@ -21,8 +21,13 @@ static int gw54xx_wdog_of_fixup(struct device_node *root, void *context)
/* switch to the watchdog with internal reset capabilities */
np = of_find_node_by_name_address(root, "wdog at 020c0000");
of_device_disable(np);
+ np = of_find_node_by_name_address(root, "watchdog at 20c0000");
+ of_device_disable(np);
+
np = of_find_node_by_name_address(root, "wdog at 020bc000");
of_device_enable(np);
+ np = of_find_node_by_name_address(root, "watchdog at 20bc000");
+ of_device_enable(np);
return 0;
}
--
2.30.2
More information about the barebox
mailing list