Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017 - Alexandre Torgue <alexandre.torgue@st.com> |
| 3 | * |
| 4 | * This file is dual-licensed: you can use it either under the terms |
| 5 | * of the GPL or the X11 license, at your option. Note that this dual |
| 6 | * licensing only applies to this file, and not this project as a |
| 7 | * whole. |
| 8 | * |
| 9 | * a) This file is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU General Public License as |
| 11 | * published by the Free Software Foundation; either version 2 of the |
| 12 | * License, or (at your option) any later version. |
| 13 | * |
| 14 | * This file is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * Or, alternatively, |
| 20 | * |
| 21 | * b) Permission is hereby granted, free of charge, to any person |
| 22 | * obtaining a copy of this software and associated documentation |
| 23 | * files (the "Software"), to deal in the Software without |
| 24 | * restriction, including without limitation the rights to use, |
| 25 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 26 | * sell copies of the Software, and to permit persons to whom the |
| 27 | * Software is furnished to do so, subject to the following |
| 28 | * conditions: |
| 29 | * |
| 30 | * The above copyright notice and this permission notice shall be |
| 31 | * included in all copies or substantial portions of the Software. |
| 32 | * |
| 33 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 34 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 35 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 36 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 37 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 38 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 39 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 40 | * OTHER DEALINGS IN THE SOFTWARE. |
| 41 | */ |
| 42 | |
| 43 | #include <dt-bindings/pinctrl/stm32h7-pinfunc.h> |
| 44 | |
| 45 | / { |
| 46 | soc { |
Patrice Chotard | 92a12ff | 2018-12-06 11:59:42 +0100 | [diff] [blame^] | 47 | pinctrl: pin-controller { |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 48 | #address-cells = <1>; |
| 49 | #size-cells = <1>; |
| 50 | compatible = "st,stm32h743-pinctrl"; |
| 51 | ranges = <0 0x58020000 0x3000>; |
| 52 | pins-are-numbered; |
| 53 | |
| 54 | gpioa: gpio@58020000 { |
| 55 | gpio-controller; |
| 56 | #gpio-cells = <2>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 57 | compatible = "st,stm32-gpio"; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 58 | reg = <0x0 0x400>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 59 | clocks = <&rcc GPIOA_CK>; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 60 | st,bank-name = "GPIOA"; |
| 61 | }; |
| 62 | |
| 63 | gpiob: gpio@58020400 { |
| 64 | gpio-controller; |
| 65 | #gpio-cells = <2>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 66 | compatible = "st,stm32-gpio"; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 67 | reg = <0x400 0x400>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 68 | clocks = <&rcc GPIOB_CK>; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 69 | st,bank-name = "GPIOB"; |
| 70 | }; |
| 71 | |
| 72 | gpioc: gpio@58020800 { |
| 73 | gpio-controller; |
| 74 | #gpio-cells = <2>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 75 | compatible = "st,stm32-gpio"; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 76 | reg = <0x800 0x400>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 77 | clocks = <&rcc GPIOC_CK>; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 78 | st,bank-name = "GPIOC"; |
| 79 | }; |
| 80 | |
| 81 | gpiod: gpio@58020c00 { |
| 82 | gpio-controller; |
| 83 | #gpio-cells = <2>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 84 | compatible = "st,stm32-gpio"; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 85 | reg = <0xc00 0x400>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 86 | clocks = <&rcc GPIOD_CK>; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 87 | st,bank-name = "GPIOD"; |
| 88 | }; |
| 89 | |
| 90 | gpioe: gpio@58021000 { |
| 91 | gpio-controller; |
| 92 | #gpio-cells = <2>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 93 | compatible = "st,stm32-gpio"; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 94 | reg = <0x1000 0x400>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 95 | clocks = <&rcc GPIOE_CK>; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 96 | st,bank-name = "GPIOE"; |
| 97 | }; |
| 98 | |
| 99 | gpiof: gpio@58021400 { |
| 100 | gpio-controller; |
| 101 | #gpio-cells = <2>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 102 | compatible = "st,stm32-gpio"; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 103 | reg = <0x1400 0x400>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 104 | clocks = <&rcc GPIOF_CK>; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 105 | st,bank-name = "GPIOF"; |
| 106 | }; |
| 107 | |
| 108 | gpiog: gpio@58021800 { |
| 109 | gpio-controller; |
| 110 | #gpio-cells = <2>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 111 | compatible = "st,stm32-gpio"; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 112 | reg = <0x1800 0x400>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 113 | clocks = <&rcc GPIOG_CK>; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 114 | st,bank-name = "GPIOG"; |
| 115 | }; |
| 116 | |
| 117 | gpioh: gpio@58021c00 { |
| 118 | gpio-controller; |
| 119 | #gpio-cells = <2>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 120 | compatible = "st,stm32-gpio"; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 121 | reg = <0x1c00 0x400>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 122 | clocks = <&rcc GPIOH_CK>; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 123 | st,bank-name = "GPIOH"; |
| 124 | }; |
| 125 | |
| 126 | gpioi: gpio@58022000 { |
| 127 | gpio-controller; |
| 128 | #gpio-cells = <2>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 129 | compatible = "st,stm32-gpio"; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 130 | reg = <0x2000 0x400>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 131 | clocks = <&rcc GPIOI_CK>; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 132 | st,bank-name = "GPIOI"; |
| 133 | }; |
| 134 | |
| 135 | gpioj: gpio@58022400 { |
| 136 | gpio-controller; |
| 137 | #gpio-cells = <2>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 138 | compatible = "st,stm32-gpio"; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 139 | reg = <0x2400 0x400>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 140 | clocks = <&rcc GPIOJ_CK>; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 141 | st,bank-name = "GPIOJ"; |
| 142 | }; |
| 143 | |
| 144 | gpiok: gpio@58022800 { |
| 145 | gpio-controller; |
| 146 | #gpio-cells = <2>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 147 | compatible = "st,stm32-gpio"; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 148 | reg = <0x2800 0x400>; |
Patrice Chotard | 0dca06e | 2017-09-13 18:00:11 +0200 | [diff] [blame] | 149 | clocks = <&rcc GPIOK_CK>; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 150 | st,bank-name = "GPIOK"; |
| 151 | }; |
| 152 | |
| 153 | usart1_pins: usart1@0 { |
| 154 | pins1 { |
| 155 | pinmux = <STM32H7_PB14_FUNC_USART1_TX>; |
| 156 | bias-disable; |
| 157 | drive-push-pull; |
| 158 | slew-rate = <0>; |
| 159 | }; |
| 160 | pins2 { |
| 161 | pinmux = <STM32H7_PB15_FUNC_USART1_RX>; |
| 162 | bias-disable; |
| 163 | }; |
| 164 | }; |
| 165 | |
| 166 | usart2_pins: usart2@0 { |
| 167 | pins1 { |
| 168 | pinmux = <STM32H7_PD5_FUNC_USART2_TX>; |
| 169 | bias-disable; |
| 170 | drive-push-pull; |
| 171 | slew-rate = <0>; |
| 172 | }; |
| 173 | pins2 { |
| 174 | pinmux = <STM32H7_PD6_FUNC_USART2_RX>; |
| 175 | bias-disable; |
| 176 | }; |
| 177 | }; |
Patrice Chotard | e4c6b78 | 2017-09-13 18:00:09 +0200 | [diff] [blame] | 178 | }; |
| 179 | }; |
| 180 | }; |