blob: 5a9bd320ec462b86b522cac59c685fd69e70a710 [file] [log] [blame]
Peter Robinsonab800e52020-01-20 09:18:18 +00001// SPDX-License-Identifier: GPL-2.0+
2
3#include "rk3399-u-boot.dtsi"
Heiko Stuebner97fa7842020-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 Robinsonab800e52020-01-20 09:18:18 +000015/ {
Heiko Stuebnerefcb2bd2020-06-05 12:06:38 +020016 config {
Quentin Schulz2169e292022-09-15 11:14:29 +020017 u-boot,spl-payload-offset = <0x80000>; /* @ 512KB */
Quentin Schulzc74f6e72022-10-25 12:58:02 +020018 u-boot,mmc-env-offset = <0x5000>; /* @ 20KB */
Heiko Stuebnerefcb2bd2020-06-05 12:06:38 +020019 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 Robinsonab800e52020-01-20 09:18:18 +000023
Heiko Stuebnerefcb2bd2020-06-05 12:06:38 +020024 chosen {
25 stdout-path = "serial0:115200n8";
26 u-boot,spl-boot-order = \
Jagan Teki167efc22020-04-28 15:30:17 +053027 "same-as-spl", &norflash, &sdhci, &sdmmc;
Heiko Stuebnerefcb2bd2020-06-05 12:06:38 +020028 };
Peter Robinsonab800e52020-01-20 09:18:18 +000029
Heiko Stuebnerefcb2bd2020-06-05 12:06:38 +020030 aliases {
Hugh Cole-Bakera2ca3c62020-11-22 13:03:46 +000031 spi5 = &spi5;
Heiko Stuebnerefcb2bd2020-06-05 12:06:38 +020032 };
Jagan Teki4888fbe2020-04-28 15:30:14 +053033};
34
Quentin Schulz35f571b2022-09-15 11:14:30 +020035&binman {
36 simple-bin {
Simon Glasse0c0eff2023-01-07 14:07:18 -070037 fit {
Quentin Schulz35f571b2022-09-15 11:14:30 +020038 offset = <((CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR - 64) * 512)>;
39 };
40 };
Quentin Schulzbd9b4ac2022-09-15 11:14:32 +020041
42#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
43 simple-bin-spi {
Simon Glasse0c0eff2023-01-07 14:07:18 -070044 fit {
Quentin Schulzbd9b4ac2022-09-15 11:14:32 +020045 /* same as u-boot,spl-payload-offset */
46 offset = <0x80000>;
47 };
48 };
49#endif
Quentin Schulz35f571b2022-09-15 11:14:30 +020050};
51
Jagan Teki4888fbe2020-04-28 15:30:14 +053052&gpio1 {
Simon Glass8c103c32023-02-13 08:56:33 -070053 bootph-all;
Jagan Teki4888fbe2020-04-28 15:30:14 +053054};
55
56&gpio3 {
Simon Glass8c103c32023-02-13 08:56:33 -070057 bootph-all;
Quentin Schulzc9bc7f92022-09-15 11:14:22 +020058
59 /*
60 * The Qseven BIOS_DISABLE signal on the RK3399-Q7 keeps the on-module
61 * eMMC and SPI flash powered-down initially (in fact it keeps the
62 * reset signal asserted). BIOS_DISABLE_OVERRIDE pin allows to re-enable
63 * eMMC and SPI after the SPL has been booted from SD Card.
64 */
65 bios_disable_override {
Simon Glass8c103c32023-02-13 08:56:33 -070066 bootph-all;
Quentin Schulzc9bc7f92022-09-15 11:14:22 +020067 gpios = <RK_PD5 GPIO_ACTIVE_LOW>;
68 output-high;
69 line-name = "bios_disable_override";
70 gpio-hog;
71 };
Jagan Teki4888fbe2020-04-28 15:30:14 +053072};
73
Quentin Schulze936e0e2022-09-15 11:14:23 +020074&gpio4 {
Simon Glass8c103c32023-02-13 08:56:33 -070075 bootph-all;
Quentin Schulze936e0e2022-09-15 11:14:23 +020076};
77
Jagan Teki167efc22020-04-28 15:30:17 +053078&norflash {
Jonas Karlman100f4892024-04-30 15:30:24 +000079 bootph-pre-ram;
80 bootph-some-ram;
Quentin Schulze936e0e2022-09-15 11:14:23 +020081};
Jonas Karlmancc877302024-04-30 15:30:22 +000082
83&uart0 {
84 bootph-all;
Jonas Karlmanfa903912024-04-30 15:30:23 +000085 clock-frequency = <24000000>;
86};
87
88&uart0_cts {
89 bootph-pre-sram;
90 bootph-pre-ram;
91};
92
93&uart0_rts {
94 bootph-pre-sram;
95 bootph-pre-ram;
96};
97
98&uart0_xfer {
99 bootph-pre-sram;
100 bootph-pre-ram;
Jonas Karlmancc877302024-04-30 15:30:22 +0000101};
Jonas Karlman04158eb2024-05-01 16:22:24 +0000102
103&vdd_log {
104 regulator-init-microvolt = <950000>;
105};