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" |
| 4 | / { |
| 5 | config { |
| 6 | u-boot,spl-payload-offset = <0x40000>; /* @ 256KB */ |
| 7 | u-boot,mmc-env-offset = <0x4000>; /* @ 16KB */ |
| 8 | u-boot,efi-partition-entries-offset = <0x200000>; /* 2MB */ |
| 9 | u-boot,boot-led = "module_led"; |
| 10 | sysreset-gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>; |
| 11 | }; |
| 12 | |
| 13 | chosen { |
| 14 | stdout-path = "serial0:115200n8"; |
| 15 | u-boot,spl-boot-order = \ |
Jagan Teki | 5cc2118 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 16 | "same-as-spl", &norflash, &sdhci, &sdmmc; |
Peter Robinson | 606050d | 2020-01-20 09:18:18 +0000 | [diff] [blame] | 17 | }; |
| 18 | |
| 19 | aliases { |
| 20 | spi0 = &spi1; |
| 21 | spi1 = &spi5; |
| 22 | }; |
| 23 | |
Jagan Teki | 5cc2118 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 24 | /* |
| 25 | * The Qseven BIOS_DISABLE signal on the RK3399-Q7 keeps the on-module |
| 26 | * eMMC and SPI flash powered-down initially (in fact it keeps the |
| 27 | * reset signal asserted). Even though it is an enable signal, we |
| 28 | * model this as a regulator. |
| 29 | */ |
| 30 | bios_enable: bios_enable { |
| 31 | compatible = "regulator-fixed"; |
| 32 | u-boot,dm-pre-reloc; |
| 33 | regulator-name = "bios_enable"; |
| 34 | enable-active-high; |
| 35 | gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>; |
| 36 | regulator-always-on; |
| 37 | regulator-boot-on; |
| 38 | regulator-min-microvolt = <1800000>; |
| 39 | regulator-max-microvolt = <1800000>; |
| 40 | }; |
Peter Robinson | 606050d | 2020-01-20 09:18:18 +0000 | [diff] [blame] | 41 | }; |
Jagan Teki | 435970a | 2020-04-28 15:30:14 +0530 | [diff] [blame] | 42 | |
Jagan Teki | 435970a | 2020-04-28 15:30:14 +0530 | [diff] [blame] | 43 | &gpio1 { |
| 44 | u-boot,dm-pre-reloc; |
| 45 | }; |
| 46 | |
| 47 | &gpio3 { |
| 48 | u-boot,dm-pre-reloc; |
| 49 | }; |
| 50 | |
Jagan Teki | 5cc2118 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 51 | &norflash { |
Jagan Teki | 435970a | 2020-04-28 15:30:14 +0530 | [diff] [blame] | 52 | u-boot,dm-pre-reloc; |
| 53 | }; |