Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) |
| 2 | /* |
| 3 | * Copyright (C) STMicroelectronics 2017 - All Rights Reserved |
| 4 | * Author: Ludovic Barre <ludovic.barre@st.com> for STMicroelectronics. |
| 5 | */ |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 6 | #include <dt-bindings/pinctrl/stm32-pinfunc.h> |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 7 | |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 8 | / { |
| 9 | soc { |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 10 | pinctrl: pin-controller@50002000 { |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 11 | #address-cells = <1>; |
| 12 | #size-cells = <1>; |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 13 | compatible = "st,stm32mp157-pinctrl"; |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 14 | ranges = <0 0x50002000 0xa400>; |
| 15 | pins-are-numbered; |
| 16 | |
| 17 | gpioa: gpio@50002000 { |
| 18 | gpio-controller; |
| 19 | #gpio-cells = <2>; |
| 20 | interrupt-controller; |
| 21 | #interrupt-cells = <2>; |
| 22 | reg = <0x0 0x400>; |
| 23 | clocks = <&rcc GPIOA>; |
| 24 | st,bank-name = "GPIOA"; |
| 25 | status = "disabled"; |
| 26 | }; |
| 27 | |
| 28 | gpiob: gpio@50003000 { |
| 29 | gpio-controller; |
| 30 | #gpio-cells = <2>; |
| 31 | interrupt-controller; |
| 32 | #interrupt-cells = <2>; |
| 33 | reg = <0x1000 0x400>; |
| 34 | clocks = <&rcc GPIOB>; |
| 35 | st,bank-name = "GPIOB"; |
| 36 | status = "disabled"; |
| 37 | }; |
| 38 | |
| 39 | gpioc: gpio@50004000 { |
| 40 | gpio-controller; |
| 41 | #gpio-cells = <2>; |
| 42 | interrupt-controller; |
| 43 | #interrupt-cells = <2>; |
| 44 | reg = <0x2000 0x400>; |
| 45 | clocks = <&rcc GPIOC>; |
| 46 | st,bank-name = "GPIOC"; |
| 47 | status = "disabled"; |
| 48 | }; |
| 49 | |
| 50 | gpiod: gpio@50005000 { |
| 51 | gpio-controller; |
| 52 | #gpio-cells = <2>; |
| 53 | interrupt-controller; |
| 54 | #interrupt-cells = <2>; |
| 55 | reg = <0x3000 0x400>; |
| 56 | clocks = <&rcc GPIOD>; |
| 57 | st,bank-name = "GPIOD"; |
| 58 | status = "disabled"; |
| 59 | }; |
| 60 | |
| 61 | gpioe: gpio@50006000 { |
| 62 | gpio-controller; |
| 63 | #gpio-cells = <2>; |
| 64 | interrupt-controller; |
| 65 | #interrupt-cells = <2>; |
| 66 | reg = <0x4000 0x400>; |
| 67 | clocks = <&rcc GPIOE>; |
| 68 | st,bank-name = "GPIOE"; |
| 69 | status = "disabled"; |
| 70 | }; |
| 71 | |
| 72 | gpiof: gpio@50007000 { |
| 73 | gpio-controller; |
| 74 | #gpio-cells = <2>; |
| 75 | interrupt-controller; |
| 76 | #interrupt-cells = <2>; |
| 77 | reg = <0x5000 0x400>; |
| 78 | clocks = <&rcc GPIOF>; |
| 79 | st,bank-name = "GPIOF"; |
| 80 | status = "disabled"; |
| 81 | }; |
| 82 | |
| 83 | gpiog: gpio@50008000 { |
| 84 | gpio-controller; |
| 85 | #gpio-cells = <2>; |
| 86 | interrupt-controller; |
| 87 | #interrupt-cells = <2>; |
| 88 | reg = <0x6000 0x400>; |
| 89 | clocks = <&rcc GPIOG>; |
| 90 | st,bank-name = "GPIOG"; |
| 91 | status = "disabled"; |
| 92 | }; |
| 93 | |
| 94 | gpioh: gpio@50009000 { |
| 95 | gpio-controller; |
| 96 | #gpio-cells = <2>; |
| 97 | interrupt-controller; |
| 98 | #interrupt-cells = <2>; |
| 99 | reg = <0x7000 0x400>; |
| 100 | clocks = <&rcc GPIOH>; |
| 101 | st,bank-name = "GPIOH"; |
| 102 | status = "disabled"; |
| 103 | }; |
| 104 | |
| 105 | gpioi: gpio@5000a000 { |
| 106 | gpio-controller; |
| 107 | #gpio-cells = <2>; |
| 108 | interrupt-controller; |
| 109 | #interrupt-cells = <2>; |
| 110 | reg = <0x8000 0x400>; |
| 111 | clocks = <&rcc GPIOI>; |
| 112 | st,bank-name = "GPIOI"; |
| 113 | status = "disabled"; |
| 114 | }; |
| 115 | |
| 116 | gpioj: gpio@5000b000 { |
| 117 | gpio-controller; |
| 118 | #gpio-cells = <2>; |
| 119 | interrupt-controller; |
| 120 | #interrupt-cells = <2>; |
| 121 | reg = <0x9000 0x400>; |
| 122 | clocks = <&rcc GPIOJ>; |
| 123 | st,bank-name = "GPIOJ"; |
| 124 | status = "disabled"; |
| 125 | }; |
| 126 | |
| 127 | gpiok: gpio@5000c000 { |
| 128 | gpio-controller; |
| 129 | #gpio-cells = <2>; |
| 130 | interrupt-controller; |
| 131 | #interrupt-cells = <2>; |
| 132 | reg = <0xa000 0x400>; |
| 133 | clocks = <&rcc GPIOK>; |
| 134 | st,bank-name = "GPIOK"; |
| 135 | status = "disabled"; |
| 136 | }; |
| 137 | |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 138 | qspi_bk1_pins_a: qspi-bk1-0 { |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 139 | pins1 { |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 140 | pinmux = <STM32_PINMUX('F', 8, AF10)>, /* QSPI_BK1_IO0 */ |
| 141 | <STM32_PINMUX('F', 9, AF10)>, /* QSPI_BK1_IO1 */ |
| 142 | <STM32_PINMUX('F', 7, AF9)>, /* QSPI_BK1_IO2 */ |
| 143 | <STM32_PINMUX('F', 6, AF9)>; /* QSPI_BK1_IO3 */ |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 144 | bias-disable; |
| 145 | drive-push-pull; |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 146 | slew-rate = <1>; |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 147 | }; |
| 148 | pins2 { |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 149 | pinmux = <STM32_PINMUX('B', 6, AF10)>; /* QSPI_BK1_NCS */ |
| 150 | bias-pull-up; |
| 151 | drive-push-pull; |
| 152 | slew-rate = <1>; |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 153 | }; |
| 154 | }; |
| 155 | |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 156 | qspi_bk2_pins_a: qspi-bk2-0 { |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 157 | pins1 { |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 158 | pinmux = <STM32_PINMUX('H', 2, AF9)>, /* QSPI_BK2_IO0 */ |
| 159 | <STM32_PINMUX('H', 3, AF9)>, /* QSPI_BK2_IO1 */ |
| 160 | <STM32_PINMUX('G', 10, AF11)>, /* QSPI_BK2_IO2 */ |
| 161 | <STM32_PINMUX('G', 7, AF11)>; /* QSPI_BK2_IO3 */ |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 162 | bias-disable; |
| 163 | drive-push-pull; |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 164 | slew-rate = <1>; |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 165 | }; |
| 166 | pins2 { |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 167 | pinmux = <STM32_PINMUX('C', 0, AF10)>; /* QSPI_BK2_NCS */ |
| 168 | bias-pull-up; |
| 169 | drive-push-pull; |
| 170 | slew-rate = <1>; |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 171 | }; |
| 172 | }; |
| 173 | |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 174 | qspi_clk_pins_a: qspi-clk-0 { |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 175 | pins { |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 176 | pinmux = <STM32_PINMUX('F', 10, AF9)>; /* QSPI_CLK */ |
| 177 | bias-disable; |
| 178 | drive-push-pull; |
| 179 | slew-rate = <3>; |
| 180 | }; |
| 181 | }; |
| 182 | |
| 183 | sdmmc1_b4_pins_a: sdmmc1-b4-0 { |
| 184 | pins1 { |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 185 | pinmux = <STM32_PINMUX('C', 8, AF12)>, /* SDMMC1_D0 */ |
| 186 | <STM32_PINMUX('C', 9, AF12)>, /* SDMMC1_D1 */ |
| 187 | <STM32_PINMUX('C', 10, AF12)>, /* SDMMC1_D2 */ |
| 188 | <STM32_PINMUX('C', 11, AF12)>, /* SDMMC1_D3 */ |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 189 | <STM32_PINMUX('D', 2, AF12)>; /* SDMMC1_CMD */ |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 190 | slew-rate = <1>; |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 191 | drive-push-pull; |
| 192 | bias-disable; |
| 193 | }; |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 194 | pins2 { |
| 195 | pinmux = <STM32_PINMUX('C', 12, AF12)>; /* SDMMC1_CK */ |
| 196 | slew-rate = <2>; |
| 197 | drive-push-pull; |
| 198 | bias-disable; |
| 199 | }; |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 200 | }; |
| 201 | |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 202 | sdmmc1_dir_pins_a: sdmmc1-dir-0 { |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 203 | pins1 { |
| 204 | pinmux = <STM32_PINMUX('F', 2, AF11)>, /* SDMMC1_D0DIR */ |
| 205 | <STM32_PINMUX('C', 7, AF8)>, /* SDMMC1_D123DIR */ |
| 206 | <STM32_PINMUX('B', 9, AF11)>; /* SDMMC1_CDIR */ |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 207 | slew-rate = <1>; |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 208 | drive-push-pull; |
| 209 | bias-pull-up; |
| 210 | }; |
| 211 | pins2{ |
| 212 | pinmux = <STM32_PINMUX('E', 4, AF8)>; /* SDMMC1_CKIN */ |
| 213 | bias-pull-up; |
| 214 | }; |
| 215 | }; |
| 216 | |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 217 | sdmmc1_dir_pins_b: sdmmc1-dir-1 { |
| 218 | pins1 { |
| 219 | pinmux = <STM32_PINMUX('E', 12, AF8)>, /* SDMMC1_D0DIR */ |
| 220 | <STM32_PINMUX('E', 14, AF11)>, /* SDMMC1_D123DIR */ |
| 221 | <STM32_PINMUX('B', 9, AF11)>; /* SDMMC1_CDIR */ |
| 222 | slew-rate = <3>; |
| 223 | drive-push-pull; |
| 224 | bias-pull-up; |
| 225 | }; |
| 226 | pins2 { |
| 227 | pinmux = <STM32_PINMUX('E', 4, AF8)>; /* SDMMC1_CKIN */ |
| 228 | bias-pull-up; |
| 229 | }; |
| 230 | }; |
| 231 | |
| 232 | sdmmc2_b4_pins_a: sdmmc2-b4-0 { |
| 233 | pins1 { |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 234 | pinmux = <STM32_PINMUX('B', 14, AF9)>, /* SDMMC2_D0 */ |
| 235 | <STM32_PINMUX('B', 15, AF9)>, /* SDMMC2_D1 */ |
| 236 | <STM32_PINMUX('B', 3, AF9)>, /* SDMMC2_D2 */ |
| 237 | <STM32_PINMUX('B', 4, AF9)>, /* SDMMC2_D3 */ |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 238 | <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */ |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 239 | slew-rate = <1>; |
| 240 | drive-push-pull; |
| 241 | bias-pull-up; |
| 242 | }; |
| 243 | pins2 { |
| 244 | pinmux = <STM32_PINMUX('E', 3, AF9)>; /* SDMMC2_CK */ |
| 245 | slew-rate = <2>; |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 246 | drive-push-pull; |
| 247 | bias-pull-up; |
| 248 | }; |
| 249 | }; |
| 250 | |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 251 | sdmmc2_d47_pins_a: sdmmc2-d47-0 { |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 252 | pins { |
| 253 | pinmux = <STM32_PINMUX('A', 8, AF9)>, /* SDMMC2_D4 */ |
| 254 | <STM32_PINMUX('A', 9, AF10)>, /* SDMMC2_D5 */ |
| 255 | <STM32_PINMUX('E', 5, AF9)>, /* SDMMC2_D6 */ |
| 256 | <STM32_PINMUX('D', 3, AF9)>; /* SDMMC2_D7 */ |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 257 | slew-rate = <1>; |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 258 | drive-push-pull; |
| 259 | bias-pull-up; |
| 260 | }; |
| 261 | }; |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 262 | |
| 263 | uart4_pins_a: uart4-0 { |
| 264 | pins1 { |
| 265 | pinmux = <STM32_PINMUX('G', 11, AF6)>; /* UART4_TX */ |
| 266 | bias-disable; |
| 267 | drive-push-pull; |
| 268 | slew-rate = <0>; |
| 269 | }; |
| 270 | pins2 { |
| 271 | pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */ |
| 272 | bias-disable; |
| 273 | }; |
| 274 | }; |
| 275 | |
Manivannan Sadhasivam | 02a66d6 | 2019-04-26 18:43:50 +0530 | [diff] [blame] | 276 | uart4_pins_b: uart4-1 { |
| 277 | pins1 { |
| 278 | pinmux = <STM32_PINMUX('D', 1, AF8)>; /* UART4_TX */ |
| 279 | bias-disable; |
| 280 | drive-push-pull; |
| 281 | slew-rate = <0>; |
| 282 | }; |
| 283 | pins2 { |
| 284 | pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */ |
| 285 | bias-disable; |
| 286 | }; |
| 287 | }; |
| 288 | |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 289 | usart3_pins_a: usart3-0 { |
| 290 | pins1 { |
| 291 | pinmux = <STM32_PINMUX('B', 10, AF7)>, /* USART3_TX */ |
| 292 | <STM32_PINMUX('G', 8, AF8)>; /* USART3_RTS */ |
| 293 | bias-disable; |
| 294 | drive-push-pull; |
| 295 | slew-rate = <0>; |
| 296 | }; |
| 297 | pins2 { |
| 298 | pinmux = <STM32_PINMUX('B', 12, AF8)>, /* USART3_RX */ |
| 299 | <STM32_PINMUX('I', 10, AF8)>; /* USART3_CTS_NSS */ |
| 300 | bias-disable; |
| 301 | }; |
| 302 | }; |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 303 | }; |
| 304 | |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 305 | pinctrl_z: pin-controller-z@54004000 { |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 306 | #address-cells = <1>; |
| 307 | #size-cells = <1>; |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 308 | compatible = "st,stm32mp157-z-pinctrl"; |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 309 | ranges = <0 0x54004000 0x400>; |
| 310 | pins-are-numbered; |
| 311 | |
| 312 | gpioz: gpio@54004000 { |
| 313 | gpio-controller; |
| 314 | #gpio-cells = <2>; |
| 315 | interrupt-controller; |
| 316 | #interrupt-cells = <2>; |
| 317 | reg = <0 0x400>; |
| 318 | clocks = <&rcc GPIOZ>; |
| 319 | st,bank-name = "GPIOZ"; |
| 320 | st,bank-ioport = <11>; |
| 321 | status = "disabled"; |
| 322 | }; |
| 323 | |
Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 324 | i2c4_pins_a: i2c4-0 { |
Yann Gautier | 6638695 | 2018-07-05 16:49:51 +0200 | [diff] [blame] | 325 | pins { |
| 326 | pinmux = <STM32_PINMUX('Z', 4, AF6)>, /* I2C4_SCL */ |
| 327 | <STM32_PINMUX('Z', 5, AF6)>; /* I2C4_SDA */ |
| 328 | bias-disable; |
| 329 | drive-open-drain; |
| 330 | slew-rate = <0>; |
| 331 | }; |
| 332 | }; |
| 333 | }; |
| 334 | }; |
| 335 | }; |