mtd: nand: omap: Fix comment in platform data using wrong Kconfig symbol
[linux/fpc-iii.git] / arch / arm / boot / dts / stm32mp157-pinctrl.dtsi
blob9ec4694e93a7f4a8decc4ce8af01d6b0e4b00594
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  */
6 #include <dt-bindings/pinctrl/stm32-pinfunc.h>
8 / {
9         soc {
10                 pinctrl: pin-controller@50002000 {
11                         #address-cells = <1>;
12                         #size-cells = <1>;
13                         compatible = "st,stm32mp157-pinctrl";
14                         ranges = <0 0x50002000 0xa400>;
15                         interrupt-parent = <&exti>;
16                         st,syscfg = <&exti 0x60 0xff>;
17                         pins-are-numbered;
19                         gpioa: gpio@50002000 {
20                                 gpio-controller;
21                                 #gpio-cells = <2>;
22                                 interrupt-controller;
23                                 #interrupt-cells = <2>;
24                                 reg = <0x0 0x400>;
25                                 clocks = <&rcc GPIOA>;
26                                 st,bank-name = "GPIOA";
27                                 ngpios = <16>;
28                                 gpio-ranges = <&pinctrl 0 0 16>;
29                         };
31                         gpiob: gpio@50003000 {
32                                 gpio-controller;
33                                 #gpio-cells = <2>;
34                                 interrupt-controller;
35                                 #interrupt-cells = <2>;
36                                 reg = <0x1000 0x400>;
37                                 clocks = <&rcc GPIOB>;
38                                 st,bank-name = "GPIOB";
39                                 ngpios = <16>;
40                                 gpio-ranges = <&pinctrl 0 16 16>;
41                         };
43                         gpioc: gpio@50004000 {
44                                 gpio-controller;
45                                 #gpio-cells = <2>;
46                                 interrupt-controller;
47                                 #interrupt-cells = <2>;
48                                 reg = <0x2000 0x400>;
49                                 clocks = <&rcc GPIOC>;
50                                 st,bank-name = "GPIOC";
51                                 ngpios = <16>;
52                                 gpio-ranges = <&pinctrl 0 32 16>;
53                         };
55                         gpiod: gpio@50005000 {
56                                 gpio-controller;
57                                 #gpio-cells = <2>;
58                                 interrupt-controller;
59                                 #interrupt-cells = <2>;
60                                 reg = <0x3000 0x400>;
61                                 clocks = <&rcc GPIOD>;
62                                 st,bank-name = "GPIOD";
63                                 ngpios = <16>;
64                                 gpio-ranges = <&pinctrl 0 48 16>;
65                         };
67                         gpioe: gpio@50006000 {
68                                 gpio-controller;
69                                 #gpio-cells = <2>;
70                                 interrupt-controller;
71                                 #interrupt-cells = <2>;
72                                 reg = <0x4000 0x400>;
73                                 clocks = <&rcc GPIOE>;
74                                 st,bank-name = "GPIOE";
75                                 ngpios = <16>;
76                                 gpio-ranges = <&pinctrl 0 64 16>;
77                         };
79                         gpiof: gpio@50007000 {
80                                 gpio-controller;
81                                 #gpio-cells = <2>;
82                                 interrupt-controller;
83                                 #interrupt-cells = <2>;
84                                 reg = <0x5000 0x400>;
85                                 clocks = <&rcc GPIOF>;
86                                 st,bank-name = "GPIOF";
87                                 ngpios = <16>;
88                                 gpio-ranges = <&pinctrl 0 80 16>;
89                         };
91                         gpiog: gpio@50008000 {
92                                 gpio-controller;
93                                 #gpio-cells = <2>;
94                                 interrupt-controller;
95                                 #interrupt-cells = <2>;
96                                 reg = <0x6000 0x400>;
97                                 clocks = <&rcc GPIOG>;
98                                 st,bank-name = "GPIOG";
99                                 ngpios = <16>;
100                                 gpio-ranges = <&pinctrl 0 96 16>;
101                         };
103                         gpioh: gpio@50009000 {
104                                 gpio-controller;
105                                 #gpio-cells = <2>;
106                                 interrupt-controller;
107                                 #interrupt-cells = <2>;
108                                 reg = <0x7000 0x400>;
109                                 clocks = <&rcc GPIOH>;
110                                 st,bank-name = "GPIOH";
111                                 ngpios = <16>;
112                                 gpio-ranges = <&pinctrl 0 112 16>;
113                         };
115                         gpioi: gpio@5000a000 {
116                                 gpio-controller;
117                                 #gpio-cells = <2>;
118                                 interrupt-controller;
119                                 #interrupt-cells = <2>;
120                                 reg = <0x8000 0x400>;
121                                 clocks = <&rcc GPIOI>;
122                                 st,bank-name = "GPIOI";
123                                 ngpios = <16>;
124                                 gpio-ranges = <&pinctrl 0 128 16>;
125                         };
127                         gpioj: gpio@5000b000 {
128                                 gpio-controller;
129                                 #gpio-cells = <2>;
130                                 interrupt-controller;
131                                 #interrupt-cells = <2>;
132                                 reg = <0x9000 0x400>;
133                                 clocks = <&rcc GPIOJ>;
134                                 st,bank-name = "GPIOJ";
135                                 ngpios = <16>;
136                                 gpio-ranges = <&pinctrl 0 144 16>;
137                         };
139                         gpiok: gpio@5000c000 {
140                                 gpio-controller;
141                                 #gpio-cells = <2>;
142                                 interrupt-controller;
143                                 #interrupt-cells = <2>;
144                                 reg = <0xa000 0x400>;
145                                 clocks = <&rcc GPIOK>;
146                                 st,bank-name = "GPIOK";
147                                 ngpios = <8>;
148                                 gpio-ranges = <&pinctrl 0 160 8>;
149                         };
151                         cec_pins_a: cec-0 {
152                                 pins {
153                                         pinmux = <STM32_PINMUX('A', 15, AF4)>;
154                                         bias-disable;
155                                         drive-open-drain;
156                                         slew-rate = <0>;
157                                 };
158                         };
160                         ethernet0_rgmii_pins_a: rgmii-0 {
161                                 pins1 {
162                                         pinmux = <STM32_PINMUX('G', 5, AF11)>, /* ETH_RGMII_CLK125 */
163                                                  <STM32_PINMUX('G', 4, AF11)>, /* ETH_RGMII_GTX_CLK */
164                                                  <STM32_PINMUX('G', 13, AF11)>, /* ETH_RGMII_TXD0 */
165                                                  <STM32_PINMUX('G', 14, AF11)>, /* ETH_RGMII_TXD1 */
166                                                  <STM32_PINMUX('C', 2, AF11)>, /* ETH_RGMII_TXD2 */
167                                                  <STM32_PINMUX('E', 2, AF11)>, /* ETH_RGMII_TXD3 */
168                                                  <STM32_PINMUX('B', 11, AF11)>, /* ETH_RGMII_TX_CTL */
169                                                  <STM32_PINMUX('A', 2, AF11)>, /* ETH_MDIO */
170                                                  <STM32_PINMUX('C', 1, AF11)>; /* ETH_MDC */
171                                         bias-disable;
172                                         drive-push-pull;
173                                         slew-rate = <3>;
174                                 };
175                                 pins2 {
176                                         pinmux = <STM32_PINMUX('C', 4, AF11)>, /* ETH_RGMII_RXD0 */
177                                                  <STM32_PINMUX('C', 5, AF11)>, /* ETH_RGMII_RXD1 */
178                                                  <STM32_PINMUX('B', 0, AF11)>, /* ETH_RGMII_RXD2 */
179                                                  <STM32_PINMUX('B', 1, AF11)>, /* ETH_RGMII_RXD3 */
180                                                  <STM32_PINMUX('A', 1, AF11)>, /* ETH_RGMII_RX_CLK */
181                                                  <STM32_PINMUX('A', 7, AF11)>; /* ETH_RGMII_RX_CTL */
182                                         bias-disable;
183                                 };
184                         };
186                         ethernet0_rgmii_pins_sleep_a: rgmii-sleep-0 {
187                                 pins1 {
188                                         pinmux = <STM32_PINMUX('G', 5, ANALOG)>, /* ETH_RGMII_CLK125 */
189                                                  <STM32_PINMUX('G', 4, ANALOG)>, /* ETH_RGMII_GTX_CLK */
190                                                  <STM32_PINMUX('G', 13, ANALOG)>, /* ETH_RGMII_TXD0 */
191                                                  <STM32_PINMUX('G', 14, ANALOG)>, /* ETH_RGMII_TXD1 */
192                                                  <STM32_PINMUX('C', 2, ANALOG)>, /* ETH_RGMII_TXD2 */
193                                                  <STM32_PINMUX('E', 2, ANALOG)>, /* ETH_RGMII_TXD3 */
194                                                  <STM32_PINMUX('B', 11, ANALOG)>, /* ETH_RGMII_TX_CTL */
195                                                  <STM32_PINMUX('A', 2, ANALOG)>, /* ETH_MDIO */
196                                                  <STM32_PINMUX('C', 1, ANALOG)>, /* ETH_MDC */
197                                                  <STM32_PINMUX('C', 4, ANALOG)>, /* ETH_RGMII_RXD0 */
198                                                  <STM32_PINMUX('C', 5, ANALOG)>, /* ETH_RGMII_RXD1 */
199                                                  <STM32_PINMUX('B', 0, ANALOG)>, /* ETH_RGMII_RXD2 */
200                                                  <STM32_PINMUX('B', 1, ANALOG)>, /* ETH_RGMII_RXD3 */
201                                                  <STM32_PINMUX('A', 1, ANALOG)>, /* ETH_RGMII_RX_CLK */
202                                                  <STM32_PINMUX('A', 7, ANALOG)>; /* ETH_RGMII_RX_CTL */
203                                 };
204                         };
206                         i2c1_pins_a: i2c1-0 {
207                                 pins {
208                                         pinmux = <STM32_PINMUX('D', 12, AF5)>, /* I2C1_SCL */
209                                                  <STM32_PINMUX('F', 15, AF5)>; /* I2C1_SDA */
210                                         bias-disable;
211                                         drive-open-drain;
212                                         slew-rate = <0>;
213                                 };
214                         };
216                         i2c2_pins_a: i2c2-0 {
217                                 pins {
218                                         pinmux = <STM32_PINMUX('H', 4, AF4)>, /* I2C2_SCL */
219                                                  <STM32_PINMUX('H', 5, AF4)>; /* I2C2_SDA */
220                                         bias-disable;
221                                         drive-open-drain;
222                                         slew-rate = <0>;
223                                 };
224                         };
226                         i2c5_pins_a: i2c5-0 {
227                                 pins {
228                                         pinmux = <STM32_PINMUX('A', 11, AF4)>, /* I2C5_SCL */
229                                                  <STM32_PINMUX('A', 12, AF4)>; /* I2C5_SDA */
230                                         bias-disable;
231                                         drive-open-drain;
232                                         slew-rate = <0>;
233                                 };
234                         };
236                         m_can1_pins_a: m-can1-0 {
237                                 pins1 {
238                                         pinmux = <STM32_PINMUX('H', 13, AF9)>; /* CAN1_TX */
239                                         slew-rate = <1>;
240                                         drive-push-pull;
241                                         bias-disable;
242                                 };
243                                 pins2 {
244                                         pinmux = <STM32_PINMUX('I', 9, AF9)>; /* CAN1_RX */
245                                         bias-disable;
246                                 };
247                         };
249                         m_can1_sleep_pins_a: m_can1-sleep@0 {
250                                 pins {
251                                         pinmux = <STM32_PINMUX('H', 13, ANALOG)>, /* CAN1_TX */
252                                                  <STM32_PINMUX('I', 9, ANALOG)>; /* CAN1_RX */
253                                 };
254                         };
256                         pwm2_pins_a: pwm2-0 {
257                                 pins {
258                                         pinmux = <STM32_PINMUX('A', 3, AF1)>; /* TIM2_CH4 */
259                                         bias-pull-down;
260                                         drive-push-pull;
261                                         slew-rate = <0>;
262                                 };
263                         };
265                         pwm8_pins_a: pwm8-0 {
266                                 pins {
267                                         pinmux = <STM32_PINMUX('I', 2, AF3)>; /* TIM8_CH4 */
268                                         bias-pull-down;
269                                         drive-push-pull;
270                                         slew-rate = <0>;
271                                 };
272                         };
274                         pwm12_pins_a: pwm12-0 {
275                                 pins {
276                                         pinmux = <STM32_PINMUX('H', 6, AF2)>; /* TIM12_CH1 */
277                                         bias-pull-down;
278                                         drive-push-pull;
279                                         slew-rate = <0>;
280                                 };
281                         };
283                         qspi_clk_pins_a: qspi-clk-0 {
284                                 pins {
285                                         pinmux = <STM32_PINMUX('F', 10, AF9)>; /* QSPI_CLK */
286                                         bias-disable;
287                                         drive-push-pull;
288                                         slew-rate = <3>;
289                                 };
290                         };
292                         qspi_bk1_pins_a: qspi-bk1-0 {
293                                 pins1 {
294                                         pinmux = <STM32_PINMUX('F', 8, AF10)>, /* QSPI_BK1_IO0 */
295                                                  <STM32_PINMUX('F', 9, AF10)>, /* QSPI_BK1_IO1 */
296                                                  <STM32_PINMUX('F', 7, AF9)>, /* QSPI_BK1_IO2 */
297                                                  <STM32_PINMUX('F', 6, AF9)>; /* QSPI_BK1_IO3 */
298                                         bias-disable;
299                                         drive-push-pull;
300                                         slew-rate = <3>;
301                                 };
302                                 pins2 {
303                                         pinmux = <STM32_PINMUX('B', 6, AF10)>; /* QSPI_BK1_NCS */
304                                         bias-pull-up;
305                                         drive-push-pull;
306                                         slew-rate = <3>;
307                                 };
308                         };
310                         qspi_bk2_pins_a: qspi-bk2-0 {
311                                 pins1 {
312                                         pinmux = <STM32_PINMUX('H', 2, AF9)>, /* QSPI_BK2_IO0 */
313                                                  <STM32_PINMUX('H', 3, AF9)>, /* QSPI_BK2_IO1 */
314                                                  <STM32_PINMUX('G', 10, AF11)>, /* QSPI_BK2_IO2 */
315                                                  <STM32_PINMUX('G', 7, AF11)>; /* QSPI_BK2_IO3 */
316                                         bias-disable;
317                                         drive-push-pull;
318                                         slew-rate = <3>;
319                                 };
320                                 pins2 {
321                                         pinmux = <STM32_PINMUX('C', 0, AF10)>; /* QSPI_BK2_NCS */
322                                         bias-pull-up;
323                                         drive-push-pull;
324                                         slew-rate = <3>;
325                                 };
326                         };
328                         uart4_pins_a: uart4-0 {
329                                 pins1 {
330                                         pinmux = <STM32_PINMUX('G', 11, AF6)>; /* UART4_TX */
331                                         bias-disable;
332                                         drive-push-pull;
333                                         slew-rate = <0>;
334                                 };
335                                 pins2 {
336                                         pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */
337                                         bias-disable;
338                                 };
339                         };
340                 };
342                 pinctrl_z: pin-controller-z@54004000 {
343                         #address-cells = <1>;
344                         #size-cells = <1>;
345                         compatible = "st,stm32mp157-z-pinctrl";
346                         ranges = <0 0x54004000 0x400>;
347                         pins-are-numbered;
348                         interrupt-parent = <&exti>;
349                         st,syscfg = <&exti 0x60 0xff>;
351                         gpioz: gpio@54004000 {
352                                 gpio-controller;
353                                 #gpio-cells = <2>;
354                                 interrupt-controller;
355                                 #interrupt-cells = <2>;
356                                 reg = <0 0x400>;
357                                 clocks = <&rcc GPIOZ>;
358                                 st,bank-name = "GPIOZ";
359                                 st,bank-ioport = <11>;
360                                 ngpios = <8>;
361                                 gpio-ranges = <&pinctrl_z 0 400 8>;
362                         };
364                         i2c4_pins_a: i2c4-0 {
365                                 pins {
366                                         pinmux = <STM32_PINMUX('Z', 4, AF6)>, /* I2C4_SCL */
367                                                  <STM32_PINMUX('Z', 5, AF6)>; /* I2C4_SDA */
368                                         bias-disable;
369                                         drive-open-drain;
370                                         slew-rate = <0>;
371                                 };
372                         };
374                         spi1_pins_a: spi1-0 {
375                                 pins1 {
376                                         pinmux = <STM32_PINMUX('Z', 0, AF5)>, /* SPI1_SCK */
377                                                  <STM32_PINMUX('Z', 2, AF5)>; /* SPI1_MOSI */
378                                         bias-disable;
379                                         drive-push-pull;
380                                         slew-rate = <1>;
381                                 };
383                                 pins2 {
384                                         pinmux = <STM32_PINMUX('Z', 1, AF5)>; /* SPI1_MISO */
385                                         bias-disable;
386                                 };
387                         };
388                 };
389         };