blob: e0476ab25c9d7963f8c3b5e39b4e4872678084c8 [file] [log] [blame]
Peter Robinson606050d2020-01-20 09:18:18 +00001// SPDX-License-Identifier: GPL-2.0+
2
3#include "rk3399-u-boot.dtsi"
Heiko Stuebnere2a55862020-06-05 12:06:40 +02004
5#ifdef CONFIG_TARGET_PUMA_RK3399_RAM_DDR3_1333
6#include "rk3399-sdram-ddr3-1333.dtsi"
7#endif
8#ifdef CONFIG_TARGET_PUMA_RK3399_RAM_DDR3_1600
9#include "rk3399-sdram-ddr3-1600.dtsi"
10#endif
11#ifdef CONFIG_TARGET_PUMA_RK3399_RAM_DDR3_1866
12#include "rk3399-sdram-ddr3-1866.dtsi"
13#endif
14
Peter Robinson606050d2020-01-20 09:18:18 +000015/ {
Heiko Stuebnerc71acd12020-06-05 12:06:38 +020016 config {
17 u-boot,spl-payload-offset = <0x40000>; /* @ 256KB */
18 u-boot,mmc-env-offset = <0x4000>; /* @ 16KB */
19 u-boot,efi-partition-entries-offset = <0x200000>; /* 2MB */
20 u-boot,boot-led = "module_led";
21 sysreset-gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>;
22 };
Peter Robinson606050d2020-01-20 09:18:18 +000023
Heiko Stuebnerc71acd12020-06-05 12:06:38 +020024 chosen {
25 stdout-path = "serial0:115200n8";
26 u-boot,spl-boot-order = \
Jagan Teki5cc21182020-04-28 15:30:17 +053027 "same-as-spl", &norflash, &sdhci, &sdmmc;
Heiko Stuebnerc71acd12020-06-05 12:06:38 +020028 };
Peter Robinson606050d2020-01-20 09:18:18 +000029
Heiko Stuebnerc71acd12020-06-05 12:06:38 +020030 aliases {
Hugh Cole-Baker2d338232020-11-22 13:03:46 +000031 spi5 = &spi5;
Heiko Stuebnerc71acd12020-06-05 12:06:38 +020032 };
Peter Robinson606050d2020-01-20 09:18:18 +000033
Jagan Teki5cc21182020-04-28 15:30:17 +053034 /*
35 * The Qseven BIOS_DISABLE signal on the RK3399-Q7 keeps the on-module
36 * eMMC and SPI flash powered-down initially (in fact it keeps the
37 * reset signal asserted). Even though it is an enable signal, we
38 * model this as a regulator.
39 */
40 bios_enable: bios_enable {
41 compatible = "regulator-fixed";
42 u-boot,dm-pre-reloc;
43 regulator-name = "bios_enable";
44 enable-active-high;
45 gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>;
46 regulator-always-on;
47 regulator-boot-on;
48 regulator-min-microvolt = <1800000>;
49 regulator-max-microvolt = <1800000>;
50 };
Christoph Muellnerfc283612021-02-19 01:29:48 +010051
52 vdd_log: vdd-log {
53 compatible = "pwm-regulator";
54 pwms = <&pwm2 0 25000 1>;
55 regulator-name = "vdd_log";
56 regulator-always-on;
57 regulator-boot-on;
58 regulator-min-microvolt = <800000>;
59 regulator-max-microvolt = <1400000>;
60 regulator-init-microvolt = <950000>;
61 vin-supply = <&vcc5v0_sys>;
62 };
Peter Robinson606050d2020-01-20 09:18:18 +000063};
Jagan Teki435970a2020-04-28 15:30:14 +053064
Jagan Teki435970a2020-04-28 15:30:14 +053065&gpio1 {
66 u-boot,dm-pre-reloc;
67};
68
69&gpio3 {
70 u-boot,dm-pre-reloc;
71};
72
Jagan Teki5cc21182020-04-28 15:30:17 +053073&norflash {
Jagan Teki435970a2020-04-28 15:30:14 +053074 u-boot,dm-pre-reloc;
75};