Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / arch / arm / dts / rk3399-puma-u-boot.dtsi
1 // 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 = \
16                         "same-as-spl", &norflash, &sdhci, &sdmmc;
17        };
18
19        aliases {
20                spi0 = &spi1;
21                spi1 = &spi5;
22        };
23
24         /*
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         };
41 };
42
43 &gpio1 {
44         u-boot,dm-pre-reloc;
45 };
46
47 &gpio3 {
48         u-boot,dm-pre-reloc;
49 };
50
51 &norflash {
52         u-boot,dm-pre-reloc;
53 };