2020-01-20 09:18:18 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
|
|
|
|
#include "rk3399-u-boot.dtsi"
|
2020-06-05 10:06:40 +00:00
|
|
|
|
|
|
|
#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
|
|
|
|
|
2020-01-20 09:18:18 +00:00
|
|
|
/ {
|
2020-06-05 10:06:38 +00:00
|
|
|
config {
|
|
|
|
u-boot,spl-payload-offset = <0x40000>; /* @ 256KB */
|
|
|
|
u-boot,mmc-env-offset = <0x4000>; /* @ 16KB */
|
|
|
|
u-boot,efi-partition-entries-offset = <0x200000>; /* 2MB */
|
|
|
|
u-boot,boot-led = "module_led";
|
|
|
|
sysreset-gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
2020-01-20 09:18:18 +00:00
|
|
|
|
2020-06-05 10:06:38 +00:00
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
u-boot,spl-boot-order = \
|
2020-04-28 10:00:17 +00:00
|
|
|
"same-as-spl", &norflash, &sdhci, &sdmmc;
|
2020-06-05 10:06:38 +00:00
|
|
|
};
|
2020-01-20 09:18:18 +00:00
|
|
|
|
2020-06-05 10:06:38 +00:00
|
|
|
aliases {
|
2020-11-22 13:03:46 +00:00
|
|
|
spi5 = &spi5;
|
2020-06-05 10:06:38 +00:00
|
|
|
};
|
2020-01-20 09:18:18 +00:00
|
|
|
|
2020-04-28 10:00:17 +00:00
|
|
|
/*
|
|
|
|
* 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). Even though it is an enable signal, we
|
|
|
|
* model this as a regulator.
|
|
|
|
*/
|
|
|
|
bios_enable: bios_enable {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
u-boot,dm-pre-reloc;
|
|
|
|
regulator-name = "bios_enable";
|
|
|
|
enable-active-high;
|
|
|
|
gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>;
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
};
|
2021-02-19 00:29:48 +00:00
|
|
|
|
|
|
|
vdd_log: vdd-log {
|
|
|
|
compatible = "pwm-regulator";
|
|
|
|
pwms = <&pwm2 0 25000 1>;
|
|
|
|
regulator-name = "vdd_log";
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-min-microvolt = <800000>;
|
|
|
|
regulator-max-microvolt = <1400000>;
|
|
|
|
regulator-init-microvolt = <950000>;
|
|
|
|
vin-supply = <&vcc5v0_sys>;
|
|
|
|
};
|
2020-04-28 10:00:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&gpio1 {
|
|
|
|
u-boot,dm-pre-reloc;
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio3 {
|
|
|
|
u-boot,dm-pre-reloc;
|
|
|
|
};
|
|
|
|
|
2020-04-28 10:00:17 +00:00
|
|
|
&norflash {
|
2020-04-28 10:00:14 +00:00
|
|
|
u-boot,dm-pre-reloc;
|
|
|
|
};
|