Tom Rini | 8b0c8a1 | 2018-05-06 18:27:01 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright : STMicroelectronics 2018 |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | / { |
| 7 | aliases { |
| 8 | gpio0 = &gpioa; |
| 9 | gpio1 = &gpiob; |
| 10 | gpio2 = &gpioc; |
| 11 | gpio3 = &gpiod; |
| 12 | gpio4 = &gpioe; |
| 13 | gpio5 = &gpiof; |
| 14 | gpio6 = &gpiog; |
| 15 | gpio7 = &gpioh; |
| 16 | gpio8 = &gpioi; |
| 17 | gpio9 = &gpioj; |
| 18 | gpio10 = &gpiok; |
| 19 | gpio25 = &gpioz; |
Patrick Delaunay | 1b58b55 | 2019-04-12 14:38:28 +0200 | [diff] [blame] | 20 | pinctrl0 = &pinctrl; |
| 21 | pinctrl1 = &pinctrl_z; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 22 | }; |
| 23 | |
Patrick Delaunay | 1e2a9b7 | 2021-10-13 15:11:18 +0200 | [diff] [blame] | 24 | binman: binman { |
| 25 | multiple-images; |
| 26 | }; |
| 27 | |
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 28 | clocks { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 29 | u-boot,dm-pre-reloc; |
| 30 | }; |
| 31 | |
Patrick Delaunay | cf45d9d | 2019-07-30 19:16:15 +0200 | [diff] [blame] | 32 | /* need PSCI for sysreset during board_f */ |
| 33 | psci { |
| 34 | u-boot,dm-pre-proper; |
| 35 | }; |
| 36 | |
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 37 | reboot { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 38 | u-boot,dm-pre-reloc; |
Patrick Delaunay | cdc2ca1 | 2020-07-06 13:26:53 +0200 | [diff] [blame] | 39 | compatible = "syscon-reboot"; |
| 40 | regmap = <&rcc>; |
| 41 | offset = <0x404>; |
| 42 | mask = <0x1>; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 43 | }; |
| 44 | |
| 45 | soc { |
| 46 | u-boot,dm-pre-reloc; |
Marek Vasut | 379775c | 2020-04-22 13:18:13 +0200 | [diff] [blame] | 47 | |
| 48 | ddr: ddr@5a003000 { |
| 49 | u-boot,dm-pre-reloc; |
| 50 | |
| 51 | compatible = "st,stm32mp1-ddr"; |
| 52 | |
Patrice Chotard | 75f5606 | 2021-11-15 11:39:13 +0100 | [diff] [blame] | 53 | reg = <0x5a003000 0x550 |
| 54 | 0x5a004000 0x234>; |
Marek Vasut | 379775c | 2020-04-22 13:18:13 +0200 | [diff] [blame] | 55 | |
Marek Vasut | 379775c | 2020-04-22 13:18:13 +0200 | [diff] [blame] | 56 | status = "okay"; |
| 57 | }; |
Patrick Delaunay | 089d435 | 2018-03-20 11:45:14 +0100 | [diff] [blame] | 58 | }; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 59 | }; |
| 60 | |
Patrick Delaunay | bdd7136 | 2019-02-27 17:01:27 +0100 | [diff] [blame] | 61 | &bsec { |
Patrick Delaunay | b6cc505 | 2020-05-25 12:19:41 +0200 | [diff] [blame] | 62 | u-boot,dm-pre-reloc; |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 63 | }; |
| 64 | |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 65 | &clk_csi { |
| 66 | u-boot,dm-pre-reloc; |
| 67 | }; |
| 68 | |
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 69 | &clk_hsi { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 70 | u-boot,dm-pre-reloc; |
| 71 | }; |
| 72 | |
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 73 | &clk_hse { |
Patrick Delaunay | 32ddd26 | 2018-03-20 14:15:06 +0100 | [diff] [blame] | 74 | u-boot,dm-pre-reloc; |
| 75 | }; |
| 76 | |
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 77 | &clk_lsi { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 78 | u-boot,dm-pre-reloc; |
| 79 | }; |
| 80 | |
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 81 | &clk_lse { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 82 | u-boot,dm-pre-reloc; |
| 83 | }; |
| 84 | |
Patrick Delaunay | 72b1080 | 2020-05-25 12:19:48 +0200 | [diff] [blame] | 85 | &cpu0_opp_table { |
| 86 | u-boot,dm-spl; |
| 87 | opp-650000000 { |
| 88 | u-boot,dm-spl; |
| 89 | }; |
| 90 | opp-800000000 { |
| 91 | u-boot,dm-spl; |
| 92 | }; |
| 93 | }; |
| 94 | |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 95 | &gpioa { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 96 | u-boot,dm-pre-reloc; |
| 97 | }; |
| 98 | |
| 99 | &gpiob { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 100 | u-boot,dm-pre-reloc; |
| 101 | }; |
| 102 | |
| 103 | &gpioc { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 104 | u-boot,dm-pre-reloc; |
| 105 | }; |
| 106 | |
| 107 | &gpiod { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 108 | u-boot,dm-pre-reloc; |
| 109 | }; |
| 110 | |
| 111 | &gpioe { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 112 | u-boot,dm-pre-reloc; |
| 113 | }; |
| 114 | |
| 115 | &gpiof { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 116 | u-boot,dm-pre-reloc; |
| 117 | }; |
| 118 | |
| 119 | &gpiog { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 120 | u-boot,dm-pre-reloc; |
| 121 | }; |
| 122 | |
| 123 | &gpioh { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 124 | u-boot,dm-pre-reloc; |
| 125 | }; |
| 126 | |
| 127 | &gpioi { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 128 | u-boot,dm-pre-reloc; |
| 129 | }; |
| 130 | |
| 131 | &gpioj { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 132 | u-boot,dm-pre-reloc; |
| 133 | }; |
| 134 | |
| 135 | &gpiok { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 136 | u-boot,dm-pre-reloc; |
| 137 | }; |
| 138 | |
| 139 | &gpioz { |
Patrick Delaunay | 06020d8 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 140 | u-boot,dm-pre-reloc; |
| 141 | }; |
Patrice Chotard | 26d1107 | 2019-04-30 17:26:21 +0200 | [diff] [blame] | 142 | |
Patrick Delaunay | 1ebe34b | 2019-07-30 19:16:14 +0200 | [diff] [blame] | 143 | &iwdg2 { |
| 144 | u-boot,dm-pre-reloc; |
| 145 | }; |
| 146 | |
Patrick Delaunay | d918b88 | 2019-07-30 19:16:16 +0200 | [diff] [blame] | 147 | /* pre-reloc probe = reserve video frame buffer in video_reserve() */ |
| 148 | <dc { |
| 149 | u-boot,dm-pre-proper; |
| 150 | }; |
| 151 | |
Patrick Delaunay | a841489 | 2020-10-15 15:01:12 +0200 | [diff] [blame] | 152 | /* temp = waiting kernel update */ |
| 153 | &m4_rproc { |
| 154 | resets = <&rcc MCU_R>, |
| 155 | <&rcc MCU_HOLD_BOOT_R>; |
| 156 | reset-names = "mcu_rst", "hold_boot"; |
| 157 | }; |
| 158 | |
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 159 | &pinctrl { |
| 160 | u-boot,dm-pre-reloc; |
| 161 | }; |
| 162 | |
| 163 | &pinctrl_z { |
| 164 | u-boot,dm-pre-reloc; |
| 165 | }; |
| 166 | |
Patrick Delaunay | 900494d | 2020-01-28 10:10:59 +0100 | [diff] [blame] | 167 | &pwr_regulators { |
Patrice Chotard | 26d1107 | 2019-04-30 17:26:21 +0200 | [diff] [blame] | 168 | u-boot,dm-pre-reloc; |
| 169 | }; |
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 170 | |
| 171 | &rcc { |
| 172 | u-boot,dm-pre-reloc; |
Patrick Delaunay | c22caac | 2020-01-28 10:11:03 +0100 | [diff] [blame] | 173 | #address-cells = <1>; |
| 174 | #size-cells = <0>; |
Patrick Delaunay | a370530 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 175 | }; |
| 176 | |
Patrick Delaunay | c3511d3 | 2020-07-06 14:48:58 +0200 | [diff] [blame] | 177 | &usart1 { |
| 178 | resets = <&rcc USART1_R>; |
| 179 | }; |
| 180 | |
| 181 | &usart2 { |
| 182 | resets = <&rcc USART2_R>; |
| 183 | }; |
| 184 | |
| 185 | &usart3 { |
| 186 | resets = <&rcc USART3_R>; |
| 187 | }; |
| 188 | |
| 189 | &uart4 { |
| 190 | resets = <&rcc UART4_R>; |
| 191 | }; |
| 192 | |
| 193 | &uart5 { |
| 194 | resets = <&rcc UART5_R>; |
| 195 | }; |
| 196 | |
| 197 | &usart6 { |
| 198 | resets = <&rcc USART6_R>; |
| 199 | }; |
| 200 | |
| 201 | &uart7 { |
| 202 | resets = <&rcc UART7_R>; |
| 203 | }; |
| 204 | |
| 205 | &uart8{ |
| 206 | resets = <&rcc UART8_R>; |
| 207 | }; |
| 208 | |
Patrick Delaunay | 1e2a9b7 | 2021-10-13 15:11:18 +0200 | [diff] [blame] | 209 | #if defined(CONFIG_STM32MP15x_STM32IMAGE) |
| 210 | &binman { |
| 211 | u-boot-stm32 { |
| 212 | filename = "u-boot.stm32"; |
| 213 | mkimage { |
Patrice Chotard | 75f5606 | 2021-11-15 11:39:13 +0100 | [diff] [blame] | 214 | args = "-T stm32image -a 0xc0100000 -e 0xc0100000"; |
Patrick Delaunay | 1e2a9b7 | 2021-10-13 15:11:18 +0200 | [diff] [blame] | 215 | u-boot { |
| 216 | }; |
| 217 | }; |
| 218 | }; |
| 219 | }; |
| 220 | #endif |
| 221 | |
| 222 | #if defined(CONFIG_SPL) |
| 223 | &binman { |
| 224 | spl-stm32 { |
| 225 | filename = "u-boot-spl.stm32"; |
| 226 | mkimage { |
Patrice Chotard | 75f5606 | 2021-11-15 11:39:13 +0100 | [diff] [blame] | 227 | args = "-T stm32image -a 0x2ffc2500 -e 0x2ffc2500"; |
Patrick Delaunay | 1e2a9b7 | 2021-10-13 15:11:18 +0200 | [diff] [blame] | 228 | u-boot-spl { |
| 229 | }; |
| 230 | }; |
| 231 | }; |
| 232 | }; |
| 233 | #endif |