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-lpddr3-1600.dtsi"
8/ {
9	chosen {
10		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &emmc;
11	};
12
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	};
33};
34
35&gpio0 {
36	u-boot,dm-spl;
37};
38
39&pinctrl {
40	u-boot,dm-spl;
41};
42
43&sdmmc0m1_gpio {
44	u-boot,dm-spl;
45};
46
47&pcfg_pull_up_4ma {
48	u-boot,dm-spl;
49};
50
51&usb_host0_xhci {
52	vbus-supply = <&vcc_host_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_host_5v {
62	/delete-property/ regulator-always-on;
63	/delete-property/ regulator-boot-on;
64};
65
66/* Need this and all the pinctrl/gpio stuff above to set pinmux */
67&vcc_sd {
68	u-boot,dm-spl;
69};
70
71&spi0 {
72	spi_flash: spiflash@0 {
73		u-boot,dm-pre-reloc;
74	};
75};
76