blob: ddb5fa6e7638999d2c44d5f9749cdec696df365b [file] [log] [blame]
Peter Robinsonab800e52020-01-20 09:18:18 +00001// SPDX-License-Identifier: GPL-2.0+
2
3#include "rk3399-u-boot.dtsi"
4/ {
Heiko Stuebnerefcb2bd2020-06-05 12:06:38 +02005 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 };
Peter Robinsonab800e52020-01-20 09:18:18 +000012
Heiko Stuebnerefcb2bd2020-06-05 12:06:38 +020013 chosen {
14 stdout-path = "serial0:115200n8";
15 u-boot,spl-boot-order = \
Jagan Teki167efc22020-04-28 15:30:17 +053016 "same-as-spl", &norflash, &sdhci, &sdmmc;
Heiko Stuebnerefcb2bd2020-06-05 12:06:38 +020017 };
Peter Robinsonab800e52020-01-20 09:18:18 +000018
Heiko Stuebnerefcb2bd2020-06-05 12:06:38 +020019 aliases {
20 spi0 = &spi1;
21 spi1 = &spi5;
22 };
Peter Robinsonab800e52020-01-20 09:18:18 +000023
Jagan Teki167efc22020-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 };
Jagan Teki4888fbe2020-04-28 15:30:14 +053041};
42
43&gpio1 {
44 u-boot,dm-pre-reloc;
45};
46
47&gpio3 {
48 u-boot,dm-pre-reloc;
49};
50
Jagan Teki167efc22020-04-28 15:30:17 +053051&norflash {
Jagan Teki4888fbe2020-04-28 15:30:14 +053052 u-boot,dm-pre-reloc;
53};