Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * (C) Copyright 2019 Rockchip Electronics Co., Ltd |
| 4 | */ |
| 5 | |
Quentin Schulz | d9ffa5e | 2022-09-02 15:10:52 +0200 | [diff] [blame] | 6 | #include "rockchip-u-boot.dtsi" |
| 7 | |
Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 8 | / { |
| 9 | aliases { |
| 10 | mmc0 = &emmc; |
| 11 | mmc1 = &sdmmc; |
Johannes Krottmayer | 47075e3 | 2020-07-08 23:57:40 +0200 | [diff] [blame] | 12 | spi0 = &spi0; |
Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 13 | }; |
| 14 | |
| 15 | chosen { |
Jonas Karlman | 7a1bd39 | 2024-02-17 00:22:27 +0000 | [diff] [blame] | 16 | u-boot,spl-boot-order = "same-as-spl", &sdmmc, &emmc; |
Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 17 | }; |
| 18 | |
| 19 | dmc: dmc { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 20 | bootph-all; |
Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 21 | compatible = "rockchip,rk3328-dmc"; |
| 22 | reg = <0x0 0xff400000 0x0 0x1000 |
| 23 | 0x0 0xff780000 0x0 0x3000 |
| 24 | 0x0 0xff100000 0x0 0x1000 |
| 25 | 0x0 0xff440000 0x0 0x1000 |
| 26 | 0x0 0xff720000 0x0 0x1000 |
| 27 | 0x0 0xff798000 0x0 0x1000>; |
| 28 | }; |
Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | &cru { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 32 | bootph-all; |
Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 33 | }; |
| 34 | |
Jonas Karlman | d6a1b57 | 2024-02-17 00:22:34 +0000 | [diff] [blame] | 35 | &emmc { |
| 36 | bootph-pre-ram; |
| 37 | bootph-some-ram; |
| 38 | |
| 39 | /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */ |
| 40 | u-boot,spl-fifo-mode; |
| 41 | }; |
| 42 | |
| 43 | &emmc_bus8 { |
| 44 | bootph-pre-ram; |
| 45 | }; |
| 46 | |
| 47 | &emmc_clk { |
| 48 | bootph-pre-ram; |
| 49 | }; |
| 50 | |
| 51 | &emmc_cmd { |
| 52 | bootph-pre-ram; |
| 53 | }; |
| 54 | |
| 55 | &gpio0 { |
| 56 | bootph-pre-ram; |
| 57 | }; |
| 58 | |
Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 59 | &grf { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 60 | bootph-all; |
Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 61 | }; |
| 62 | |
Jonas Karlman | d6a1b57 | 2024-02-17 00:22:34 +0000 | [diff] [blame] | 63 | &pcfg_pull_none { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 64 | bootph-all; |
Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 65 | }; |
| 66 | |
Jonas Karlman | d6a1b57 | 2024-02-17 00:22:34 +0000 | [diff] [blame] | 67 | &pcfg_pull_none_8ma { |
| 68 | bootph-pre-ram; |
| 69 | }; |
| 70 | |
| 71 | &pcfg_pull_none_12ma { |
| 72 | bootph-pre-ram; |
| 73 | }; |
| 74 | |
| 75 | &pcfg_pull_up { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 76 | bootph-all; |
Jonas Karlman | d6a1b57 | 2024-02-17 00:22:34 +0000 | [diff] [blame] | 77 | }; |
Kever Yang | 49ec4b9 | 2019-12-31 15:57:55 +0800 | [diff] [blame] | 78 | |
Jonas Karlman | d6a1b57 | 2024-02-17 00:22:34 +0000 | [diff] [blame] | 79 | &pcfg_pull_up_4ma { |
| 80 | bootph-pre-ram; |
| 81 | }; |
| 82 | |
| 83 | &pcfg_pull_up_8ma { |
| 84 | bootph-pre-ram; |
Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 85 | }; |
| 86 | |
Jonas Karlman | d6a1b57 | 2024-02-17 00:22:34 +0000 | [diff] [blame] | 87 | &pcfg_pull_up_12ma { |
| 88 | bootph-pre-ram; |
| 89 | }; |
| 90 | |
| 91 | &pinctrl { |
| 92 | bootph-pre-ram; |
| 93 | bootph-some-ram; |
| 94 | }; |
| 95 | |
Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 96 | &sdmmc { |
Jonas Karlman | d6a1b57 | 2024-02-17 00:22:34 +0000 | [diff] [blame] | 97 | bootph-pre-ram; |
| 98 | bootph-some-ram; |
Kever Yang | 49ec4b9 | 2019-12-31 15:57:55 +0800 | [diff] [blame] | 99 | |
Jonas Karlman | d6a1b57 | 2024-02-17 00:22:34 +0000 | [diff] [blame] | 100 | /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */ |
Kever Yang | 49ec4b9 | 2019-12-31 15:57:55 +0800 | [diff] [blame] | 101 | u-boot,spl-fifo-mode; |
Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 102 | }; |
Chen-Yu Tsai | 2c63f6d | 2020-04-27 14:52:48 +0800 | [diff] [blame] | 103 | |
Jonas Karlman | d6a1b57 | 2024-02-17 00:22:34 +0000 | [diff] [blame] | 104 | &sdmmc0_bus4 { |
| 105 | bootph-pre-ram; |
| 106 | }; |
| 107 | |
| 108 | &sdmmc0_clk { |
| 109 | bootph-pre-ram; |
| 110 | }; |
| 111 | |
| 112 | &sdmmc0_cmd { |
| 113 | bootph-pre-ram; |
| 114 | }; |
| 115 | |
| 116 | &sdmmc0_dectn { |
| 117 | bootph-pre-ram; |
| 118 | }; |
| 119 | |
| 120 | &sdmmc0m1_pin { |
| 121 | bootph-pre-ram; |
| 122 | }; |
| 123 | |
| 124 | &uart2 { |
| 125 | bootph-all; |
| 126 | clock-frequency = <24000000>; |
Chen-Yu Tsai | 2c63f6d | 2020-04-27 14:52:48 +0800 | [diff] [blame] | 127 | }; |
Johannes Krottmayer | 47075e3 | 2020-07-08 23:57:40 +0200 | [diff] [blame] | 128 | |
Jonas Karlman | d6a1b57 | 2024-02-17 00:22:34 +0000 | [diff] [blame] | 129 | &uart2m1_xfer { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 130 | bootph-all; |
Johannes Krottmayer | 47075e3 | 2020-07-08 23:57:40 +0200 | [diff] [blame] | 131 | }; |
Jonas Karlman | d6a1b57 | 2024-02-17 00:22:34 +0000 | [diff] [blame] | 132 | |
Jagan Teki | 7d4dba9 | 2024-01-17 13:21:51 +0530 | [diff] [blame] | 133 | &vop { |
| 134 | bootph-all; |
| 135 | }; |
| 136 | |
Jonas Karlman | e4b50e0 | 2024-02-17 00:22:39 +0000 | [diff] [blame] | 137 | #ifdef CONFIG_ROCKCHIP_SPI_IMAGE |
| 138 | &binman { |
| 139 | simple-bin-spi { |
| 140 | mkimage { |
| 141 | args = "-n", CONFIG_SYS_SOC, "-T", "rksd"; |
| 142 | offset = <0x8000>; |
| 143 | }; |
| 144 | }; |
| 145 | }; |
| 146 | #endif |