blob: c20a99a620b381897053f1e740eaa43fc10d37da [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 };
Simon Glass8eb227e2020-11-05 06:32:12 -070012
13 smbios {
14 compatible = "u-boot,sysinfo-smbios";
15
16 smbios {
17 system {
18 manufacturer = "pine64";
19 product = "rock64_rk3328";
20 };
21
22 baseboard {
23 manufacturer = "pine64";
24 product = "rock64_rk3328";
25 };
26
27 chassis {
28 manufacturer = "pine64";
29 product = "rock64_rk3328";
30 };
31 };
32 };
Emmanuel Vadotfa43b612019-10-08 19:59:50 +020033};
Kever Yange0d3f882019-08-02 10:40:00 +030034
Kurt Miller2e208462020-05-13 15:55:20 -040035&gpio0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070036 bootph-pre-ram;
Kurt Miller2e208462020-05-13 15:55:20 -040037};
38
39&pinctrl {
Simon Glassd3a98cb2023-02-13 08:56:33 -070040 bootph-pre-ram;
Kurt Miller2e208462020-05-13 15:55:20 -040041};
42
Peter Robinson7715db32021-07-22 16:20:43 +010043&sdmmc0m1_pin {
Simon Glassd3a98cb2023-02-13 08:56:33 -070044 bootph-pre-ram;
Kurt Miller2e208462020-05-13 15:55:20 -040045};
46
47&pcfg_pull_up_4ma {
Simon Glassd3a98cb2023-02-13 08:56:33 -070048 bootph-pre-ram;
Kurt Miller2e208462020-05-13 15:55:20 -040049};
50
Kever Yang354ef6b2019-08-15 11:28:31 +080051&usb_host0_xhci {
Chen-Yu Tsai8c7c9232020-04-27 14:52:54 +080052 vbus-supply = <&vcc_host_5v>;
Kever Yang354ef6b2019-08-15 11:28:31 +080053 status = "okay";
54};
Chen-Yu Tsai8c7c9232020-04-27 14:52:54 +080055
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_host_5v {
62 /delete-property/ regulator-always-on;
63 /delete-property/ regulator-boot-on;
64};
Kurt Miller2e208462020-05-13 15:55:20 -040065
66/* Need this and all the pinctrl/gpio stuff above to set pinmux */
67&vcc_sd {
Simon Glassd3a98cb2023-02-13 08:56:33 -070068 bootph-pre-ram;
Kurt Miller2e208462020-05-13 15:55:20 -040069};
Johannes Krottmayerb914d7d2020-07-09 00:50:33 +020070
71&spi0 {
72 spi_flash: spiflash@0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070073 bootph-all;
Johannes Krottmayerb914d7d2020-07-09 00:50:33 +020074 };
75};