blob: 3ad113983323f3875741985a549516c434e6112e [file] [log] [blame]
Peter Robinson606050d2020-01-20 09:18:18 +00001// SPDX-License-Identifier: GPL-2.0+
2
3#include "rk3399-u-boot.dtsi"
4/ {
5 config {
6 u-boot,spl-payload-offset = <0x40000>; /* @ 256KB */
7 u-boot,mmc-env-offset = <0x4000>; /* @ 16KB */
8 u-boot,efi-partition-entries-offset = <0x200000>; /* 2MB */
9 u-boot,boot-led = "module_led";
10 sysreset-gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>;
11 };
12
13 chosen {
14 stdout-path = "serial0:115200n8";
15 u-boot,spl-boot-order = \
Jagan Teki5cc21182020-04-28 15:30:17 +053016 "same-as-spl", &norflash, &sdhci, &sdmmc;
Peter Robinson606050d2020-01-20 09:18:18 +000017 };
18
19 aliases {
20 spi0 = &spi1;
21 spi1 = &spi5;
22 };
23
Jagan Teki5cc21182020-04-28 15:30:17 +053024 /*
25 * The Qseven BIOS_DISABLE signal on the RK3399-Q7 keeps the on-module
26 * eMMC and SPI flash powered-down initially (in fact it keeps the
27 * reset signal asserted). Even though it is an enable signal, we
28 * model this as a regulator.
29 */
30 bios_enable: bios_enable {
31 compatible = "regulator-fixed";
32 u-boot,dm-pre-reloc;
33 regulator-name = "bios_enable";
34 enable-active-high;
35 gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>;
36 regulator-always-on;
37 regulator-boot-on;
38 regulator-min-microvolt = <1800000>;
39 regulator-max-microvolt = <1800000>;
40 };
Peter Robinson606050d2020-01-20 09:18:18 +000041};
Jagan Teki435970a2020-04-28 15:30:14 +053042
Jagan Teki435970a2020-04-28 15:30:14 +053043&gpio1 {
44 u-boot,dm-pre-reloc;
45};
46
47&gpio3 {
48 u-boot,dm-pre-reloc;
49};
50
Jagan Teki5cc21182020-04-28 15:30:17 +053051&norflash {
Jagan Teki435970a2020-04-28 15:30:14 +053052 u-boot,dm-pre-reloc;
53};