]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: imx6: DHCOM i.MX6 PDK: Fix usb-otg VBUS regulator
authorHarald Seiler <hws@denx.de>
Thu, 16 Apr 2020 08:52:19 +0000 (10:52 +0200)
committerStefano Babic <sbabic@denx.de>
Sat, 18 Apr 2020 11:00:35 +0000 (13:00 +0200)
During the conversion of this board to DM_REGULATOR, usb-mass-storage
was broken and started failing with the following error:

        => ums 0 mmc 2
        UMS: LUN 0, dev 2, hwpart 0, sector 0x0, count 0xe90000
        Error enabling VBUS supply
        g_dnl_register: failed!, error: -38
        g_dnl_register failed

Fix this by adding the relevant GPIO to the regulator node.

Fixes: 4ca99fe81aea ("ARM: imx: dh-imx6: Enable DM regulator")
Signed-off-by: Harald Seiler <hws@denx.de>
arch/arm/dts/imx6qdl-dhcom-pdk2-u-boot.dtsi
arch/arm/dts/imx6qdl-dhcom-u-boot.dtsi [new file with mode: 0644]

index a54e421de3e45b931946bc2f3c90a13ce2a4ee0f..32128d4d2ab4f7be467d0d4ae43505e0a3a2bff3 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright (C) 2020 Harald Seiler <hws@denx.de>
  */
 
+#include "imx6qdl-dhcom-u-boot.dtsi"
+
 / {
        fec_vio: regulator-fec {
                compatible = "regulator-fixed";
diff --git a/arch/arm/dts/imx6qdl-dhcom-u-boot.dtsi b/arch/arm/dts/imx6qdl-dhcom-u-boot.dtsi
new file mode 100644 (file)
index 0000000..4c3b5e8
--- /dev/null
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: (GPL-2.0+)
+/*
+ * Copyright (C) 2020 Harald Seiler <hws@denx.de>
+ */
+
+&reg_usb_otg_vbus {
+       gpio = <&gpio3 31 GPIO_ACTIVE_HIGH>;
+       enable-active-high;
+};