Jagan Teki | 46dbd40 | 2019-05-07 23:51:52 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com> |
| 4 | */ |
| 5 | |
| 6 | #include "rk3399-u-boot.dtsi" |
Simon Glass | 8251e03 | 2020-07-19 13:55:58 -0600 | [diff] [blame] | 7 | |
Simon Glass | cc3f435 | 2021-12-24 16:43:44 +0300 | [diff] [blame] | 8 | / { |
| 9 | chosen { |
| 10 | u-boot,spl-boot-order = &spi_flash; |
| 11 | }; |
| 12 | |
| 13 | config { |
Jonas Karlman | 1f3294b | 2024-12-12 23:57:09 +0000 | [diff] [blame] | 14 | u-boot,spl-payload-offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>; |
Simon Glass | cc3f435 | 2021-12-24 16:43:44 +0300 | [diff] [blame] | 15 | }; |
| 16 | }; |
| 17 | |
| 18 | &binman { |
| 19 | rom { |
| 20 | size = <0x800000>; |
| 21 | }; |
| 22 | }; |
| 23 | |
| 24 | &cros_ec { |
| 25 | ec-interrupt = <&gpio0 RK_PA1 GPIO_ACTIVE_LOW>; |
| 26 | }; |
| 27 | |
| 28 | &edp { |
| 29 | rockchip,panel = <&edp_panel>; |
| 30 | }; |
| 31 | |
Jonas Karlman | e9b187d | 2024-12-12 23:57:15 +0000 | [diff] [blame] | 32 | &emmc_phy { |
| 33 | /delete-property/ bootph-pre-ram; |
| 34 | }; |
| 35 | |
Jonas Karlman | 96fbf68 | 2024-12-12 23:57:18 +0000 | [diff] [blame] | 36 | &gpio0 { |
| 37 | bootph-pre-ram; |
| 38 | }; |
| 39 | |
| 40 | &pp1500_ap_io { |
| 41 | bootph-pre-ram; |
| 42 | }; |
Jonas Karlman | e9b187d | 2024-12-12 23:57:15 +0000 | [diff] [blame] | 43 | |
Simon Glass | cc3f435 | 2021-12-24 16:43:44 +0300 | [diff] [blame] | 44 | &pp1800_audio { |
| 45 | regulator-min-microvolt = <1800000>; |
| 46 | regulator-max-microvolt = <1800000>; |
| 47 | }; |
| 48 | |
Jonas Karlman | 96fbf68 | 2024-12-12 23:57:18 +0000 | [diff] [blame] | 49 | &pp1500_en { |
| 50 | bootph-pre-ram; |
| 51 | }; |
| 52 | |
| 53 | &pp3000 { |
| 54 | bootph-pre-ram; |
| 55 | }; |
| 56 | |
| 57 | &pp3000_en { |
| 58 | bootph-pre-ram; |
| 59 | }; |
| 60 | |
Simon Glass | cc3f435 | 2021-12-24 16:43:44 +0300 | [diff] [blame] | 61 | &ppvar_bigcpu_pwm { |
| 62 | regulator-init-microvolt = <900000>; |
| 63 | }; |
| 64 | |
| 65 | &ppvar_centerlogic_pwm { |
| 66 | regulator-init-microvolt = <900000>; |
| 67 | }; |
| 68 | |
| 69 | &ppvar_gpu_pwm { |
| 70 | regulator-init-microvolt = <900000>; |
| 71 | }; |
| 72 | |
| 73 | &ppvar_litcpu_pwm { |
| 74 | regulator-init-microvolt = <900000>; |
| 75 | }; |
| 76 | |
| 77 | &ppvar_sd_card_io { |
| 78 | enable-gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; |
| 79 | }; |
| 80 | |
Jonas Karlman | 6a6b4f5 | 2024-04-30 15:30:24 +0000 | [diff] [blame] | 81 | &sdhci { |
| 82 | /delete-property/ bootph-pre-ram; |
| 83 | }; |
| 84 | |
| 85 | &sdmmc { |
| 86 | /delete-property/ bootph-pre-ram; |
| 87 | }; |
| 88 | |
| 89 | &sdmmc_bus4 { |
| 90 | /delete-property/ bootph-pre-ram; |
| 91 | }; |
| 92 | |
| 93 | &sdmmc_cd { |
| 94 | /delete-property/ bootph-pre-ram; |
| 95 | }; |
| 96 | |
| 97 | &sdmmc_clk { |
| 98 | /delete-property/ bootph-pre-ram; |
| 99 | }; |
| 100 | |
| 101 | &sdmmc_cmd { |
| 102 | /delete-property/ bootph-pre-ram; |
| 103 | }; |
| 104 | |
Jonas Karlman | d772812 | 2024-05-01 16:22:23 +0000 | [diff] [blame] | 105 | &spi1 { |
| 106 | spi_flash: flash@0 { |
Jonas Karlman | e9b187d | 2024-12-12 23:57:15 +0000 | [diff] [blame] | 107 | bootph-pre-ram; |
| 108 | bootph-some-ram; |
Jonas Karlman | d772812 | 2024-05-01 16:22:23 +0000 | [diff] [blame] | 109 | }; |
| 110 | }; |
| 111 | |
Simon Glass | cc3f435 | 2021-12-24 16:43:44 +0300 | [diff] [blame] | 112 | &spi5 { |
| 113 | spi-activate-delay = <100>; |
| 114 | spi-max-frequency = <3000000>; |
| 115 | spi-deactivate-delay = <200>; |
| 116 | }; |