blob: f0760750766061bf386608e031e962614037dcae [file] [log] [blame]
Kever Yange68e10b2019-08-15 11:40:56 +08001// SPDX-License-Identifier: GPL-2.0+
Matwey V. Kornilov94b26612019-06-09 00:27:16 +03002/*
Kever Yange68e10b2019-08-15 11:40:56 +08003 * (C) Copyright 2018-2019 Rockchip Electronics Co., Ltd
Matwey V. Kornilov94b26612019-06-09 00:27:16 +03004 */
5
Kever Yange68e10b2019-08-15 11:40:56 +08006#include "rk3328-u-boot.dtsi"
Kever Yange0d3f882019-08-02 10:40:00 +03007#include "rk3328-sdram-lpddr3-1600.dtsi"
Emmanuel Vadotfa43b612019-10-08 19:59:50 +02008/ {
9 chosen {
10 u-boot,spl-boot-order = "same-as-spl", &sdmmc, &emmc;
11 };
12};
Kever Yange0d3f882019-08-02 10:40:00 +030013
Kurt Miller2e208462020-05-13 15:55:20 -040014&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
Kever Yang354ef6b2019-08-15 11:28:31 +080030&usb_host0_xhci {
Chen-Yu Tsai8c7c9232020-04-27 14:52:54 +080031 vbus-supply = <&vcc_host_5v>;
Kever Yang354ef6b2019-08-15 11:28:31 +080032 status = "okay";
33};
Chen-Yu Tsai8c7c9232020-04-27 14:52:54 +080034
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_host_5v {
41 /delete-property/ regulator-always-on;
42 /delete-property/ regulator-boot-on;
43};
Kurt Miller2e208462020-05-13 15:55:20 -040044
45/* Need this and all the pinctrl/gpio stuff above to set pinmux */
46&vcc_sd {
47 u-boot,dm-spl;
48};