blob: 85b96be99b0bfa5315efb660f90ac7f0c44a75af [file] [log] [blame]
Patrice Chotardd983a0f2017-09-13 18:00:09 +02001/*
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 Chotard10563032018-12-06 11:59:42 +010047 pinctrl: pin-controller {
Patrice Chotardd983a0f2017-09-13 18:00:09 +020048 #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 Chotarda1e384b2017-09-13 18:00:11 +020057 compatible = "st,stm32-gpio";
Patrice Chotardd983a0f2017-09-13 18:00:09 +020058 reg = <0x0 0x400>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +020059 clocks = <&rcc GPIOA_CK>;
Patrice Chotardd983a0f2017-09-13 18:00:09 +020060 st,bank-name = "GPIOA";
61 };
62
63 gpiob: gpio@58020400 {
64 gpio-controller;
65 #gpio-cells = <2>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +020066 compatible = "st,stm32-gpio";
Patrice Chotardd983a0f2017-09-13 18:00:09 +020067 reg = <0x400 0x400>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +020068 clocks = <&rcc GPIOB_CK>;
Patrice Chotardd983a0f2017-09-13 18:00:09 +020069 st,bank-name = "GPIOB";
70 };
71
72 gpioc: gpio@58020800 {
73 gpio-controller;
74 #gpio-cells = <2>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +020075 compatible = "st,stm32-gpio";
Patrice Chotardd983a0f2017-09-13 18:00:09 +020076 reg = <0x800 0x400>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +020077 clocks = <&rcc GPIOC_CK>;
Patrice Chotardd983a0f2017-09-13 18:00:09 +020078 st,bank-name = "GPIOC";
79 };
80
81 gpiod: gpio@58020c00 {
82 gpio-controller;
83 #gpio-cells = <2>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +020084 compatible = "st,stm32-gpio";
Patrice Chotardd983a0f2017-09-13 18:00:09 +020085 reg = <0xc00 0x400>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +020086 clocks = <&rcc GPIOD_CK>;
Patrice Chotardd983a0f2017-09-13 18:00:09 +020087 st,bank-name = "GPIOD";
88 };
89
90 gpioe: gpio@58021000 {
91 gpio-controller;
92 #gpio-cells = <2>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +020093 compatible = "st,stm32-gpio";
Patrice Chotardd983a0f2017-09-13 18:00:09 +020094 reg = <0x1000 0x400>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +020095 clocks = <&rcc GPIOE_CK>;
Patrice Chotardd983a0f2017-09-13 18:00:09 +020096 st,bank-name = "GPIOE";
97 };
98
99 gpiof: gpio@58021400 {
100 gpio-controller;
101 #gpio-cells = <2>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +0200102 compatible = "st,stm32-gpio";
Patrice Chotardd983a0f2017-09-13 18:00:09 +0200103 reg = <0x1400 0x400>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +0200104 clocks = <&rcc GPIOF_CK>;
Patrice Chotardd983a0f2017-09-13 18:00:09 +0200105 st,bank-name = "GPIOF";
106 };
107
108 gpiog: gpio@58021800 {
109 gpio-controller;
110 #gpio-cells = <2>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +0200111 compatible = "st,stm32-gpio";
Patrice Chotardd983a0f2017-09-13 18:00:09 +0200112 reg = <0x1800 0x400>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +0200113 clocks = <&rcc GPIOG_CK>;
Patrice Chotardd983a0f2017-09-13 18:00:09 +0200114 st,bank-name = "GPIOG";
115 };
116
117 gpioh: gpio@58021c00 {
118 gpio-controller;
119 #gpio-cells = <2>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +0200120 compatible = "st,stm32-gpio";
Patrice Chotardd983a0f2017-09-13 18:00:09 +0200121 reg = <0x1c00 0x400>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +0200122 clocks = <&rcc GPIOH_CK>;
Patrice Chotardd983a0f2017-09-13 18:00:09 +0200123 st,bank-name = "GPIOH";
124 };
125
126 gpioi: gpio@58022000 {
127 gpio-controller;
128 #gpio-cells = <2>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +0200129 compatible = "st,stm32-gpio";
Patrice Chotardd983a0f2017-09-13 18:00:09 +0200130 reg = <0x2000 0x400>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +0200131 clocks = <&rcc GPIOI_CK>;
Patrice Chotardd983a0f2017-09-13 18:00:09 +0200132 st,bank-name = "GPIOI";
133 };
134
135 gpioj: gpio@58022400 {
136 gpio-controller;
137 #gpio-cells = <2>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +0200138 compatible = "st,stm32-gpio";
Patrice Chotardd983a0f2017-09-13 18:00:09 +0200139 reg = <0x2400 0x400>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +0200140 clocks = <&rcc GPIOJ_CK>;
Patrice Chotardd983a0f2017-09-13 18:00:09 +0200141 st,bank-name = "GPIOJ";
142 };
143
144 gpiok: gpio@58022800 {
145 gpio-controller;
146 #gpio-cells = <2>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +0200147 compatible = "st,stm32-gpio";
Patrice Chotardd983a0f2017-09-13 18:00:09 +0200148 reg = <0x2800 0x400>;
Patrice Chotarda1e384b2017-09-13 18:00:11 +0200149 clocks = <&rcc GPIOK_CK>;
Patrice Chotardd983a0f2017-09-13 18:00:09 +0200150 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 Chotardd983a0f2017-09-13 18:00:09 +0200178 };
179 };
180};