1 /* 2 * Copyright (c) 2022 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_NUVOTON_NPCX_GPIO_H_ 7 #define ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_NUVOTON_NPCX_GPIO_H_ 8 9 /** 10 * @name GPIO pin voltage flags 11 * 12 * The voltage flags are a Zephyr specific extension of the standard GPIO flags 13 * specified by the Linux GPIO binding for use with the Nuvoton NPCX SoCs. 14 * 15 * @{ 16 */ 17 18 /** @cond INTERNAL_HIDDEN */ 19 #define NPCX_GPIO_VOLTAGE_POS 11 20 #define NPCX_GPIO_VOLTAGE_MASK (1U << NPCX_GPIO_VOLTAGE_POS) 21 /** @endcond */ 22 23 /** Set pin at the default voltage level (3.3V) */ 24 #define NPCX_GPIO_VOLTAGE_DEFAULT (0U << NPCX_GPIO_VOLTAGE_POS) 25 /** Set pin voltage level at 1.8 V */ 26 #define NPCX_GPIO_VOLTAGE_1P8 (1U << NPCX_GPIO_VOLTAGE_POS) 27 28 /** @} */ 29 30 #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_NUVOTON_NPCX_GPIO_H_ */ 31