Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / arch / arm / dts / rk3328-rock64-u-boot.dtsi
index dbcce6ac64f01d07b4b336a7a794c104c595fe35..f0760750766061bf386608e031e962614037dcae 100644 (file)
@@ -1,34 +1,48 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
- * (C) Copyright 2018 Rockchip Electronics Co., Ltd
- *
- * SPDX-License-Identifier:     GPL-2.0+
+ * (C) Copyright 2018-2019 Rockchip Electronics Co., Ltd
  */
 
+#include "rk3328-u-boot.dtsi"
 #include "rk3328-sdram-lpddr3-1600.dtsi"
-
 / {
-       aliases {
-               mmc0 = &emmc;
-               mmc1 = &sdmmc;
-       };
-
        chosen {
-               u-boot,spl-boot-order = &emmc, &sdmmc;
+               u-boot,spl-boot-order = "same-as-spl", &sdmmc, &emmc;
        };
 };
 
-&cru {
-       u-boot,dm-pre-reloc;
+&gpio0 {
+       u-boot,dm-spl;
 };
 
-&uart2 {
-       u-boot,dm-pre-reloc;
+&pinctrl {
+       u-boot,dm-spl;
 };
 
-&emmc {
-       u-boot,dm-pre-reloc;
+&sdmmc0m1_gpio {
+       u-boot,dm-spl;
+};
+
+&pcfg_pull_up_4ma {
+       u-boot,dm-spl;
+};
+
+&usb_host0_xhci {
+       vbus-supply = <&vcc_host_5v>;
+       status = "okay";
+};
+
+/*
+ * This makes XHCI responsible for toggling VBUS. This is needed to work
+ * around an issue where either XHCI only works with USB 2.0 or OTG doesn't
+ * work, depending on how VBUS is configured. Having USB 3.0 seems better.
+ */
+&vcc_host_5v {
+       /delete-property/ regulator-always-on;
+       /delete-property/ regulator-boot-on;
 };
 
-&sdmmc {
-       u-boot,dm-pre-reloc;
+/* Need this and all the pinctrl/gpio stuff above to set pinmux */
+&vcc_sd {
+       u-boot,dm-spl;
 };