1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved
4 * Author: Alexandre Torgue <alexandre.torgue@st.com> for STMicroelectronics.
7 #include <dt-bindings/pinctrl/stm32-pinfunc.h>
8 #include <dt-bindings/mfd/stm32f7-rcc.h>
12 pinctrl: pin-controller {
15 ranges = <0 0x40020000 0x3000>;
16 interrupt-parent = <&exti>;
17 st,syscfg = <&syscfg 0x8>;
20 gpioa: gpio@40020000 {
24 #interrupt-cells = <2>;
26 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOA)>;
27 st,bank-name = "GPIOA";
30 gpiob: gpio@40020400 {
34 #interrupt-cells = <2>;
36 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOB)>;
37 st,bank-name = "GPIOB";
40 gpioc: gpio@40020800 {
44 #interrupt-cells = <2>;
46 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOC)>;
47 st,bank-name = "GPIOC";
50 gpiod: gpio@40020c00 {
54 #interrupt-cells = <2>;
56 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOD)>;
57 st,bank-name = "GPIOD";
60 gpioe: gpio@40021000 {
64 #interrupt-cells = <2>;
66 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOE)>;
67 st,bank-name = "GPIOE";
70 gpiof: gpio@40021400 {
74 #interrupt-cells = <2>;
76 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOF)>;
77 st,bank-name = "GPIOF";
80 gpiog: gpio@40021800 {
84 #interrupt-cells = <2>;
86 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOG)>;
87 st,bank-name = "GPIOG";
90 gpioh: gpio@40021c00 {
94 #interrupt-cells = <2>;
96 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOH)>;
97 st,bank-name = "GPIOH";
100 gpioi: gpio@40022000 {
103 interrupt-controller;
104 #interrupt-cells = <2>;
105 reg = <0x2000 0x400>;
106 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOI)>;
107 st,bank-name = "GPIOI";
110 gpioj: gpio@40022400 {
113 interrupt-controller;
114 #interrupt-cells = <2>;
115 reg = <0x2400 0x400>;
116 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOJ)>;
117 st,bank-name = "GPIOJ";
120 gpiok: gpio@40022800 {
123 interrupt-controller;
124 #interrupt-cells = <2>;
125 reg = <0x2800 0x400>;
126 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOK)>;
127 st,bank-name = "GPIOK";
132 pinmux = <STM32_PINMUX('A', 15, AF4)>; /* HDMI CEC */
139 usart1_pins_a: usart1-0 {
141 pinmux = <STM32_PINMUX('A', 9, AF7)>; /* USART1_TX */
147 pinmux = <STM32_PINMUX('A', 10, AF7)>; /* USART1_RX */
152 usart1_pins_b: usart1-1 {
154 pinmux = <STM32_PINMUX('A', 9, AF7)>; /* USART1_TX */
160 pinmux = <STM32_PINMUX('B', 7, AF7)>; /* USART1_RX */
165 i2c1_pins_b: i2c1-0 {
167 pinmux = <STM32_PINMUX('B', 9, AF4)>, /* I2C1 SDA */
168 <STM32_PINMUX('B', 8, AF4)>; /* I2C1 SCL */
175 usbotg_hs_pins_a: usbotg-hs-0 {
177 pinmux = <STM32_PINMUX('H', 4, AF10)>, /* OTG_HS_ULPI_NXT */
178 <STM32_PINMUX('I', 11, AF10)>, /* OTG_HS_ULPI_DIR */
179 <STM32_PINMUX('C', 0, AF10)>, /* OTG_HS_ULPI_STP */
180 <STM32_PINMUX('A', 5, AF10)>, /* OTG_HS_ULPI_CK */
181 <STM32_PINMUX('A', 3, AF10)>, /* OTG_HS_ULPI_D0 */
182 <STM32_PINMUX('B', 0, AF10)>, /* OTG_HS_ULPI_D1 */
183 <STM32_PINMUX('B', 1, AF10)>, /* OTG_HS_ULPI_D2 */
184 <STM32_PINMUX('B', 10, AF10)>, /* OTG_HS_ULPI_D3 */
185 <STM32_PINMUX('B', 11, AF10)>, /* OTG_HS_ULPI_D4 */
186 <STM32_PINMUX('B', 12, AF10)>, /* OTG_HS_ULPI_D5 */
187 <STM32_PINMUX('B', 13, AF10)>, /* OTG_HS_ULPI_D6 */
188 <STM32_PINMUX('B', 5, AF10)>; /* OTG_HS_ULPI_D7 */
195 usbotg_hs_pins_b: usbotg-hs-1 {
197 pinmux = <STM32_PINMUX('H', 4, AF10)>, /* OTG_HS_ULPI_NXT */
198 <STM32_PINMUX('C', 2, AF10)>, /* OTG_HS_ULPI_DIR */
199 <STM32_PINMUX('C', 0, AF10)>, /* OTG_HS_ULPI_STP */
200 <STM32_PINMUX('A', 5, AF10)>, /* OTG_HS_ULPI_CK */
201 <STM32_PINMUX('A', 3, AF10)>, /* OTG_HS_ULPI_D0 */
202 <STM32_PINMUX('B', 0, AF10)>, /* OTG_HS_ULPI_D1 */
203 <STM32_PINMUX('B', 1, AF10)>, /* OTG_HS_ULPI_D2 */
204 <STM32_PINMUX('B', 10, AF10)>, /* OTG_HS_ULPI_D3 */
205 <STM32_PINMUX('B', 11, AF10)>, /* OTG_HS_ULPI_D4 */
206 <STM32_PINMUX('B', 12, AF10)>, /* OTG_HS_ULPI_D5 */
207 <STM32_PINMUX('B', 13, AF10)>, /* OTG_HS_ULPI_D6 */
208 <STM32_PINMUX('B', 5, AF10)>; /* OTG_HS_ULPI_D7 */
215 usbotg_fs_pins_a: usbotg-fs-0 {
217 pinmux = <STM32_PINMUX('A', 10, AF10)>, /* OTG_FS_ID */
218 <STM32_PINMUX('A', 11, AF10)>, /* OTG_FS_DM */
219 <STM32_PINMUX('A', 12, AF10)>; /* OTG_FS_DP */
226 sdio_pins_a: sdio-pins-a-0 {
228 pinmux = <STM32_PINMUX('C', 8, AF12)>, /* SDMMC1 D0 */
229 <STM32_PINMUX('C', 9, AF12)>, /* SDMMC1 D1 */
230 <STM32_PINMUX('C', 10, AF12)>, /* SDMMC1 D2 */
231 <STM32_PINMUX('C', 11, AF12)>, /* SDMMC1 D3 */
232 <STM32_PINMUX('C', 12, AF12)>, /* SDMMC1 CLK */
233 <STM32_PINMUX('D', 2, AF12)>; /* SDMMC1 CMD */
239 sdio_pins_od_a: sdio-pins-od-a-0 {
241 pinmux = <STM32_PINMUX('C', 8, AF12)>, /* SDMMC1 D0 */
242 <STM32_PINMUX('C', 9, AF12)>, /* SDMMC1 D1 */
243 <STM32_PINMUX('C', 10, AF12)>, /* SDMMC1 D2 */
244 <STM32_PINMUX('C', 11, AF12)>, /* SDMMC1 D3 */
245 <STM32_PINMUX('C', 12, AF12)>; /* SDMMC1 CLK */
251 pinmux = <STM32_PINMUX('D', 2, AF12)>; /* SDMMC1 CMD */
257 sdio_pins_b: sdio-pins-b-0 {
259 pinmux = <STM32_PINMUX('G', 9, AF11)>, /* SDMMC2 D0 */
260 <STM32_PINMUX('G', 10, AF11)>, /* SDMMC2 D1 */
261 <STM32_PINMUX('B', 3, AF10)>, /* SDMMC2 D2 */
262 <STM32_PINMUX('B', 4, AF10)>, /* SDMMC2 D3 */
263 <STM32_PINMUX('D', 6, AF11)>, /* SDMMC2 CLK */
264 <STM32_PINMUX('D', 7, AF11)>; /* SDMMC2 CMD */
270 sdio_pins_od_b: sdio-pins-od-b-0 {
272 pinmux = <STM32_PINMUX('G', 9, AF11)>, /* SDMMC2 D0 */
273 <STM32_PINMUX('G', 10, AF11)>, /* SDMMC2 D1 */
274 <STM32_PINMUX('B', 3, AF10)>, /* SDMMC2 D2 */
275 <STM32_PINMUX('B', 4, AF10)>, /* SDMMC2 D3 */
276 <STM32_PINMUX('D', 6, AF11)>; /* SDMMC2 CLK */
282 pinmux = <STM32_PINMUX('D', 7, AF11)>; /* SDMMC2 CMD */