Zephyr Project API
4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
realtek-gpio.h
Go to the documentation of this file.
1
/*
2
* SPDX-License-Identifier: Apache-2.0
3
*
4
* Copyright (c) 2024 Realtek Semiconductor Corporation, SIBG-SD7
5
* Author: Lin Yu-Cheng <lin_yu_cheng@realtek.com>
6
*/
7
8
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_REALTEK_GPIO_H_
9
#define ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_REALTEK_GPIO_H_
10
12
#define RTS5912_GPIO_INDETEN BIT(8)
14
#define RTS5912_GPIO_OUTDRV BIT(9)
16
#define RTS5912_GPIO_SLEWRATE BIT(10)
18
#define RTS5912_GPIO_SCHEN BIT(11)
19
20
#define RTS5912_GPIO_VOLTAGE_POS 12
21
#define RTS5912_GPIO_VOLTAGE_MASK GENMASK(13, 12)
23
#define RTS5912_GPIO_VOLTAGE_DEFAULT (0U << RTS5912_GPIO_VOLTAGE_POS)
25
#define RTS5912_GPIO_VOLTAGE_1V8 (1U << RTS5912_GPIO_VOLTAGE_POS)
27
#define RTS5912_GPIO_VOLTAGE_3V3 (2U << RTS5912_GPIO_VOLTAGE_POS)
29
#define RTS5912_GPIO_VOLTAGE_5V0 (3U << RTS5912_GPIO_VOLTAGE_POS)
30
32
#define RTS5912_GPIO_MFCTRL_POS 14
33
#define RTS5912_GPIO_MFCTRL_MASK GENMASK(15, 14)
35
#define RTS5912_GPIO_MFCTRL_0 (0U << RTS5912_GPIO_MFCTRL_POS)
36
#define RTS5912_GPIO_MFCTRL_1 (1U << RTS5912_GPIO_MFCTRL_POS)
37
#define RTS5912_GPIO_MFCTRL_2 (2U << RTS5912_GPIO_MFCTRL_POS)
38
#define RTS5912_GPIO_MFCTRL_3 (3U << RTS5912_GPIO_MFCTRL_POS)
40
#define RTS5912_GPIO_INTR_MASK (1U << 21 | 1U << 22 | 1U << 24 | 1U << 25 | 1U << 26)
41
42
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_REALTEK_GPIO_H_ */
include
zephyr
dt-bindings
gpio
realtek-gpio.h
Generated on Sun May 4 2025 13:59:46 for Zephyr Project API by
1.9.8