Line data Source code
1 0 : /*
2 : * Copyright (c) 2025 Feniex Industries Inc.
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 : #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_NXP_IMX_IGPIO_H_
7 : #define ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_NXP_IMX_IGPIO_H_
8 :
9 : /**
10 : * @name GPIO pull strength flags
11 : *
12 : * The pull strength flags are a Zephyr specific extension of the standard GPIO
13 : * flags specified by the Linux GPIO binding. Only applicable for NXP IMX
14 : * SoCs.
15 : *
16 : * The interface supports two different pull strengths:
17 : * `WEAK` - The lowest pull strength supported by the HW
18 : * `STRONG` - The highest pull strength supported by the HW
19 : *
20 : * @{
21 : */
22 : /** @cond INTERNAL_HIDDEN */
23 : #define NXP_IGPIO_PULL_STRENGTH_POS 8
24 : #define NXP_IGPIO_PULL_STRENGTH_MASK (0x1U << NXP_IGPIO_PULL_STRENGTH_POS)
25 : /** @endcond */
26 :
27 : /** pull up/down strengths (only applies to CONFIG_SOC_SERIES_IMXRT10XX) */
28 1 : #define NXP_IGPIO_PULL_WEAK (0x0U << NXP_IGPIO_PULL_STRENGTH_POS)
29 0 : #define NXP_IGPIO_PULL_STRONG (0x1U << NXP_IGPIO_PULL_STRENGTH_POS)
30 :
31 : /** @} */
32 :
33 : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_NXP_IMX_IGPIO_H_ */
|