From c5a154657063371940d95f58cf70e4aa45970f02 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Fri, 17 Feb 2023 18:30:44 +0100 Subject: ARM: i.MX51: ccmx51: support newer device trees 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 reference those, but given that I can't test my changes, do this small change nad hope the new names are stable enough. Signed-off-by: Ahmad Fatoum Link: https://lore.barebox.org/20230217173057.1839835-8-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer --- arch/arm/boards/ccxmx51/ccxmx51.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'arch/arm/boards/ccxmx51/ccxmx51.c') diff --git a/arch/arm/boards/ccxmx51/ccxmx51.c b/arch/arm/boards/ccxmx51/ccxmx51.c index cbf06e6cd6..4288efe2e0 100644 --- a/arch/arm/boards/ccxmx51/ccxmx51.c +++ b/arch/arm/boards/ccxmx51/ccxmx51.c @@ -189,11 +189,15 @@ static int ccxmx51_board_fixup(struct device_node *root, void *unused) if (!ccxmx_id->eth0) ccxmx51_disable_device(root, "ethernet@83fec000"); - if (!ccxmx_id->eth1) + if (!ccxmx_id->eth1) { ccxmx51_disable_device(root, "lan9221@5,0"); + ccxmx51_disable_device(root, "ethernet@5,0"); + } - if (!ccxmx_id->wless) + if (!ccxmx_id->wless) { ccxmx51_disable_device(root, "esdhc@70008000"); + ccxmx51_disable_device(root, "mmc@70008000"); + } serial = basprintf("%08x%08x", 0, boardserial); of_set_property(root, "serial-number", serial, strlen(serial) + 1, 1); -- cgit v1.2.3