Peter Robinson | 606050d | 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 | e2a5586 | 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 | 606050d | 2020-01-20 09:18:18 +0000 | [diff] [blame] | 15 | / { |
Heiko Stuebner | c71acd1 | 2020-06-05 12:06:38 +0200 | [diff] [blame] | 16 | config { |
Quentin Schulz | 0088ca4 | 2022-09-15 11:14:29 +0200 | [diff] [blame] | 17 | u-boot,spl-payload-offset = <0x80000>; /* @ 512KB */ |
Quentin Schulz | 5617345 | 2022-10-25 12:58:02 +0200 | [diff] [blame] | 18 | u-boot,mmc-env-offset = <0x5000>; /* @ 20KB */ |
Heiko Stuebner | c71acd1 | 2020-06-05 12:06:38 +0200 | [diff] [blame] | 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 | 606050d | 2020-01-20 09:18:18 +0000 | [diff] [blame] | 23 | |
Heiko Stuebner | c71acd1 | 2020-06-05 12:06:38 +0200 | [diff] [blame] | 24 | chosen { |
| 25 | stdout-path = "serial0:115200n8"; |
| 26 | u-boot,spl-boot-order = \ |
Jagan Teki | 5cc2118 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 27 | "same-as-spl", &norflash, &sdhci, &sdmmc; |
Heiko Stuebner | c71acd1 | 2020-06-05 12:06:38 +0200 | [diff] [blame] | 28 | }; |
Peter Robinson | 606050d | 2020-01-20 09:18:18 +0000 | [diff] [blame] | 29 | |
Heiko Stuebner | c71acd1 | 2020-06-05 12:06:38 +0200 | [diff] [blame] | 30 | aliases { |
Hugh Cole-Baker | 2d33823 | 2020-11-22 13:03:46 +0000 | [diff] [blame] | 31 | spi5 = &spi5; |
Heiko Stuebner | c71acd1 | 2020-06-05 12:06:38 +0200 | [diff] [blame] | 32 | }; |
Peter Robinson | 606050d | 2020-01-20 09:18:18 +0000 | [diff] [blame] | 33 | }; |
Jagan Teki | 435970a | 2020-04-28 15:30:14 +0530 | [diff] [blame] | 34 | |
Quentin Schulz | d7bd815 | 2022-09-15 11:14:30 +0200 | [diff] [blame] | 35 | &binman { |
| 36 | simple-bin { |
Simon Glass | 4de3617 | 2023-01-07 14:07:18 -0700 | [diff] [blame] | 37 | fit { |
Quentin Schulz | d7bd815 | 2022-09-15 11:14:30 +0200 | [diff] [blame] | 38 | offset = <((CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR - 64) * 512)>; |
| 39 | }; |
| 40 | }; |
Quentin Schulz | 744fc43 | 2022-09-15 11:14:32 +0200 | [diff] [blame] | 41 | |
| 42 | #ifdef CONFIG_ROCKCHIP_SPI_IMAGE |
| 43 | simple-bin-spi { |
Simon Glass | 4de3617 | 2023-01-07 14:07:18 -0700 | [diff] [blame] | 44 | fit { |
Quentin Schulz | 744fc43 | 2022-09-15 11:14:32 +0200 | [diff] [blame] | 45 | /* same as u-boot,spl-payload-offset */ |
| 46 | offset = <0x80000>; |
| 47 | }; |
| 48 | }; |
| 49 | #endif |
Quentin Schulz | d7bd815 | 2022-09-15 11:14:30 +0200 | [diff] [blame] | 50 | }; |
| 51 | |
Jagan Teki | 435970a | 2020-04-28 15:30:14 +0530 | [diff] [blame] | 52 | &gpio1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 53 | bootph-all; |
Jagan Teki | 435970a | 2020-04-28 15:30:14 +0530 | [diff] [blame] | 54 | }; |
| 55 | |
| 56 | &gpio3 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 57 | bootph-all; |
Quentin Schulz | a0fb0bd | 2022-09-15 11:14:22 +0200 | [diff] [blame] | 58 | |
| 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 Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 66 | bootph-all; |
Quentin Schulz | a0fb0bd | 2022-09-15 11:14:22 +0200 | [diff] [blame] | 67 | gpios = <RK_PD5 GPIO_ACTIVE_LOW>; |
| 68 | output-high; |
| 69 | line-name = "bios_disable_override"; |
| 70 | gpio-hog; |
| 71 | }; |
Jagan Teki | 435970a | 2020-04-28 15:30:14 +0530 | [diff] [blame] | 72 | }; |
| 73 | |
Quentin Schulz | 286e96c | 2022-09-15 11:14:23 +0200 | [diff] [blame] | 74 | &gpio4 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 75 | bootph-all; |
Quentin Schulz | 286e96c | 2022-09-15 11:14:23 +0200 | [diff] [blame] | 76 | }; |
| 77 | |
Jagan Teki | 5cc2118 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 78 | &norflash { |
Jonas Karlman | 6a6b4f5 | 2024-04-30 15:30:24 +0000 | [diff] [blame] | 79 | bootph-pre-ram; |
| 80 | bootph-some-ram; |
Quentin Schulz | 286e96c | 2022-09-15 11:14:23 +0200 | [diff] [blame] | 81 | }; |
Jonas Karlman | 3a92612 | 2024-04-30 15:30:22 +0000 | [diff] [blame] | 82 | |
| 83 | &uart0 { |
| 84 | bootph-all; |
Jonas Karlman | fab0bd3 | 2024-04-30 15:30:23 +0000 | [diff] [blame] | 85 | 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 Karlman | 3a92612 | 2024-04-30 15:30:22 +0000 | [diff] [blame] | 101 | }; |
Jonas Karlman | f9f26de | 2024-05-01 16:22:24 +0000 | [diff] [blame^] | 102 | |
| 103 | &vdd_log { |
| 104 | regulator-init-microvolt = <950000>; |
| 105 | }; |