2 * Copyright 2017 - Alexandre Torgue <alexandre.torgue@st.com>
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
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.
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.
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
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
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.
43 #include <dt-bindings/pinctrl/stm32-pinfunc.h>
50 compatible = "st,stm32h743-pinctrl";
51 ranges = <0 0x58020000 0x3000>;
52 interrupt-parent = <&exti>;
53 st,syscfg = <&syscfg 0x8>;
56 gpioa: gpio@58020000 {
60 clocks = <&rcc GPIOA_CK>;
61 st,bank-name = "GPIOA";
63 #interrupt-cells = <2>;
66 gpiob: gpio@58020400 {
70 clocks = <&rcc GPIOB_CK>;
71 st,bank-name = "GPIOB";
73 #interrupt-cells = <2>;
76 gpioc: gpio@58020800 {
80 clocks = <&rcc GPIOC_CK>;
81 st,bank-name = "GPIOC";
83 #interrupt-cells = <2>;
86 gpiod: gpio@58020c00 {
90 clocks = <&rcc GPIOD_CK>;
91 st,bank-name = "GPIOD";
93 #interrupt-cells = <2>;
96 gpioe: gpio@58021000 {
100 clocks = <&rcc GPIOE_CK>;
101 st,bank-name = "GPIOE";
102 interrupt-controller;
103 #interrupt-cells = <2>;
106 gpiof: gpio@58021400 {
109 reg = <0x1400 0x400>;
110 clocks = <&rcc GPIOF_CK>;
111 st,bank-name = "GPIOF";
112 interrupt-controller;
113 #interrupt-cells = <2>;
116 gpiog: gpio@58021800 {
119 reg = <0x1800 0x400>;
120 clocks = <&rcc GPIOG_CK>;
121 st,bank-name = "GPIOG";
122 interrupt-controller;
123 #interrupt-cells = <2>;
126 gpioh: gpio@58021c00 {
129 reg = <0x1c00 0x400>;
130 clocks = <&rcc GPIOH_CK>;
131 st,bank-name = "GPIOH";
132 interrupt-controller;
133 #interrupt-cells = <2>;
136 gpioi: gpio@58022000 {
139 reg = <0x2000 0x400>;
140 clocks = <&rcc GPIOI_CK>;
141 st,bank-name = "GPIOI";
142 interrupt-controller;
143 #interrupt-cells = <2>;
146 gpioj: gpio@58022400 {
149 reg = <0x2400 0x400>;
150 clocks = <&rcc GPIOJ_CK>;
151 st,bank-name = "GPIOJ";
152 interrupt-controller;
153 #interrupt-cells = <2>;
156 gpiok: gpio@58022800 {
159 reg = <0x2800 0x400>;
160 clocks = <&rcc GPIOK_CK>;
161 st,bank-name = "GPIOK";
162 interrupt-controller;
163 #interrupt-cells = <2>;
166 i2c1_pins_a: i2c1@0 {
168 pinmux = <STM32_PINMUX('B', 6, AF4)>, /* I2C1_SCL */
169 <STM32_PINMUX('B', 7, AF4)>; /* I2C1_SDA */
176 ethernet_rmii: rmii@0 {
178 pinmux = <STM32_PINMUX('G', 11, AF11)>,
179 <STM32_PINMUX('G', 13, AF11)>,
180 <STM32_PINMUX('G', 12, AF11)>,
181 <STM32_PINMUX('C', 4, AF11)>,
182 <STM32_PINMUX('C', 5, AF11)>,
183 <STM32_PINMUX('A', 7, AF11)>,
184 <STM32_PINMUX('C', 1, AF11)>,
185 <STM32_PINMUX('A', 2, AF11)>,
186 <STM32_PINMUX('A', 1, AF11)>;
191 usart1_pins: usart1@0 {
193 pinmux = <STM32_PINMUX('B', 14, AF4)>; /* USART1_TX */
199 pinmux = <STM32_PINMUX('B', 15, AF4)>; /* USART1_RX */
204 usart2_pins: usart2@0 {
206 pinmux = <STM32_PINMUX('D', 5, AF7)>; /* USART2_TX */
212 pinmux = <STM32_PINMUX('D', 6, AF7)>; /* USART2_RX */
217 usbotg_hs_pins_a: usbotg-hs@0 {
219 pinmux = <STM32_PINMUX('H', 4, AF10)>, /* ULPI_NXT */
220 <STM32_PINMUX('I', 11, AF10)>, /* ULPI_DIR> */
221 <STM32_PINMUX('C', 0, AF10)>, /* ULPI_STP> */
222 <STM32_PINMUX('A', 5, AF10)>, /* ULPI_CK> */
223 <STM32_PINMUX('A', 3, AF10)>, /* ULPI_D0> */
224 <STM32_PINMUX('B', 0, AF10)>, /* ULPI_D1> */
225 <STM32_PINMUX('B', 1, AF10)>, /* ULPI_D2> */
226 <STM32_PINMUX('B', 10, AF10)>, /* ULPI_D3> */
227 <STM32_PINMUX('B', 11, AF10)>, /* ULPI_D4> */
228 <STM32_PINMUX('B', 12, AF10)>, /* ULPI_D5> */
229 <STM32_PINMUX('B', 13, AF10)>, /* ULPI_D6> */
230 <STM32_PINMUX('B', 5, AF10)>; /* ULPI_D7> */