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-roc-cc-u-boot.dtsi
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2018-2019 Rockchip Electronics Co., Ltd
4  */
5
6 #include "rk3328-u-boot.dtsi"
7 #include "rk3328-sdram-ddr4-666.dtsi"
8 / {
9         chosen {
10                 u-boot,spl-boot-order = "same-as-spl", &sdmmc, &emmc;
11         };
12 };
13
14 &gpio0 {
15         u-boot,dm-spl;
16 };
17
18 &pinctrl {
19         u-boot,dm-spl;
20 };
21
22 &sdmmc0m1_gpio {
23         u-boot,dm-spl;
24 };
25
26 &pcfg_pull_up_4ma {
27         u-boot,dm-spl;
28 };
29
30 &usb_host0_xhci {
31         vbus-supply = <&vcc_host1_5v>;
32         status = "okay";
33 };
34
35 /*
36  * This makes XHCI responsible for toggling VBUS. This is needed to work
37  * around an issue where either XHCI only works with USB 2.0 or OTG doesn't
38  * work, depending on how VBUS is configured. Having USB 3.0 seems better.
39  */
40 &vcc_host1_5v {
41         /delete-property/ regulator-always-on;
42 };
43
44 /* Need this and all the pinctrl/gpio stuff above to set pinmux */
45 &vcc_sd {
46         u-boot,dm-spl;
47 };