mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-01 08:46:08 +00:00
NCT38XX series, which are i2c-based chips, support a different number of GPIO functionality. For NCT3807, it has 2 GPIO ports on the same i2c device address. For NCT3808, it has 2 GPIO ports on different i2c device addresses. This commit adds NCT38XX GPIO driver support & provides the interrupt handler for the share alert pin. The following is NCT3807 devicetree node example: ``` &i2c0_0 { nct3807_0: nct3807@70 { #address-cells = <1>; #size-cells = <0>; compatible = "nuvoton,nct38xx-gpio"; reg = <0x70>; label = "NCT3807_0"; gpio@0 { compatible = "nuvoton,nct38xx-gpio-port"; reg = <0x0>; label = "NCT3807_0_GPIO0"; gpio-controller; #gpio-cells = <2>; ngpios = <8>; pin_mask = <0xff>; pinmux_mask = <0xf7>; }; gpio@1 { compatible = "nuvoton,nct38xx-gpio-port"; reg = <0x1>; label = "NCT3807_0_GPIO1"; gpio-controller; #gpio-cells = <2>; ngpios = <8>; pin_mask = <0xff>; }; }; }; ``` Signed-off-by: Wealian Liao <WHLIAO@nuvoton.com> |
||
---|---|---|
.. | ||
app_memory | ||
arch | ||
audio | ||
bluetooth | ||
canbus | ||
console | ||
crypto | ||
data | ||
debug | ||
devicetree | ||
dfu | ||
disk | ||
display | ||
drivers | ||
dt-bindings | ||
fs | ||
ipc | ||
kernel | ||
linker | ||
logging | ||
lorawan | ||
mgmt | ||
modbus | ||
multi_heap | ||
net | ||
pm | ||
portability | ||
posix | ||
power | ||
random | ||
settings | ||
shell | ||
stats | ||
storage | ||
sys | ||
task_wdt | ||
timing | ||
toolchain | ||
tracing | ||
usb | ||
xen | ||
zephyr | ||
cache.h | ||
device.h | ||
devicetree.h | ||
ec_host_cmd.h | ||
emul.h | ||
exc_handle.h | ||
fatal.h | ||
init.h | ||
irq_nextlevel.h | ||
irq_offload.h | ||
irq.h | ||
kernel_includes.h | ||
kernel_structs.h | ||
kernel_version.h | ||
kernel.h | ||
ptp_clock.h | ||
shared_irq.h | ||
smf.h | ||
spinlock.h | ||
sw_isr_table.h | ||
sys_clock.h | ||
syscall_handler.h | ||
syscall.h | ||
timeout_q.h | ||
toolchain.h | ||
wait_q.h | ||
zephyr.h |