Skip to content

Commit 5b1c7b2

Browse files
mathieuchopstmnashif
authored andcommitted
bindings: pinctrl: stm32: update DT header for STM32N6 pinctrl
Update the DT binding header to take STM32N6 pinctrl into account. Signed-off-by: Mathieu Choplain <[email protected]>
1 parent 58baaa3 commit 5b1c7b2

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

include/zephyr/dt-bindings/pinctrl/stm32-pinctrl.h

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,23 @@
6969
*
7070
* Pin configuration is coded with the following
7171
* fields
72-
* Alternate Functions [ 0 : 3 ]
73-
* GPIO Mode [ 4 : 5 ]
74-
* GPIO Output type [ 6 ]
75-
* GPIO Speed [ 7 : 8 ]
76-
* GPIO PUPD config [ 9 : 10 ]
77-
* GPIO Output data [ 11 ]
72+
* [03:00] Alternate Functions
73+
* [05:04] GPIO Mode
74+
* [ 06] GPIO Output type
75+
* [08:07] GPIO Speed
76+
* [10:09] GPIO PUPD config
77+
* [ 11] GPIO Output data
7878
*
79+
* These fields are only used when pinctrl with compatible
80+
* "st,stm32n6-pinctrl" is in use:
81+
* [15:12] I/O delay length
82+
* [ 16] I/O delay direction
83+
* [18:17] I/O retime edge
84+
* [ 19] I/O retime enable
85+
*
86+
* NOTE: the values for these fields are not defined in this file
87+
* because they depend on hardware definitions. The values can be
88+
* found in `soc/st/stm32/common/pinctrl_soc.h` instead.
7989
*/
8090

8191
/* GPIO Mode */
@@ -113,4 +123,16 @@
113123
#define STM32_ODR_MASK 0x1
114124
#define STM32_ODR_SHIFT 11
115125

126+
/* I/O delay length (DELAYR) */
127+
#define STM32_IODELAY_LENGTH_MASK 0xFU
128+
#define STM32_IODELAY_LENGTH_SHIFT 12
129+
130+
/* I/O delay & retime configuration (ADVCFGR) */
131+
#define STM32_IORETIME_ADVCFGR_MASK 0xFU
132+
#define STM32_IORETIME_ADVCFGR_SHIFT 16
133+
134+
#define STM32_IODELAY_DIRECTION_SHIFT STM32_IORETIME_ADVCFGR_SHIFT
135+
#define STM32_IORETIME_EDGE_SHIFT 17
136+
#define STM32_IORETIME_ENABLE_SHIFT 19
137+
116138
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_STM32_PINCTRL_H_ */

0 commit comments

Comments
 (0)