Tom Rini | 4549e78 | 2018-05-06 18:27:01 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright : STMicroelectronics 2018 |
Patrick Delaunay | 3d2d115 | 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 | 1258e46 | 2019-04-12 14:38:28 +0200 | [diff] [blame] | 20 | pinctrl0 = &pinctrl; |
| 21 | pinctrl1 = &pinctrl_z; |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 22 | }; |
| 23 | |
Patrick Delaunay | 5564b4c | 2021-10-13 15:11:18 +0200 | [diff] [blame] | 24 | binman: binman { |
| 25 | multiple-images; |
| 26 | }; |
| 27 | |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 28 | clocks { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 29 | u-boot,dm-pre-reloc; |
| 30 | }; |
| 31 | |
Patrick Delaunay | 67b7684 | 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 | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 37 | reboot { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 38 | u-boot,dm-pre-reloc; |
Patrick Delaunay | 500327e | 2020-07-06 13:26:53 +0200 | [diff] [blame] | 39 | compatible = "syscon-reboot"; |
| 40 | regmap = <&rcc>; |
| 41 | offset = <0x404>; |
| 42 | mask = <0x1>; |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 43 | }; |
| 44 | |
| 45 | soc { |
| 46 | u-boot,dm-pre-reloc; |
Marek Vasut | a8c97f4 | 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 | b9a0cc8 | 2021-11-15 11:39:13 +0100 | [diff] [blame] | 53 | reg = <0x5a003000 0x550 |
| 54 | 0x5a004000 0x234>; |
Marek Vasut | a8c97f4 | 2020-04-22 13:18:13 +0200 | [diff] [blame] | 55 | |
| 56 | clocks = <&rcc AXIDCG>, |
| 57 | <&rcc DDRC1>, |
| 58 | <&rcc DDRC2>, |
| 59 | <&rcc DDRPHYC>, |
| 60 | <&rcc DDRCAPB>, |
| 61 | <&rcc DDRPHYCAPB>; |
| 62 | |
| 63 | clock-names = "axidcg", |
| 64 | "ddrc1", |
| 65 | "ddrc2", |
| 66 | "ddrphyc", |
| 67 | "ddrcapb", |
| 68 | "ddrphycapb"; |
| 69 | |
| 70 | status = "okay"; |
| 71 | }; |
Patrick Delaunay | e16750f | 2018-03-20 11:45:14 +0100 | [diff] [blame] | 72 | }; |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 73 | }; |
| 74 | |
Patrick Delaunay | bfe1f08 | 2019-02-27 17:01:27 +0100 | [diff] [blame] | 75 | &bsec { |
Patrick Delaunay | 95bd49a | 2020-05-25 12:19:41 +0200 | [diff] [blame] | 76 | u-boot,dm-pre-reloc; |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 77 | }; |
| 78 | |
| 79 | &clk_csi { |
Patrick Delaunay | bfe1f08 | 2019-02-27 17:01:27 +0100 | [diff] [blame] | 80 | u-boot,dm-pre-reloc; |
| 81 | }; |
| 82 | |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 83 | &clk_hsi { |
| 84 | u-boot,dm-pre-reloc; |
| 85 | }; |
| 86 | |
| 87 | &clk_hse { |
| 88 | u-boot,dm-pre-reloc; |
| 89 | }; |
| 90 | |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 91 | &clk_lsi { |
| 92 | u-boot,dm-pre-reloc; |
| 93 | }; |
| 94 | |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 95 | &clk_lse { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 96 | u-boot,dm-pre-reloc; |
| 97 | }; |
| 98 | |
Patrick Delaunay | 4a87fea | 2020-05-25 12:19:48 +0200 | [diff] [blame] | 99 | &cpu0_opp_table { |
| 100 | u-boot,dm-spl; |
| 101 | opp-650000000 { |
| 102 | u-boot,dm-spl; |
| 103 | }; |
| 104 | opp-800000000 { |
| 105 | u-boot,dm-spl; |
| 106 | }; |
| 107 | }; |
| 108 | |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 109 | &gpioa { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 110 | u-boot,dm-pre-reloc; |
| 111 | }; |
| 112 | |
| 113 | &gpiob { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 114 | u-boot,dm-pre-reloc; |
| 115 | }; |
| 116 | |
| 117 | &gpioc { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 118 | u-boot,dm-pre-reloc; |
| 119 | }; |
| 120 | |
| 121 | &gpiod { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 122 | u-boot,dm-pre-reloc; |
| 123 | }; |
| 124 | |
| 125 | &gpioe { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 126 | u-boot,dm-pre-reloc; |
| 127 | }; |
| 128 | |
| 129 | &gpiof { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 130 | u-boot,dm-pre-reloc; |
| 131 | }; |
| 132 | |
| 133 | &gpiog { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 134 | u-boot,dm-pre-reloc; |
| 135 | }; |
| 136 | |
| 137 | &gpioh { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 138 | u-boot,dm-pre-reloc; |
| 139 | }; |
| 140 | |
| 141 | &gpioi { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 142 | u-boot,dm-pre-reloc; |
| 143 | }; |
| 144 | |
| 145 | &gpioj { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 146 | u-boot,dm-pre-reloc; |
| 147 | }; |
| 148 | |
| 149 | &gpiok { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 150 | u-boot,dm-pre-reloc; |
| 151 | }; |
| 152 | |
| 153 | &gpioz { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 154 | u-boot,dm-pre-reloc; |
| 155 | }; |
Patrice Chotard | 75500a4 | 2019-04-30 17:26:21 +0200 | [diff] [blame] | 156 | |
Patrick Delaunay | 6d92300 | 2019-07-30 19:16:14 +0200 | [diff] [blame] | 157 | &iwdg2 { |
| 158 | u-boot,dm-pre-reloc; |
| 159 | }; |
| 160 | |
Patrick Delaunay | 2c25809 | 2019-07-30 19:16:16 +0200 | [diff] [blame] | 161 | /* pre-reloc probe = reserve video frame buffer in video_reserve() */ |
| 162 | <dc { |
| 163 | u-boot,dm-pre-proper; |
| 164 | }; |
| 165 | |
Patrick Delaunay | 5a536df | 2020-10-15 15:01:12 +0200 | [diff] [blame] | 166 | /* temp = waiting kernel update */ |
| 167 | &m4_rproc { |
| 168 | resets = <&rcc MCU_R>, |
| 169 | <&rcc MCU_HOLD_BOOT_R>; |
| 170 | reset-names = "mcu_rst", "hold_boot"; |
| 171 | }; |
| 172 | |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 173 | &pinctrl { |
Patrice Chotard | 75500a4 | 2019-04-30 17:26:21 +0200 | [diff] [blame] | 174 | u-boot,dm-pre-reloc; |
| 175 | }; |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 176 | |
| 177 | &pinctrl_z { |
| 178 | u-boot,dm-pre-reloc; |
| 179 | }; |
| 180 | |
Patrick Delaunay | 7915b99 | 2020-01-28 10:10:59 +0100 | [diff] [blame] | 181 | &pwr_regulators { |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 182 | u-boot,dm-pre-reloc; |
| 183 | }; |
| 184 | |
| 185 | &rcc { |
| 186 | u-boot,dm-pre-reloc; |
Patrick Delaunay | 8d93a97 | 2020-01-28 10:11:03 +0100 | [diff] [blame] | 187 | #address-cells = <1>; |
| 188 | #size-cells = <0>; |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 189 | }; |
| 190 | |
Patrick Delaunay | 0b73355 | 2020-07-06 14:48:58 +0200 | [diff] [blame] | 191 | &usart1 { |
| 192 | resets = <&rcc USART1_R>; |
| 193 | }; |
| 194 | |
| 195 | &usart2 { |
| 196 | resets = <&rcc USART2_R>; |
| 197 | }; |
| 198 | |
| 199 | &usart3 { |
| 200 | resets = <&rcc USART3_R>; |
| 201 | }; |
| 202 | |
| 203 | &uart4 { |
| 204 | resets = <&rcc UART4_R>; |
| 205 | }; |
| 206 | |
| 207 | &uart5 { |
| 208 | resets = <&rcc UART5_R>; |
| 209 | }; |
| 210 | |
| 211 | &usart6 { |
| 212 | resets = <&rcc USART6_R>; |
| 213 | }; |
| 214 | |
| 215 | &uart7 { |
| 216 | resets = <&rcc UART7_R>; |
| 217 | }; |
| 218 | |
| 219 | &uart8{ |
| 220 | resets = <&rcc UART8_R>; |
| 221 | }; |
| 222 | |
Patrick Delaunay | 5564b4c | 2021-10-13 15:11:18 +0200 | [diff] [blame] | 223 | #if defined(CONFIG_STM32MP15x_STM32IMAGE) |
| 224 | &binman { |
| 225 | u-boot-stm32 { |
| 226 | filename = "u-boot.stm32"; |
| 227 | mkimage { |
Patrice Chotard | b9a0cc8 | 2021-11-15 11:39:13 +0100 | [diff] [blame] | 228 | args = "-T stm32image -a 0xc0100000 -e 0xc0100000"; |
Patrick Delaunay | 5564b4c | 2021-10-13 15:11:18 +0200 | [diff] [blame] | 229 | u-boot { |
| 230 | }; |
| 231 | }; |
| 232 | }; |
| 233 | }; |
| 234 | #endif |
| 235 | |
| 236 | #if defined(CONFIG_SPL) |
| 237 | &binman { |
| 238 | spl-stm32 { |
| 239 | filename = "u-boot-spl.stm32"; |
| 240 | mkimage { |
Patrice Chotard | b9a0cc8 | 2021-11-15 11:39:13 +0100 | [diff] [blame] | 241 | args = "-T stm32image -a 0x2ffc2500 -e 0x2ffc2500"; |
Patrick Delaunay | 5564b4c | 2021-10-13 15:11:18 +0200 | [diff] [blame] | 242 | u-boot-spl { |
| 243 | }; |
| 244 | }; |
| 245 | }; |
| 246 | }; |
| 247 | #endif |