blob: 27a454f017668f287f6a9e4e294c2ca8e1a2b92c [file] [log] [blame]
Chen-Yu Tsai3aa5f1d2020-04-27 14:52:53 +08001// 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 };
Simon Glass8eb227e2020-11-05 06:32:12 -070012
13 smbios {
14 compatible = "u-boot,sysinfo-smbios";
15
16 smbios {
17 system {
18 manufacturer = "firefly";
19 product = "roc-rk3328-cc";
20 };
21
22 baseboard {
23 manufacturer = "firefly";
24 product = "roc-rk3328-cc";
25 };
26
27 chassis {
28 manufacturer = "firefly";
29 product = "roc-rk3328-cc";
30 };
31 };
32 };
Chen-Yu Tsai3aa5f1d2020-04-27 14:52:53 +080033};
34
35&gpio0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070036 bootph-pre-ram;
Chen-Yu Tsai3aa5f1d2020-04-27 14:52:53 +080037};
38
39&pinctrl {
Simon Glassd3a98cb2023-02-13 08:56:33 -070040 bootph-pre-ram;
Chen-Yu Tsai3aa5f1d2020-04-27 14:52:53 +080041};
42
Peter Robinson7715db32021-07-22 16:20:43 +010043&sdmmc0m1_pin {
Simon Glassd3a98cb2023-02-13 08:56:33 -070044 bootph-pre-ram;
Chen-Yu Tsai3aa5f1d2020-04-27 14:52:53 +080045};
46
47&pcfg_pull_up_4ma {
Simon Glassd3a98cb2023-02-13 08:56:33 -070048 bootph-pre-ram;
Chen-Yu Tsai3aa5f1d2020-04-27 14:52:53 +080049};
50
51&usb_host0_xhci {
52 vbus-supply = <&vcc_host1_5v>;
53 status = "okay";
54};
55
56/*
57 * This makes XHCI responsible for toggling VBUS. This is needed to work
58 * around an issue where either XHCI only works with USB 2.0 or OTG doesn't
59 * work, depending on how VBUS is configured. Having USB 3.0 seems better.
60 */
61&vcc_host1_5v {
62 /delete-property/ regulator-always-on;
63};
64
65/* Need this and all the pinctrl/gpio stuff above to set pinmux */
66&vcc_sd {
Simon Glassd3a98cb2023-02-13 08:56:33 -070067 bootph-pre-ram;
Chen-Yu Tsai3aa5f1d2020-04-27 14:52:53 +080068};