driver: gpio: npcx: Support GPIO_VOLTAGE_1P8 flag

This CL configures low-voltage (1.8V) detection via GPIO driver with
GPIO_VOLTAGE_1P8 flag. It also adds support for this flag in
pin_get_config() function.

Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
This commit is contained in:
Mulin Chao 2022-07-18 19:01:39 -07:00 committed by Carles Cufí
commit 9267655f42
12 changed files with 267 additions and 52 deletions

View file

@ -81,7 +81,7 @@
0x400a5000 0x2000>;
reg-names = "scfg", "glue";
#alt-cells = <3>;
#lvol-cells = <4>;
#lvol-cells = <2>;
label = "SCFG";
};