summaryrefslogtreecommitdiff
path: root/arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi
blob: 55895d0dd19e893e9b281d745af8462a6cc44afd (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// SPDX-License-Identifier: GPL-2.0+

#include "rk3399-u-boot.dtsi"

#ifdef CONFIG_TARGET_PUMA_RK3399_RAM_DDR3_1333
#include "rk3399-sdram-ddr3-1333.dtsi"
#endif
#ifdef CONFIG_TARGET_PUMA_RK3399_RAM_DDR3_1600
#include "rk3399-sdram-ddr3-1600.dtsi"
#endif
#ifdef CONFIG_TARGET_PUMA_RK3399_RAM_DDR3_1866
#include "rk3399-sdram-ddr3-1866.dtsi"
#endif

/ {
	config {
		u-boot,spl-payload-offset = <0x80000>; /* @ 512KB */
		u-boot,mmc-env-offset = <0x5000>;      /* @  20KB */
		u-boot,efi-partition-entries-offset = <0x200000>; /* 2MB */
		u-boot,boot-led = "module_led";
		sysreset-gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>;
	};

	chosen {
		stdout-path = "serial0:115200n8";
		u-boot,spl-boot-order = \
			"same-as-spl", &norflash, &sdhci, &sdmmc;
	};

	aliases {
		spi5 = &spi5;
	};
};

&binman {
#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
	simple-bin-spi {
		fit {
			/* same as u-boot,spl-payload-offset */
			offset = <0x80000>;
		};
	};
#endif
};

&gpio1 {
	bootph-all;
};

&gpio3 {
	bootph-all;

	/*
	 * The Qseven BIOS_DISABLE signal on the RK3399-Q7 keeps the on-module
	 * eMMC and SPI flash powered-down initially (in fact it keeps the
	 * reset signal asserted). BIOS_DISABLE_OVERRIDE pin allows to re-enable
	 * eMMC and SPI after the SPL has been booted from SD Card.
	 */
	bios_disable_override {
		bootph-all;
		gpios = <RK_PD5 GPIO_ACTIVE_LOW>;
		output-high;
		line-name = "bios_disable_override";
		gpio-hog;
	};
};

&gpio4 {
	bootph-all;
};

&norflash {
	bootph-pre-ram;
	bootph-some-ram;
};

&uart0 {
	bootph-all;
	clock-frequency = <24000000>;
};

&uart0_cts {
	bootph-pre-sram;
	bootph-pre-ram;
};

&uart0_rts {
	bootph-pre-sram;
	bootph-pre-ram;
};

&uart0_xfer {
	bootph-pre-sram;
	bootph-pre-ram;
};

&vdd_log {
	regulator-init-microvolt = <950000>;
};