Peter Robinson | ab800e5 | 2020-01-20 09:18:18 +0000 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | #include "rk3399-u-boot.dtsi" |
Heiko Stuebner | 97fa784 | 2020-06-05 12:06:40 +0200 | [diff] [blame] | 4 | |
| 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 Robinson | ab800e5 | 2020-01-20 09:18:18 +0000 | [diff] [blame] | 15 | / { |
Heiko Stuebner | efcb2bd | 2020-06-05 12:06:38 +0200 | [diff] [blame] | 16 | 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 Robinson | ab800e5 | 2020-01-20 09:18:18 +0000 | [diff] [blame] | 23 | |
Heiko Stuebner | efcb2bd | 2020-06-05 12:06:38 +0200 | [diff] [blame] | 24 | chosen { |
| 25 | stdout-path = "serial0:115200n8"; |
| 26 | u-boot,spl-boot-order = \ |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 27 | "same-as-spl", &norflash, &sdhci, &sdmmc; |
Heiko Stuebner | efcb2bd | 2020-06-05 12:06:38 +0200 | [diff] [blame] | 28 | }; |
Peter Robinson | ab800e5 | 2020-01-20 09:18:18 +0000 | [diff] [blame] | 29 | |
Heiko Stuebner | efcb2bd | 2020-06-05 12:06:38 +0200 | [diff] [blame] | 30 | aliases { |
| 31 | spi0 = &spi1; |
| 32 | spi1 = &spi5; |
| 33 | }; |
Peter Robinson | ab800e5 | 2020-01-20 09:18:18 +0000 | [diff] [blame] | 34 | |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 35 | /* |
| 36 | * The Qseven BIOS_DISABLE signal on the RK3399-Q7 keeps the on-module |
| 37 | * eMMC and SPI flash powered-down initially (in fact it keeps the |
| 38 | * reset signal asserted). Even though it is an enable signal, we |
| 39 | * model this as a regulator. |
| 40 | */ |
| 41 | bios_enable: bios_enable { |
| 42 | compatible = "regulator-fixed"; |
| 43 | u-boot,dm-pre-reloc; |
| 44 | regulator-name = "bios_enable"; |
| 45 | enable-active-high; |
| 46 | gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>; |
| 47 | regulator-always-on; |
| 48 | regulator-boot-on; |
| 49 | regulator-min-microvolt = <1800000>; |
| 50 | regulator-max-microvolt = <1800000>; |
| 51 | }; |
Jagan Teki | 4888fbe | 2020-04-28 15:30:14 +0530 | [diff] [blame] | 52 | }; |
| 53 | |
| 54 | &gpio1 { |
| 55 | u-boot,dm-pre-reloc; |
| 56 | }; |
| 57 | |
| 58 | &gpio3 { |
| 59 | u-boot,dm-pre-reloc; |
| 60 | }; |
| 61 | |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 62 | &norflash { |
Jagan Teki | 4888fbe | 2020-04-28 15:30:14 +0530 | [diff] [blame] | 63 | u-boot,dm-pre-reloc; |
| 64 | }; |