summaryrefslogtreecommitdiff
path: root/arch/arm/dts/rk3328-rock64-u-boot.dtsi
blob: 3c3b1370e3124734f48226685d5290142cc78ef7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// SPDX-License-Identifier: GPL-2.0+
/*
 * (C) Copyright 2018-2019 Rockchip Electronics Co., Ltd
 */

#include "rk3328-u-boot.dtsi"
#include "rk3328-sdram-lpddr3-1600.dtsi"
/ {
	chosen {
		u-boot,spl-boot-order = "same-as-spl", &sdmmc, &emmc;
	};

	smbios {
		compatible = "u-boot,sysinfo-smbios";

		smbios {
			system {
				manufacturer = "pine64";
				product = "rock64_rk3328";
			};

			baseboard {
				manufacturer = "pine64";
				product = "rock64_rk3328";
			};

			chassis {
				manufacturer = "pine64";
				product = "rock64_rk3328";
			};
		};
	};
};

&gpio0 {
	u-boot,dm-spl;
};

&pinctrl {
	u-boot,dm-spl;
};

&sdmmc0m1_pin {
	u-boot,dm-spl;
};

&pcfg_pull_up_4ma {
	u-boot,dm-spl;
};

&usb_host0_xhci {
	vbus-supply = <&vcc_host_5v>;
	status = "okay";
};

/*
 * This makes XHCI responsible for toggling VBUS. This is needed to work
 * around an issue where either XHCI only works with USB 2.0 or OTG doesn't
 * work, depending on how VBUS is configured. Having USB 3.0 seems better.
 */
&vcc_host_5v {
	/delete-property/ regulator-always-on;
	/delete-property/ regulator-boot-on;
};

/* Need this and all the pinctrl/gpio stuff above to set pinmux */
&vcc_sd {
	u-boot,dm-spl;
};

&spi0 {
	spi_flash: spiflash@0 {
		u-boot,dm-pre-reloc;
	};
};