+1
−0
+2
−0
drivers/gpio/Kconfig.nct38xx
0 → 100644
+41
−0
drivers/gpio/gpio_nct38xx.c
0 → 100644
+100
−0
Loading
Gitlab 现已全面支持 git over ssh 与 git over https。通过 HTTPS 访问请配置带有 read_repository / write_repository 权限的 Personal access token。通过 SSH 端口访问请使用 22 端口或 13389 端口。如果使用CAS注册了账户但不知道密码,可以自行至设置中更改;如有其他问题,请发邮件至 service@cra.moe 寻求协助。
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>
CRA Git | Maintained and supported by SUSTech CRA and CCSE