For SPL DFU booting, define u-boot,spl-boot-order and
configure usb nodes for enabling the gadget in SPL.

Signed-off-by: Arnaud Patard <arnaud.pat...@collabora.com>
---
 arch/arm/dts/rk3399-roc-pc-u-boot.dtsi | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi 
b/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi
index 883d399a06a..e1502f30039 100644
--- a/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi
+++ b/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi
@@ -11,6 +11,10 @@
                sysreset-gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>;
        };
 
+        chosen {
+                u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
+        };
+
        vcc_hub_en: vcc_hub_en-regulator {
                compatible = "regulator-fixed";
                enable-active-high;
@@ -75,3 +79,22 @@
        regulator-min-microvolt = <430000>;
        regulator-init-microvolt = <950000>;
 };
+
+&u2phy0 {
+       bootph-all;
+        status = "okay";
+
+        u2phy0_otg: otg-port {
+               bootph-all;
+                status = "okay";
+        };
+};
+&usbdrd3_0 {
+       bootph-all;
+        status = "okay";
+};
+
+&usbdrd_dwc3_0 {
+       bootph-all;
+        status = "okay";
+};
-- 
2.39.5

Reply via email to