mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 14:42:33 +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> |
||
---|---|---|
.. | ||
adc | ||
bluetooth | ||
clock_control | ||
console | ||
dma | ||
ec_host_cmd_periph | ||
flash | ||
gpio | ||
i2c/slave | ||
ieee802154 | ||
interrupt_controller | ||
led | ||
misc | ||
modem | ||
pcie | ||
pm_cpu_ops | ||
rtc | ||
sensor | ||
timer | ||
uart | ||
usb | ||
virtualization | ||
adc.h | ||
bbram.h | ||
cache.h | ||
can.h | ||
clock_control.h | ||
counter.h | ||
dac.h | ||
disk.h | ||
display.h | ||
dma.h | ||
ec_host_cmd_periph.h | ||
edac.h | ||
eeprom.h | ||
emul.h | ||
entropy.h | ||
espi_emul.h | ||
espi_saf.h | ||
espi.h | ||
flash.h | ||
fpga.h | ||
gna.h | ||
gpio.h | ||
hwinfo.h | ||
i2c_emul.h | ||
i2c.h | ||
i2s.h | ||
ipm.h | ||
kscan.h | ||
led_strip.h | ||
led.h | ||
lora.h | ||
mbox.h | ||
mdio.h | ||
peci.h | ||
pinctrl.h | ||
pinmux.h | ||
pm_cpu_ops.h | ||
ps2.h | ||
ptp_clock.h | ||
pwm.h | ||
regulator.h | ||
sensor.h | ||
spi_emul.h | ||
spi.h | ||
syscon.h | ||
uart.h | ||
video-controls.h | ||
video.h | ||
watchdog.h |