drivers: gpio: rts5912 support new features

add support new features for get/set configuration:
1. slew rate
2. output driving current
3. schmitt trigger
4. multi-function select

testing by blinky sample.

20250326: remove check interrupt mask to avoid interrupt disable.

Signed-off-by: Titan Chen <titan.chen@realtek.com>
This commit is contained in:
Titan Chen 2025-02-19 19:12:38 +08:00 committed by Benjamin Cabé
commit 2ede51b3e9
3 changed files with 145 additions and 7 deletions

View file

@ -47,4 +47,10 @@ typedef struct {
#define GPIO_GCR_INTSTS_Pos (31UL)
#define GPIO_GCR_INTSTS_Msk BIT(GPIO_GCR_INTSTS_Pos)
#define GPIO_GCR_INTCTRL_TRIG_EDGE_HIGH (0U << GPIO_GCR_INTCTRL_Pos)
#define GPIO_GCR_INTCTRL_TRIG_EDGE_LOW (1U << GPIO_GCR_INTCTRL_Pos)
#define GPIO_GCR_INTCTRL_TRIG_EDGE_BOTH (2U << GPIO_GCR_INTCTRL_Pos)
#define GPIO_GCR_INTCTRL_TRIG_LEVEL_LOW (3U << GPIO_GCR_INTCTRL_Pos)
#define GPIO_GCR_INTCTRL_TRIG_LEVEL_HIGH (4U << GPIO_GCR_INTCTRL_Pos)
#endif /* ZEPHYR_SOC_REALTEK_RTS5912_REG_GPIO_H */