This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

nuvoton,nct38xx-gpio (on i2c bus)

Vendor: Nuvoton Technology Corporation

Description

Nuvoton NCT38XX series I2C-based GPIO expander

Example:
  &i2c0_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>;
      };
    };

    nct3808_0_P1@71 {
      #address-cells = <1>;
      #size-cells = <0>;
      compatible = "nuvoton,nct38xx-gpio";
      reg = <0x71>;
      label = "NCT3808_0_P1";

      gpio@0 {
        compatible = "nuvoton,nct38xx-gpio-port";
        reg = <0x0>;
        label = "NCT3808_0_P1_GPIO0";
        gpio-controller;
        #gpio-cells = <2>;
        ngpios = <8>;
        pin_mask = <0xdc>;
        pinmux_mask = <0xff>;
      };
    };

    nct3808_0_P2@75 {
      #address-cells = <1>;
      #size-cells = <0>;
      compatible = "nuvoton,nct38xx-gpio";
      reg = <0x75>;
      label = "NCT3808_0_P2";

      gpio@0 {
        compatible = "nuvoton,nct38xx-gpio-port";
        reg = <0x0>;
        label = "NCT3808_0_P2_GPIO0";
        gpio-controller;
        #gpio-cells = <2>;
        ngpios = <8>;
        pin_mask = <0xdc>;
        pinmux_mask = <0xff>;
      };
    };
  };

Properties

Properties not inherited from the base binding file.

Name

Type

Details

supply-gpios

phandle-array

GPIO specifier that controls power to the device.

This property should be provided when the device has a dedicated
switch that controls power to the device.  The supply state is
entirely the responsibility of the device driver.

Contrast with vin-supply.

vin-supply

phandle

Reference to the regulator that controls power to the device.
The referenced devicetree node must have a regulator compatible.

This property should be provided when device power is supplied
by a shared regulator.  The supply state is dependent on the
request status of all devices fed by the regulator.

Contrast with supply-gpios.  If both properties are provided
then the regulator must be requested before the supply GPIOS is
set to an active state, and the supply GPIOS must be set to an
inactive state before releasing the regulator.