From dbd581fff4eb79b23b53f83f72bd39584c418340 Mon Sep 17 00:00:00 2001 From: Ravi Gunasekaran Date: Fri, 3 Nov 2023 17:31:54 +0530 Subject: [PATCH] arm: dts: k3-am62p5-sk-u-boot: Configure USB0 in peripheral mode Configure USB0 in peripheral mode so that USB DFU can be the default USB boot mode supported. Signed-off-by: Ravi Gunasekaran --- arch/arm/dts/k3-am62p5-sk-u-boot.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/dts/k3-am62p5-sk-u-boot.dtsi b/arch/arm/dts/k3-am62p5-sk-u-boot.dtsi index 8745e9b561..fc23aa683e 100644 --- a/arch/arm/dts/k3-am62p5-sk-u-boot.dtsi +++ b/arch/arm/dts/k3-am62p5-sk-u-boot.dtsi @@ -25,3 +25,16 @@ reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt", "cfg", "tchan", "rchan", "rflow"; }; + +&usbss0 { + bootph-pre-ram; +}; + +&usb0 { + /* Enable peripheral mode only during bootup + * to support DFU while allowing Linux to stay + * in OTG mode + */ + dr_mode = "peripheral"; + bootph-pre-ram; +};