1d983a0f0SPatrice Chotard/* 2d983a0f0SPatrice Chotard * Copyright 2017 - Alexandre Torgue <alexandre.torgue@st.com> 3d983a0f0SPatrice Chotard * 4d983a0f0SPatrice Chotard * This file is dual-licensed: you can use it either under the terms 5d983a0f0SPatrice Chotard * of the GPL or the X11 license, at your option. Note that this dual 6d983a0f0SPatrice Chotard * licensing only applies to this file, and not this project as a 7d983a0f0SPatrice Chotard * whole. 8d983a0f0SPatrice Chotard * 9d983a0f0SPatrice Chotard * a) This file is free software; you can redistribute it and/or 10d983a0f0SPatrice Chotard * modify it under the terms of the GNU General Public License as 11d983a0f0SPatrice Chotard * published by the Free Software Foundation; either version 2 of the 12d983a0f0SPatrice Chotard * License, or (at your option) any later version. 13d983a0f0SPatrice Chotard * 14d983a0f0SPatrice Chotard * This file is distributed in the hope that it will be useful, 15d983a0f0SPatrice Chotard * but WITHOUT ANY WARRANTY; without even the implied warranty of 16d983a0f0SPatrice Chotard * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17d983a0f0SPatrice Chotard * GNU General Public License for more details. 18d983a0f0SPatrice Chotard * 19d983a0f0SPatrice Chotard * Or, alternatively, 20d983a0f0SPatrice Chotard * 21d983a0f0SPatrice Chotard * b) Permission is hereby granted, free of charge, to any person 22d983a0f0SPatrice Chotard * obtaining a copy of this software and associated documentation 23d983a0f0SPatrice Chotard * files (the "Software"), to deal in the Software without 24d983a0f0SPatrice Chotard * restriction, including without limitation the rights to use, 25d983a0f0SPatrice Chotard * copy, modify, merge, publish, distribute, sublicense, and/or 26d983a0f0SPatrice Chotard * sell copies of the Software, and to permit persons to whom the 27d983a0f0SPatrice Chotard * Software is furnished to do so, subject to the following 28d983a0f0SPatrice Chotard * conditions: 29d983a0f0SPatrice Chotard * 30d983a0f0SPatrice Chotard * The above copyright notice and this permission notice shall be 31d983a0f0SPatrice Chotard * included in all copies or substantial portions of the Software. 32d983a0f0SPatrice Chotard * 33d983a0f0SPatrice Chotard * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34d983a0f0SPatrice Chotard * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 35d983a0f0SPatrice Chotard * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 36d983a0f0SPatrice Chotard * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 37d983a0f0SPatrice Chotard * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 38d983a0f0SPatrice Chotard * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 39d983a0f0SPatrice Chotard * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 40d983a0f0SPatrice Chotard * OTHER DEALINGS IN THE SOFTWARE. 41d983a0f0SPatrice Chotard */ 42d983a0f0SPatrice Chotard 43d983a0f0SPatrice Chotard#include <dt-bindings/pinctrl/stm32h7-pinfunc.h> 44d983a0f0SPatrice Chotard 45d983a0f0SPatrice Chotard/ { 46d983a0f0SPatrice Chotard soc { 47d983a0f0SPatrice Chotard pin-controller { 48d983a0f0SPatrice Chotard #address-cells = <1>; 49d983a0f0SPatrice Chotard #size-cells = <1>; 50d983a0f0SPatrice Chotard compatible = "st,stm32h743-pinctrl"; 51d983a0f0SPatrice Chotard ranges = <0 0x58020000 0x3000>; 52d983a0f0SPatrice Chotard pins-are-numbered; 53d983a0f0SPatrice Chotard 54d983a0f0SPatrice Chotard gpioa: gpio@58020000 { 55d983a0f0SPatrice Chotard gpio-controller; 56d983a0f0SPatrice Chotard #gpio-cells = <2>; 57a1e384b4SPatrice Chotard compatible = "st,stm32-gpio"; 58d983a0f0SPatrice Chotard reg = <0x0 0x400>; 59a1e384b4SPatrice Chotard clocks = <&rcc GPIOA_CK>; 60d983a0f0SPatrice Chotard st,bank-name = "GPIOA"; 61d983a0f0SPatrice Chotard }; 62d983a0f0SPatrice Chotard 63d983a0f0SPatrice Chotard gpiob: gpio@58020400 { 64d983a0f0SPatrice Chotard gpio-controller; 65d983a0f0SPatrice Chotard #gpio-cells = <2>; 66a1e384b4SPatrice Chotard compatible = "st,stm32-gpio"; 67d983a0f0SPatrice Chotard reg = <0x400 0x400>; 68a1e384b4SPatrice Chotard clocks = <&rcc GPIOB_CK>; 69d983a0f0SPatrice Chotard st,bank-name = "GPIOB"; 70d983a0f0SPatrice Chotard }; 71d983a0f0SPatrice Chotard 72d983a0f0SPatrice Chotard gpioc: gpio@58020800 { 73d983a0f0SPatrice Chotard gpio-controller; 74d983a0f0SPatrice Chotard #gpio-cells = <2>; 75a1e384b4SPatrice Chotard compatible = "st,stm32-gpio"; 76d983a0f0SPatrice Chotard reg = <0x800 0x400>; 77a1e384b4SPatrice Chotard clocks = <&rcc GPIOC_CK>; 78d983a0f0SPatrice Chotard st,bank-name = "GPIOC"; 79d983a0f0SPatrice Chotard }; 80d983a0f0SPatrice Chotard 81d983a0f0SPatrice Chotard gpiod: gpio@58020c00 { 82d983a0f0SPatrice Chotard gpio-controller; 83d983a0f0SPatrice Chotard #gpio-cells = <2>; 84a1e384b4SPatrice Chotard compatible = "st,stm32-gpio"; 85d983a0f0SPatrice Chotard reg = <0xc00 0x400>; 86a1e384b4SPatrice Chotard clocks = <&rcc GPIOD_CK>; 87d983a0f0SPatrice Chotard st,bank-name = "GPIOD"; 88d983a0f0SPatrice Chotard }; 89d983a0f0SPatrice Chotard 90d983a0f0SPatrice Chotard gpioe: gpio@58021000 { 91d983a0f0SPatrice Chotard gpio-controller; 92d983a0f0SPatrice Chotard #gpio-cells = <2>; 93a1e384b4SPatrice Chotard compatible = "st,stm32-gpio"; 94d983a0f0SPatrice Chotard reg = <0x1000 0x400>; 95a1e384b4SPatrice Chotard clocks = <&rcc GPIOE_CK>; 96d983a0f0SPatrice Chotard st,bank-name = "GPIOE"; 97d983a0f0SPatrice Chotard }; 98d983a0f0SPatrice Chotard 99d983a0f0SPatrice Chotard gpiof: gpio@58021400 { 100d983a0f0SPatrice Chotard gpio-controller; 101d983a0f0SPatrice Chotard #gpio-cells = <2>; 102a1e384b4SPatrice Chotard compatible = "st,stm32-gpio"; 103d983a0f0SPatrice Chotard reg = <0x1400 0x400>; 104a1e384b4SPatrice Chotard clocks = <&rcc GPIOF_CK>; 105d983a0f0SPatrice Chotard st,bank-name = "GPIOF"; 106d983a0f0SPatrice Chotard }; 107d983a0f0SPatrice Chotard 108d983a0f0SPatrice Chotard gpiog: gpio@58021800 { 109d983a0f0SPatrice Chotard gpio-controller; 110d983a0f0SPatrice Chotard #gpio-cells = <2>; 111a1e384b4SPatrice Chotard compatible = "st,stm32-gpio"; 112d983a0f0SPatrice Chotard reg = <0x1800 0x400>; 113a1e384b4SPatrice Chotard clocks = <&rcc GPIOG_CK>; 114d983a0f0SPatrice Chotard st,bank-name = "GPIOG"; 115d983a0f0SPatrice Chotard }; 116d983a0f0SPatrice Chotard 117d983a0f0SPatrice Chotard gpioh: gpio@58021c00 { 118d983a0f0SPatrice Chotard gpio-controller; 119d983a0f0SPatrice Chotard #gpio-cells = <2>; 120a1e384b4SPatrice Chotard compatible = "st,stm32-gpio"; 121d983a0f0SPatrice Chotard reg = <0x1c00 0x400>; 122a1e384b4SPatrice Chotard clocks = <&rcc GPIOH_CK>; 123d983a0f0SPatrice Chotard st,bank-name = "GPIOH"; 124d983a0f0SPatrice Chotard }; 125d983a0f0SPatrice Chotard 126d983a0f0SPatrice Chotard gpioi: gpio@58022000 { 127d983a0f0SPatrice Chotard gpio-controller; 128d983a0f0SPatrice Chotard #gpio-cells = <2>; 129a1e384b4SPatrice Chotard compatible = "st,stm32-gpio"; 130d983a0f0SPatrice Chotard reg = <0x2000 0x400>; 131a1e384b4SPatrice Chotard clocks = <&rcc GPIOI_CK>; 132d983a0f0SPatrice Chotard st,bank-name = "GPIOI"; 133d983a0f0SPatrice Chotard }; 134d983a0f0SPatrice Chotard 135d983a0f0SPatrice Chotard gpioj: gpio@58022400 { 136d983a0f0SPatrice Chotard gpio-controller; 137d983a0f0SPatrice Chotard #gpio-cells = <2>; 138a1e384b4SPatrice Chotard compatible = "st,stm32-gpio"; 139d983a0f0SPatrice Chotard reg = <0x2400 0x400>; 140a1e384b4SPatrice Chotard clocks = <&rcc GPIOJ_CK>; 141d983a0f0SPatrice Chotard st,bank-name = "GPIOJ"; 142d983a0f0SPatrice Chotard }; 143d983a0f0SPatrice Chotard 144d983a0f0SPatrice Chotard gpiok: gpio@58022800 { 145d983a0f0SPatrice Chotard gpio-controller; 146d983a0f0SPatrice Chotard #gpio-cells = <2>; 147a1e384b4SPatrice Chotard compatible = "st,stm32-gpio"; 148d983a0f0SPatrice Chotard reg = <0x2800 0x400>; 149a1e384b4SPatrice Chotard clocks = <&rcc GPIOK_CK>; 150d983a0f0SPatrice Chotard st,bank-name = "GPIOK"; 151d983a0f0SPatrice Chotard }; 152d983a0f0SPatrice Chotard 153d983a0f0SPatrice Chotard usart1_pins: usart1@0 { 154d983a0f0SPatrice Chotard pins1 { 155d983a0f0SPatrice Chotard pinmux = <STM32H7_PB14_FUNC_USART1_TX>; 156d983a0f0SPatrice Chotard bias-disable; 157d983a0f0SPatrice Chotard drive-push-pull; 158d983a0f0SPatrice Chotard slew-rate = <0>; 159d983a0f0SPatrice Chotard }; 160d983a0f0SPatrice Chotard pins2 { 161d983a0f0SPatrice Chotard pinmux = <STM32H7_PB15_FUNC_USART1_RX>; 162d983a0f0SPatrice Chotard bias-disable; 163d983a0f0SPatrice Chotard }; 164d983a0f0SPatrice Chotard }; 165d983a0f0SPatrice Chotard 166d983a0f0SPatrice Chotard usart2_pins: usart2@0 { 167d983a0f0SPatrice Chotard pins1 { 168d983a0f0SPatrice Chotard pinmux = <STM32H7_PD5_FUNC_USART2_TX>; 169d983a0f0SPatrice Chotard bias-disable; 170d983a0f0SPatrice Chotard drive-push-pull; 171d983a0f0SPatrice Chotard slew-rate = <0>; 172d983a0f0SPatrice Chotard }; 173d983a0f0SPatrice Chotard pins2 { 174d983a0f0SPatrice Chotard pinmux = <STM32H7_PD6_FUNC_USART2_RX>; 175d983a0f0SPatrice Chotard bias-disable; 176d983a0f0SPatrice Chotard }; 177d983a0f0SPatrice Chotard }; 178a1e384b4SPatrice Chotard 179a1e384b4SPatrice Chotard fmc_pins: fmc@0 { 180a1e384b4SPatrice Chotard pins { 181a1e384b4SPatrice Chotard pinmux = <STM32H7_PD0_FUNC_FMC_D2_FMC_DA2>, 182a1e384b4SPatrice Chotard <STM32H7_PD1_FUNC_FMC_D3_FMC_DA3>, 183a1e384b4SPatrice Chotard <STM32H7_PD8_FUNC_FMC_D13_FMC_DA13>, 184a1e384b4SPatrice Chotard <STM32H7_PD9_FUNC_FMC_D14_FMC_DA14>, 185a1e384b4SPatrice Chotard <STM32H7_PD10_FUNC_FMC_D15_FMC_DA15>, 186a1e384b4SPatrice Chotard <STM32H7_PD14_FUNC_FMC_D0_FMC_DA0>, 187a1e384b4SPatrice Chotard <STM32H7_PD15_FUNC_FMC_D1_FMC_DA1>, 188a1e384b4SPatrice Chotard 189a1e384b4SPatrice Chotard <STM32H7_PE0_FUNC_FMC_NBL0>, 190a1e384b4SPatrice Chotard <STM32H7_PE1_FUNC_FMC_NBL1>, 191a1e384b4SPatrice Chotard <STM32H7_PE7_FUNC_FMC_D4_FMC_DA4>, 192a1e384b4SPatrice Chotard <STM32H7_PE8_FUNC_FMC_D5_FMC_DA5>, 193a1e384b4SPatrice Chotard <STM32H7_PE9_FUNC_FMC_D6_FMC_DA6>, 194a1e384b4SPatrice Chotard <STM32H7_PE10_FUNC_FMC_D7_FMC_DA7>, 195a1e384b4SPatrice Chotard <STM32H7_PE11_FUNC_FMC_D8_FMC_DA8>, 196a1e384b4SPatrice Chotard <STM32H7_PE12_FUNC_FMC_D9_FMC_DA9>, 197a1e384b4SPatrice Chotard <STM32H7_PE13_FUNC_FMC_D10_FMC_DA10>, 198a1e384b4SPatrice Chotard <STM32H7_PE14_FUNC_FMC_D11_FMC_DA11>, 199a1e384b4SPatrice Chotard <STM32H7_PE15_FUNC_FMC_D12_FMC_DA12>, 200a1e384b4SPatrice Chotard 201a1e384b4SPatrice Chotard <STM32H7_PF0_FUNC_FMC_A0>, 202a1e384b4SPatrice Chotard <STM32H7_PF1_FUNC_FMC_A1>, 203a1e384b4SPatrice Chotard <STM32H7_PF2_FUNC_FMC_A2>, 204a1e384b4SPatrice Chotard <STM32H7_PF3_FUNC_FMC_A3>, 205a1e384b4SPatrice Chotard <STM32H7_PF4_FUNC_FMC_A4>, 206a1e384b4SPatrice Chotard <STM32H7_PF5_FUNC_FMC_A5>, 207a1e384b4SPatrice Chotard <STM32H7_PF11_FUNC_FMC_SDNRAS>, 208a1e384b4SPatrice Chotard <STM32H7_PF12_FUNC_FMC_A6>, 209a1e384b4SPatrice Chotard <STM32H7_PF13_FUNC_FMC_A7>, 210a1e384b4SPatrice Chotard <STM32H7_PF14_FUNC_FMC_A8>, 211a1e384b4SPatrice Chotard <STM32H7_PF15_FUNC_FMC_A9>, 212a1e384b4SPatrice Chotard 213a1e384b4SPatrice Chotard <STM32H7_PG0_FUNC_FMC_A10>, 214a1e384b4SPatrice Chotard <STM32H7_PG1_FUNC_FMC_A11>, 215a1e384b4SPatrice Chotard <STM32H7_PG2_FUNC_FMC_A12>, 216a1e384b4SPatrice Chotard <STM32H7_PG4_FUNC_FMC_A14_FMC_BA0>, 217a1e384b4SPatrice Chotard <STM32H7_PG5_FUNC_FMC_A15_FMC_BA1>, 218a1e384b4SPatrice Chotard <STM32H7_PG8_FUNC_FMC_SDCLK>, 219a1e384b4SPatrice Chotard <STM32H7_PG15_FUNC_FMC_SDNCAS>, 220a1e384b4SPatrice Chotard 221a1e384b4SPatrice Chotard <STM32H7_PH5_FUNC_FMC_SDNWE>, 222a1e384b4SPatrice Chotard <STM32H7_PH6_FUNC_FMC_SDNE1>, 223a1e384b4SPatrice Chotard <STM32H7_PH7_FUNC_FMC_SDCKE1>, 224a1e384b4SPatrice Chotard <STM32H7_PH8_FUNC_FMC_D16>, 225a1e384b4SPatrice Chotard <STM32H7_PH9_FUNC_FMC_D17>, 226a1e384b4SPatrice Chotard <STM32H7_PH10_FUNC_FMC_D18>, 227a1e384b4SPatrice Chotard <STM32H7_PH11_FUNC_FMC_D19>, 228a1e384b4SPatrice Chotard <STM32H7_PH12_FUNC_FMC_D20>, 229a1e384b4SPatrice Chotard <STM32H7_PH13_FUNC_FMC_D21>, 230a1e384b4SPatrice Chotard <STM32H7_PH14_FUNC_FMC_D22>, 231a1e384b4SPatrice Chotard <STM32H7_PH15_FUNC_FMC_D23>, 232a1e384b4SPatrice Chotard 233a1e384b4SPatrice Chotard <STM32H7_PI0_FUNC_FMC_D24>, 234a1e384b4SPatrice Chotard <STM32H7_PI1_FUNC_FMC_D25>, 235a1e384b4SPatrice Chotard <STM32H7_PI2_FUNC_FMC_D26>, 236a1e384b4SPatrice Chotard <STM32H7_PI3_FUNC_FMC_D27>, 237a1e384b4SPatrice Chotard <STM32H7_PI4_FUNC_FMC_NBL2>, 238a1e384b4SPatrice Chotard <STM32H7_PI5_FUNC_FMC_NBL3>, 239a1e384b4SPatrice Chotard <STM32H7_PI6_FUNC_FMC_D28>, 240a1e384b4SPatrice Chotard <STM32H7_PI7_FUNC_FMC_D29>, 241a1e384b4SPatrice Chotard <STM32H7_PI9_FUNC_FMC_D30>, 242a1e384b4SPatrice Chotard <STM32H7_PI10_FUNC_FMC_D31>; 243a1e384b4SPatrice Chotard 244a1e384b4SPatrice Chotard slew-rate = <3>; 245a1e384b4SPatrice Chotard }; 246a1e384b4SPatrice Chotard }; 247eccac3e1SPatrice Chotard 248eccac3e1SPatrice Chotard sdmmc1_pins: sdmmc@0 { 249eccac3e1SPatrice Chotard pins { 250eccac3e1SPatrice Chotard pinmux = <STM32H7_PC8_FUNC_SDMMC1_D0>, 251eccac3e1SPatrice Chotard <STM32H7_PC9_FUNC_SDMMC1_D1>, 252eccac3e1SPatrice Chotard <STM32H7_PC10_FUNC_SDMMC1_D2>, 253eccac3e1SPatrice Chotard <STM32H7_PC11_FUNC_SDMMC1_D3>, 254eccac3e1SPatrice Chotard <STM32H7_PC12_FUNC_SDMMC1_CK>, 255eccac3e1SPatrice Chotard <STM32H7_PD2_FUNC_SDMMC1_CMD>; 256eccac3e1SPatrice Chotard 257eccac3e1SPatrice Chotard slew-rate = <3>; 258eccac3e1SPatrice Chotard drive-push-pull; 259eccac3e1SPatrice Chotard bias-disable; 260eccac3e1SPatrice Chotard }; 261eccac3e1SPatrice Chotard }; 262*d8f69e56SPatrice Chotard 263*d8f69e56SPatrice Chotard pinctrl_sdmmc1_level_shifter: sdmmc0_ls@0 { 264*d8f69e56SPatrice Chotard pins { 265*d8f69e56SPatrice Chotard pinmux = <STM32H7_PB8_FUNC_SDMMC1_CKIN>, 266*d8f69e56SPatrice Chotard <STM32H7_PB9_FUNC_SDMMC1_CDIR>, 267*d8f69e56SPatrice Chotard <STM32H7_PC6_FUNC_SDMMC1_D0DIR>, 268*d8f69e56SPatrice Chotard <STM32H7_PC7_FUNC_SDMMC1_D123DIR>; 269*d8f69e56SPatrice Chotard drive-push-pull; 270*d8f69e56SPatrice Chotard slew-rate = <3>; 271*d8f69e56SPatrice Chotard }; 272*d8f69e56SPatrice Chotard }; 273d983a0f0SPatrice Chotard }; 274d983a0f0SPatrice Chotard }; 275d983a0f0SPatrice Chotard}; 276