diff mbox series

[v2,5/7] board: ti: am43xx: Use aliases for USB controllers

Message ID 20261104-v2026-10-next-topic-am45-ofupstream-am4-of-upstream-v2-5-6091edbb51fa@baylibre.com
State New
Delegated to: Tom Rini
Headers show
Series arm: dts: am43xx: Switch to OF_UPSTREAM | expand

Commit Message

Markus Schneider-Pargmann Nov. 4, 2026, 9:47 a.m. UTC
The paths to the USB controllers are currently hard coded. These paths
don't exist in the upstream devicetrees. Use the usb aliases instead
which works now and if OF_UPSTREAM is enabled.

Signed-off-by: Markus Schneider-Pargmann (TI) <msp@baylibre.com>
---
 board/ti/am43xx/board.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c
index 42e2bef8151f..96d1b5b3b5d7 100644
--- a/board/ti/am43xx/board.c
+++ b/board/ti/am43xx/board.c
@@ -707,9 +707,9 @@  int board_late_init(void)
 #endif
 
 #if CONFIG_IS_ENABLED(DM_USB) && CONFIG_IS_ENABLED(OF_CONTROL)
-	if (device_okay("/ocp/omap_dwc3@48380000"))
+	if (device_okay("usb0"))
 		enable_usb_clocks(0);
-	if (device_okay("/ocp/omap_dwc3@483c0000"))
+	if (device_okay("usb1"))
 		enable_usb_clocks(1);
 #endif