Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Gpio bindings

Single-page view · as markdown

Abilis TB10x GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/abilis,tb10x-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Christian Ruppert <christian.ruppert@abilis.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "abilis,tb10x-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

gpio-ranges — not listed as required here #

true — No constraints added by this property rule.

gpio-ranges-group-names — not listed as required here #

true — No constraints added by this property rule.

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 1

Interrupts are triggered on both edges

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

abilis,ngpio — required here #

Number of GPIO pins this driver controls

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "abilis,ngpio"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@ff140000 {
    compatible = "abilis,tb10x-gpio";
    interrupt-controller;
    #interrupt-cells = <1>;
    interrupts = <27 2>;
    reg = <0xff140000 0x1000>;
    gpio-controller;
    #gpio-cells = <2>;
    abilis,ngpio = <3>;
    gpio-ranges = <&iomux 0 0 0>;
    gpio-ranges-group-names = "gpioa_pins";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

DS4520 I2C GPIO expander

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/adi,ds4520-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Okan Sahin <okan.sahin@analog.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,ds4520-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

ngpios — required here #

Minimum value (minimum): 1

Maximum value (maximum): 9

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "ngpios"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    gpio@50 {
        compatible = "adi,ds4520-gpio";
        reg = <0x50>;
        ngpios = <9>;
        gpio-controller;
        #gpio-cells = <2>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Airoha EN7523 GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/airoha,en7523-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "John Crispin <john@phrozen.org>"

Airoha's GPIO controller on their ARM EN7523 SoCs consists of two banks of 32 GPIOs.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpio@[0-9a-f]+$"

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "airoha,en7523-gpio"

reg — required here #

The first tuple points to the input register. The second and third tuple point to the direction registers The fourth tuple points to the output register

Maximum number of items (maxItems): 4

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio0: gpio@1fbf0200 {
    compatible = "airoha,en7523-gpio";
    reg = <0x1fbf0204 0x4>,
          <0x1fbf0200 0x4>,
          <0x1fbf0220 0x4>,
          <0x1fbf0214 0x4>;
    gpio-controller;
    #gpio-cells = <2>;
};

gpio1: gpio@1fbf0270 {
    compatible = "airoha,en7523-gpio";
    reg = <0x1fbf0270 0x4>,
          <0x1fbf0260 0x4>,
          <0x1fbf0264 0x4>,
          <0x1fbf0278 0x4>;
    gpio-controller;
    #gpio-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Altera GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/altr-pio-1.0.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Dinh Nguyen <dinguyen@kernel.org>", "Marek Vasut <marex@denx.de>", "Mathieu Malaterre <malat@debian.org>", "Tien Hock Loh <thloh@altera.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "altr,pio-1.0"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

First cell is the GPIO offset number. Second cell is reserved and currently unused.

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

altr,ngpio — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Width of the GPIO bank.

Default value (default): 32

altr,interrupt-type — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Specifies the interrupt trigger type synthesized by hardware. Values defined in <dt-bindings/interrupt-controller/irq.h>.

Allowed values (enum): 1, 2, 3, 4

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "interrupts", "interrupt-controller", "#interrupt-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

gpio@ff200000 {
    compatible = "altr,pio-1.0";
    reg = <0xff200000 0x10>;
    interrupts = <45 4>;
    interrupt-controller;
    #interrupt-cells = <2>;
    gpio-controller;
    #gpio-cells = <2>;
    altr,ngpio = <32>;
    altr,interrupt-type = <IRQ_TYPE_EDGE_RISING>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

APM X-Gene Standby GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/apm,xgene-gpio-sb.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Khuong Dinh <khuong@os.amperecomputing.com>"

This is a gpio controller in the standby domain. It also supports interrupt in
some particular pins which are sourced to its parent interrupt controller
as diagram below:
                              +-----------------+
                              | X-Gene standby  |
                              | GPIO controller +------ GPIO_0
  +------------+              |                 | ...
  | Parent IRQ | EXT_INT_0    |                 +------ GPIO_8/EXT_INT_0
  | controller | (SPI40)      |                 | ...
  | (GICv2)    +--------------+                 +------ GPIO_[N+8]/EXT_INT_N
  |            |   ...        |                 |
  |            | EXT_INT_N    |                 +------ GPIO_[N+9]
  |            | (SPI[40 + N])|                 | ...
  |            +--------------+                 +------ GPIO_MAX
  +------------+              +-----------------+

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "apm,xgene-gpio-sb"

reg — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

interrupts — required here #

List of interrupt specifiers for EXT_INT_0 through EXT_INT_N. The first entry must correspond to EXT_INT_0.

#interrupt-cells — required here #

Exact value (const): 2

First cell selects EXT_INT_N (0-N), second cell specifies flags

interrupt-controller — required here #

true — No constraints added by this property rule.

apm,nr-gpios — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Number of GPIO pins

apm,nr-irqs — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Number of interrupt pins

apm,irq-start — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Lowest GPIO pin supporting interrupts

Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-controller", "interrupts", "#interrupt-cells", "interrupt-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@17001000 {
    compatible = "apm,xgene-gpio-sb";
    reg = <0x17001000 0x400>;
    #gpio-cells = <2>;
    gpio-controller;
    interrupts = <0x0 0x28 0x1>,
                 <0x0 0x29 0x1>,
                 <0x0 0x2a 0x1>,
                 <0x0 0x2b 0x1>,
                 <0x0 0x2c 0x1>,
                 <0x0 0x2d 0x1>;
    #interrupt-cells = <2>;
    interrupt-controller;
    apm,nr-gpios = <22>;
    apm,nr-irqs = <6>;
    apm,irq-start = <8>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Apple Mac System Management Controller GPIO

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/apple,smc-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sven Peter <sven@kernel.org>"

Apple Mac System Management Controller GPIO block.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "apple,smc-gpio"

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

Required in this object (required): "compatible", "gpio-controller", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Aspeed GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/aspeed,ast2400-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Andrew Jeffery <andrew@codeconstruct.com.au>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "aspeed,ast2400-gpio", "aspeed,ast2500-gpio", "aspeed,ast2600-gpio", "aspeed,ast2700-gpio"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

The clock to use for debounce timings

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 12

Maximum number of items (maxItems): 232

gpio-ranges — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

ngpios — not listed as required here #

Minimum value (minimum): 12

Maximum value (maximum): 232

Properties matching a name pattern (patternProperties) #

-hog(-[0-9]+)?$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-controller", "#interrupt-cells", "gpio-controller", "#gpio-cells"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "aspeed,ast2400-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

gpio-line-names — not listed as required here

Minimum number of items (minItems): 220

Maximum number of items (maxItems): 220

ngpios — not listed as required here

Exact value (const): 220

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "aspeed,ast2500-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

gpio-line-names — not listed as required here

Minimum number of items (minItems): 232

Maximum number of items (maxItems): 232

ngpios — not listed as required here

Exact value (const): 232

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "aspeed,ast2600-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

gpio-line-names — not listed as required here

Minimum number of items (minItems): 36

Maximum number of items (maxItems): 208

ngpios — required here

Allowed values (enum): 36, 208

Required in this object (required): "ngpios"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "aspeed,ast2700-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

gpio-line-names — not listed as required here

Minimum number of items (minItems): 12

Maximum number of items (maxItems): 216

ngpios — required here

Allowed values (enum): 12, 216

Required in this object (required): "ngpios"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@1e780000 {
    compatible = "aspeed,ast2400-gpio";
    reg = <0x1e780000 0x1000>;
    interrupts = <20>;
    interrupt-controller;
    #interrupt-cells = <2>;
    gpio-controller;
    #gpio-cells = <2>;
};
gpio: gpio@1e780000 {
    compatible = "aspeed,ast2500-gpio";
    reg = <0x1e780000 0x200>;
    interrupts = <20>;
    interrupt-controller;
    #interrupt-cells = <2>;
    gpio-controller;
    #gpio-cells = <2>;
    gpio-ranges = <&pinctrl 0 0 232>;
};
#include <dt-bindings/clock/ast2600-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
gpio0: gpio@1e780000 {
    compatible = "aspeed,ast2600-gpio";
    reg = <0x1e780000 0x400>;
    clocks = <&syscon ASPEED_CLK_APB2>;
    interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-controller;
    #interrupt-cells = <2>;
    #gpio-cells = <2>;
    gpio-controller;
    gpio-ranges = <&pinctrl 0 0 208>;
    ngpios = <208>;
};
gpio1: gpio@1e780800 {
    compatible = "aspeed,ast2600-gpio";
    reg = <0x1e780800 0x800>;
    clocks = <&syscon ASPEED_CLK_APB1>;
    interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-controller;
    #interrupt-cells = <2>;
    gpio-controller;
    #gpio-cells = <2>;
    gpio-ranges = <&pinctrl 0 208 36>;
    ngpios = <36>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Aspeed SGPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/aspeed,sgpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Andrew Jeffery <andrew@aj.id.au>"

This SGPIO controller is for ASPEED AST2400, AST2500, AST2600 and AST2700 SoC, AST2700 have two sgpio master both with 256 pins, AST2600 have two sgpio master one with 128 pins another one with 80 pins, AST2500/AST2400 have one sgpio master with 80 pins. Each of the Serial GPIO pins can be programmed to support the following options - Support interrupt option for each input port and various interrupt sensitivity option (level-high, level-low, edge-high, edge-low) - Support reset tolerance option for each output port - Directly connected to APB bus and its shift clock is from APB bus clock divided by a programmable value. - Co-work with external signal-chained TTL components (74LV165/74LV595)

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "aspeed,ast2400-sgpio", "aspeed,ast2500-sgpio", "aspeed,ast2600-sgpiom", "aspeed,ast2700-sgpiom"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 160

Maximum number of items (maxItems): 256

#gpio-cells — required here #

Exact value (const): 2

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

clocks — required here #

Maximum number of items (maxItems): 1

ngpios — required here #

true — No constraints added by this property rule.

bus-frequency — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "interrupts", "interrupt-controller", "#interrupt-cells", "ngpios", "clocks", "bus-frequency"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/aspeed-clock.h>
sgpio: sgpio@1e780200 {
    #gpio-cells = <2>;
    compatible = "aspeed,ast2500-sgpio";
    gpio-controller;
    interrupts = <40>;
    reg = <0x1e780200 0x0100>;
    clocks = <&syscon ASPEED_CLK_APB>;
    interrupt-controller;
    #interrupt-cells = <2>;
    ngpios = <80>;
    bus-frequency = <12000000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 38: Each SGPIO is represented as a pair of input and output GPIOs

Microchip GPIO controller (PIO)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/atmel,at91rm9200-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Manikandan Muralidharan <manikandan.m@microchip.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "atmel,at91sam9x5-gpio", "microchip,sam9x60-gpio"

Item 2

Exact value (const): "atmel,at91rm9200-gpio"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "microchip,sam9x7-gpio"

Item 2

Exact value (const): "microchip,sam9x60-gpio"

Item 3

Exact value (const): "atmel,at91rm9200-gpio"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "atmel,at91rm9200-gpio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

clocks — required here #

Maximum number of items (maxItems): 1

#gpio-lines — not listed as required here #

Number of gpio, 32 by default if absent

Maximum number of items (maxItems): 1

Default value (default): 32

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-controller", "#interrupt-cells", "gpio-controller", "#gpio-cells", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>

gpio@fffff400 {
    compatible = "atmel,at91rm9200-gpio";
    reg = <0xfffff400 0x200>;
    interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
    #gpio-cells = <2>;
    gpio-controller;
    interrupt-controller;
    #interrupt-cells = <2>;
    clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Blaize BLZP1600 GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/blaize,blzp1600-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Blaize BLZP1600 GPIO controller is an implementation of the VeriSilicon APB GPIO v0.2 IP block. It has 32 ports each of which are intended to be represented as child nodes with the generic GPIO-controller properties as described in this binding's file.

Maintainers (maintainers): "Nikolaos Pasaloukos <nikolaos.pasaloukos@blaize.com>", "James Cowgill <james.cowgill@blaize.com>", "Matt Redfearn <matt.redfearn@blaize.com>", "Neil Jones <neil.jones@blaize.com>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpio@[0-9a-f]+$"

compatible — required here #

Allowed values (enum): "blaize,blzp1600-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

ngpios — not listed as required here #

Default value (default): 32

Minimum value (minimum): 1

Maximum value (maximum): 32

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

gpio-line-names — not listed as required here #

true — No constraints added by this property rule.

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells"

Property dependencies (dependencies) #

interrupt-controller — applies when this property is present #

Also requires: "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

gpio: gpio@4c0000 {
  compatible = "blaize,blzp1600-gpio";
  reg = <0x004c0000 0x1000>;
  gpio-controller;
  #gpio-cells = <2>;
  ngpios = <32>;
  interrupt-controller;
  #interrupt-cells = <2>;
  interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Broadcom BCM63xx GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/brcm,bcm63xx-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Álvaro Fernández Rojas <noltari@gmail.com>", "Jonas Gorski <jonas.gorski@gmail.com>"

Bindings for Broadcom's BCM63xx memory-mapped GPIO controllers.

These bindings can be used on any BCM63xx SoC. However, BCM6338 and BCM6345 are the only ones which don't need a pinctrl driver.

BCM6338 have 8-bit data and dirout registers, where GPIO state can be read and/or written, and the direction changed from input to output. BCM6318, BCM6328, BCM6358, BCM6362, BCM6368 and BCM63268 have 32-bit data and dirout registers, where GPIO state can be read and/or written, and the direction changed from input to output.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "brcm,bcm6318-gpio", "brcm,bcm6328-gpio", "brcm,bcm6358-gpio", "brcm,bcm6362-gpio", "brcm,bcm6368-gpio", "brcm,bcm63268-gpio"

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

gpio-ranges — not listed as required here #

Maximum number of items (maxItems): 1

native-endian — not listed as required here #

true — No constraints added by this property rule.

reg — required here #

Maximum number of items (maxItems): 2

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "dirout"

Item 2

Exact value (const): "dat"

Required in this object (required): "compatible", "reg", "reg-names", "gpio-controller", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@0 {
  compatible = "brcm,bcm63268-gpio";
  reg-names = "dirout", "dat";
  reg = <0x0 0x8>, <0x8 0x8>;

  gpio-controller;
  gpio-ranges = <&pinctrl 0 0 52>;
  #gpio-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Broadcom STB "UPG GIO" GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/brcm,brcmstb-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The controller's registers are organized as sets of eight 32-bit registers with each set controlling a bank of up to 32 pins. A single interrupt is shared for all of the banks handled by the controller.

Maintainers (maintainers): "Doug Berger <opendmb@gmail.com>", "Florian Fainelli <f.fainelli@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "brcm,bcm7445-gpio"

Item 2

Exact value (const): "brcm,brcmstb-gpio"

reg — required here #

Maximum number of items (maxItems): 1

Define the base and range of the I/O address space containing the brcmstb GPIO controller registers

#gpio-cells — required here #

Exact value (const): 2

The first cell is the pin number (within the controller's pin space), and the second is used for the following: bit[0]: polarity (0 for active-high, 1 for active-low)

gpio-controller — required here #

true — No constraints added by this property rule.

brcm,gpio-bank-widths — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Number of GPIO lines for each bank. Number of elements must correspond to number of banks suggested by the 'reg' property.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

The interrupt shared by all GPIO lines for this controller.

#interrupt-cells — not listed as required here #

Exact value (const): 2

The first cell is the GPIO number, the second should specify
flags.  The following subset of flags is supported:
- bits[3:0] trigger type and level flags
  1 = low-to-high edge triggered
  2 = high-to-low edge triggered
  4 = active high level-sensitive
  8 = active low level-sensitive
Valid combinations are 1, 2, 3, 4, 8.

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

gpio-ranges — not listed as required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 128

wakeup-source — not listed as required here #

Value type (type): "boolean"

GPIOs for this controller can be used as a wakeup source

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "brcm,gpio-bank-widths"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

upg_gio: gpio@f040a700 {
    #gpio-cells = <2>;
    #interrupt-cells = <2>;
    compatible = "brcm,bcm7445-gpio", "brcm,brcmstb-gpio";
    gpio-controller;
    interrupt-controller;
    reg = <0xf040a700 0x80>;
    interrupt-parent = <&irq0_intc>;
    interrupts = <0x6>;
    brcm,gpio-bank-widths = <32 32 32 24>;
    gpio-ranges = <&pinctrl 0 0 120>;
};

upg_gio_aon: gpio@f04172c0 {
    #gpio-cells = <2>;
    #interrupt-cells = <2>;
    compatible = "brcm,bcm7445-gpio", "brcm,brcmstb-gpio";
    gpio-controller;
    interrupt-controller;
    reg = <0xf04172c0 0x40>;
    interrupt-parent = <&irq0_aon_intc>;
    interrupts = <0x6>;
    wakeup-source;
    brcm,gpio-bank-widths = <18 4>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Broadcom Kona family GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/brcm,kona-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Broadcom GPIO Controller IP can be configured prior to synthesis to support up to 8 banks of 32 GPIOs where each bank has its own IRQ. The GPIO controller only supports edge, not level, triggering of interrupts.

Maintainers (maintainers): "Ray Jui <rjui@broadcom.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "brcm,bcm11351-gpio", "brcm,bcm21664-gpio", "brcm,bcm23550-gpio"

Item 2

Exact value (const): "brcm,kona-gpio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 6

The interrupt outputs from the controller. There is one GPIO interrupt per GPIO bank. The number of interrupts listed depends on the number of GPIO banks on the SoC. The interrupts must be ordered by bank, starting with bank 0. There is always a 1:1 mapping between banks and IRQs.

#gpio-cells — required here #

Exact value (const): 2

#interrupt-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

interrupt-controller — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "interrupts", "#gpio-cells", "#interrupt-cells", "gpio-controller", "interrupt-controller"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "brcm,bcm11351-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 6

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "brcm,bcm21664-gpio", "brcm,bcm23550-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 4

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

gpio@35003000 {
    compatible = "brcm,bcm11351-gpio", "brcm,kona-gpio";
    reg = <0x35003000 0x800>;
    interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
    #gpio-cells = <2>;
    #interrupt-cells = <2>;
    gpio-controller;
    interrupt-controller;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Broadcom XGS iProc GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/brcm,xgs-iproc-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Chris Packham <chris.packham@alliedtelesis.co.nz>"

This controller is the Chip Common A GPIO present on a number of Broadcom switch ASICs with integrated SoCs.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "brcm,iproc-gpio-cca"

reg — required here #

Array item rules (items) #

Item 1

the I/O address containing the GPIO controller registers.

Item 2

the I/O address containing the Chip Common A interrupt registers.

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

ngpios — not listed as required here #

Minimum value (minimum): 0

Maximum value (maximum): 32

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Property dependencies (dependencies) #

interrupt-controller — applies when this property is present #

Also requires: "interrupts"

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
gpio@18000060 {
    compatible = "brcm,iproc-gpio-cca";
    #gpio-cells = <2>;
    reg = <0x18000060 0x50>,
          <0x18000000 0x50>;
    ngpios = <12>;
    gpio-controller;
    interrupt-controller;
    #interrupt-cells = <2>;
    interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Cavium Octeon 3860 GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/cavium,octeon-3860-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Bartosz Golaszewski <brgl@bgdev.pl>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cavium,octeon-3860-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

interrupts — required here #

Maximum number of items (maxItems): 16

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "interrupt-controller", "#interrupt-cells", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

bus {
    #address-cells = <2>;
    #size-cells = <2>;

    gpio@1070000000800 {
        compatible = "cavium,octeon-3860-gpio";
        reg = <0x10700 0x00000800 0x0 0x100>;
        gpio-controller;
        #gpio-cells = <2>;
        interrupt-controller;
        #interrupt-cells = <2>;
        /* The GPIO pin connect to 16 consecutive CUI bits */
        interrupts = <0 16>, <0 17>, <0 18>, <0 19>,
                    <0 20>, <0 21>, <0 22>, <0 23>,
                    <0 24>, <0 25>, <0 26>, <0 27>,
                    <0 28>, <0 29>, <0 30>, <0 31>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Cadence GPIO Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/cdns,gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jan Kotas <jank@cadence.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "cdns,gpio-r1p02"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "axiado,ax3000-gpio"

Item 2

Exact value (const): "cdns,gpio-r1p02"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

ngpios — not listed as required here #

Minimum value (minimum): 1

Maximum value (maximum): 32

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

- First cell is the GPIO line number.
- Second cell is flags as defined in <dt-bindings/gpio/gpio.h>,
  only GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW supported.

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

- First cell is the GPIO line number used as IRQ.
- Second cell is the trigger type, as defined in
  <dt-bindings/interrupt-controller/irq.h>.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "gpio-controller", "#gpio-cells"

Condition (if) #

Required in this object (required): "interrupt-controller"

When the condition matches (then) #

Required in this object (required): "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
gpio0: gpio-controller@fd060000 {
    compatible = "cdns,gpio-r1p02";
    reg = <0xfd060000 0x1000>;
    clocks = <&gpio_clk>;

    interrupt-parent = <&gic>;
    interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;

    gpio-controller;
    #gpio-cells = <2>;

    interrupt-controller;
    #interrupt-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

ARM Cirrus Logic CLPS711X SYSFLG1 MCTRL GPIOs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/cirrus,clps711x-mctrl-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alexander Shiyan <shc_work@mail.ru>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "cirrus,ep7312-mctrl-gpio"

Item 2

Exact value (const): "cirrus,ep7209-mctrl-gpio"

Rule 2

Exact value (const): "cirrus,ep7209-mctrl-gpio"

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

gpio,syscon-dev — not listed as required here #

Phandle and offset of device's specific registers within the syscon state control registers

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to syscon

Item 2

register offset within state control registers

Required in this object (required): "compatible", "gpio-controller", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

sysgpio: sysgpio {
    compatible = "cirrus,ep7312-mctrl-gpio",
                 "cirrus,ep7209-mctrl-gpio";
    gpio-controller;
    #gpio-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Delta Networks TN48M CPLD GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/delta,tn48m-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Robert Marko <robert.marko@sartura.hr>"

This module is part of the Delta TN48M multi-function device. For more details see ../mfd/delta,tn48m-cpld.yaml.

Delta TN48M has an onboard Lattice CPLD that is used as an GPIO expander. It provides 12 pins in total, they are input-only or ouput-only type.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "delta,tn48m-gpo", "delta,tn48m-gpi"

reg — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

XRA1403 16-bit GPIO Expander with Reset Input

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/exar,xra1403.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Nandor Han <nandor.han@ge.com>"

The XRA1403 is an 16-bit GPIO expander with an SPI interface. Features available:

  - Individually programmable inputs:
      - Internal pull-up resistors
      - Polarity inversion
      - Individual interrupt enable
      - Rising edge and/or Falling edge interrupt
      - Input filter
  - Individually programmable outputs:
      - Output Level Control
      - Output Three-State Control

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "exar,xra1403"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

reset-gpios — not listed as required here #

Control line for the device reset.

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    gpio@2 {
        compatible = "exar,xra1403";
        reg = <2>;
        spi-max-frequency = <1000000>;
        gpio-controller;
        #gpio-cells = <2>;
        interrupt-controller;
        #interrupt-cells = <2>;
        reset-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Generic 8-bit shift register

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/fairchild,74hc595.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

NOTE: These chips nominally don't have a chip select pin. They do however have a rising-edge triggered latch clock (or storage register clock) pin, which behaves like an active-low chip select.

After the bits are shifted into the shift register, CS# is driven high, which
the 74HC595 sees as a rising edge on the latch clock that results in a
transfer of the bits from the shift register to the storage register and thus
to the output pins.
                    _   _       _   _
shift clock    ____| |_| |_..._| |_| |_________
latch clock                           * trigger
               ___                     ________
chip select#      |___________________|

Maintainers (maintainers): "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fairchild,74hc595", "nxp,74lvc594"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

The second cell is only used to specify the GPIO polarity.

Exact value (const): 2

registers-number — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Number of daisy-chained shift registers

enable-gpios — not listed as required here #

GPIO connected to the OE (Output Enable) pin.

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

^(hog-[0-9]+|.+-hog(-[0-9]+)?)$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "registers-number"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    gpio5@0 {
        compatible = "fairchild,74hc595";
        reg = <0>;
        gpio-controller;
        #gpio-cells = <2>;
        registers-number = <4>;
        spi-max-frequency = <100000>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Faraday Technology FTGPIO010 GPIO Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/faraday,ftgpio010.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "cortina,gemini-gpio"

Item 2

Exact value (const): "faraday,ftgpio010"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "moxa,moxart-gpio"

Item 2

Exact value (const): "faraday,ftgpio010"

Rule 3

Exact value (const): "faraday,ftgpio010"

reg — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Should contain the interrupt line for the GPIO block

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

Required in this object (required): "compatible", "reg", "interrupts", "#gpio-cells", "interrupt-controller", "#interrupt-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
gpio@4d000000 {
  compatible = "cortina,gemini-gpio", "faraday,ftgpio010";
  reg = <0x4d000000 0x100>;
  interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
  gpio-controller;
  #gpio-cells = <2>;
  interrupt-controller;
  #interrupt-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

GPIO driver over IMX SCU firmware API

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/fsl,imx8qxp-sc-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shenwei Wang <shenwei.wang@nxp.com>"

This module provides the standard interface to control the resource pins in SCU domain on i.MX8 platforms.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx8qxp-sc-gpio"

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "#gpio-cells", "gpio-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio0: gpio {
    compatible = "fsl,imx8qxp-sc-gpio";
    gpio-controller;
    #gpio-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Freescale MPC512x/MPC8xxx/QorIQ/Layerscape GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/fsl,qoriq-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,mpc5121-gpio", "fsl,mpc5125-gpio", "fsl,mpc8314-gpio", "fsl,mpc8349-gpio", "fsl,mpc8572-gpio", "fsl,mpc8610-gpio", "fsl,pq3-gpio"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,ls1021a-gpio", "fsl,ls1028a-gpio", "fsl,ls1043a-gpio", "fsl,ls1046a-gpio", "fsl,ls1088a-gpio", "fsl,ls2080a-gpio"

Item 2

Exact value (const): "fsl,qoriq-gpio"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "fsl,mpc8308-gpio", "fsl,mpc8377-gpio", "fsl,mpc8378-gpio", "fsl,mpc8379-gpio"

Item 2

Exact value (const): "fsl,mpc8349-gpio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

little-endian — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

GPIO registers are used as little endian. If not present registers are used as big endian by default.

Required in this object (required): "compatible", "reg", "interrupts", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@1100 {
    compatible = "fsl,mpc5125-gpio";
    reg = <0x1100 0x080>;
    interrupts = <78 0x8>;
    gpio-controller;
    #gpio-cells = <2>;
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
gpio@2300000 {
    compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
    reg = <0x2300000 0x10000>;
    interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
    little-endian;
    gpio-controller;
    #gpio-cells = <2>;
    interrupt-controller;
    #interrupt-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Freescale i.MX/MXC GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/fsl-imx-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>", "Fabio Estevam <festevam@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,imx1-gpio", "fsl,imx21-gpio", "fsl,imx31-gpio", "fsl,imx35-gpio", "fsl,imx7d-gpio"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx27-gpio"

Item 2

Exact value (const): "fsl,imx21-gpio"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "fsl,imx35-gpio"

Item 2

Exact value (const): "fsl,imx31-gpio"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx25-gpio"

Item 2

Exact value (const): "fsl,imx35-gpio"

Rule 5

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx50-gpio", "fsl,imx51-gpio", "fsl,imx53-gpio", "fsl,imx6q-gpio", "fsl,imx6sl-gpio", "fsl,imx6sll-gpio", "fsl,imx6sx-gpio", "fsl,imx6ul-gpio", "fsl,imx7d-gpio", "fsl,imx8dxl-gpio", "fsl,imx8mm-gpio", "fsl,imx8mn-gpio", "fsl,imx8mp-gpio", "fsl,imx8mq-gpio", "fsl,imx8qm-gpio", "fsl,imx8qxp-gpio", "fsl,imxrt1050-gpio", "fsl,imxrt1170-gpio"

Item 2

Exact value (const): "fsl,imx35-gpio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Should be the port interrupt shared by all 32 pins, if one number. If two numbers, the first one is the interrupt shared by low 16 pins and the second one is for high 16 pins.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

clocks — not listed as required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

true — No constraints added by this property rule.

gpio-ranges — not listed as required here #

true — No constraints added by this property rule.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

^(hog-[0-9]+|.+-hog(-[0-9]+)?)$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-controller", "#interrupt-cells", "#gpio-cells", "gpio-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio0: gpio@73f84000 {
    compatible = "fsl,imx35-gpio";
    reg = <0x73f84000 0x4000>;
    interrupts = <50 51>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupt-controller;
    #interrupt-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Fujitsu MB86S7x GPIO Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/fujitsu,mb86s70-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jassi Brar <jaswinder.singh@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "socionext,synquacer-gpio"

Item 2

Exact value (const): "fujitsu,mb86s70-gpio"

Rule 2

Exact value (const): "fujitsu,mb86s70-gpio"

reg — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

true — No constraints added by this property rule.

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-controller", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@31000000 {
    compatible = "fujitsu,mb86s70-gpio";
    reg = <0x31000000 0x10000>;
    gpio-controller;
    #gpio-cells = <2>;
    clocks = <&clk 0 2 1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Common GPIO lines

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-consumer-common.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Bartosz Golaszewski <brgl@bgdev.pl>", "Linus Walleij <linusw@kernel.org>"

Pay attention to using proper GPIO flag (e.g. GPIO_ACTIVE_LOW) for the GPIOs using inverted signal (e.g. RESETN).

Automatic schema selection (select) #

true

This selection rule always matches.

Properties and child nodes (properties) #

enable-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO connected to the enable control pin.

reset-gpios — not listed as required here #

GPIO (or GPIOs for power sequence) connected to the device reset pin (e.g. RESET or RESETN).

powerdown-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO connected to the power down pin (hardware power down or power cut, e.g. PD or PWDN).

pwdn-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Use powerdown-gpios

Deprecated (deprecated): true

wakeup-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO connected to the pin waking up the device from suspend or other power-saving modes.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "mmc-pwrseq-simple"

When the condition matches (then) #

Properties and child nodes (properties)

reset-gpios — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

When the condition does not match (else) #

Properties and child nodes (properties)

reset-gpios — not listed as required here

Maximum number of items (maxItems): 1

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

GPIO controller for Davinci and keystone devices

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-davinci.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Keerthy <j-keerthy@ti.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "ti,k2g-gpio", "ti,am654-gpio", "ti,j721e-gpio", "ti,am64-gpio"

Item 2

Exact value (const): "ti,keystone-gpio"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ti,dm6441-gpio", "ti,keystone-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-ranges — not listed as required here #

true — No constraints added by this property rule.

gpio-reserved-ranges — not listed as required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

strings describing the names of each gpio line.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 144

#gpio-cells — required here #

Exact value (const): 2

first cell is the pin number and second cell is used to specify optional parameters (unused).

interrupts — required here #

The interrupts are specified as per the interrupt parent. Only banked or unbanked IRQs are supported at a time. If the interrupts are banked then provide list of interrupts corresponding to each bank, else provide the list of interrupts for each gpio.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 100

ti,ngpio — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The number of GPIO pins supported consecutively.

Minimum value (minimum): 1

ti,davinci-gpio-unbanked — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The number of GPIOs that have an individual interrupt line to processor.

Minimum value (minimum): 0

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "gpio"

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

#interrupt-cells — not listed as required here #

Exact value (const): 2

Properties matching a name pattern (patternProperties) #

^(.+-hog(-[0-9]+)?)$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "interrupts", "ti,ngpio", "ti,davinci-gpio-unbanked", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include<dt-bindings/interrupt-controller/arm-gic.h>

gpio0: gpio@2603000 {
  compatible = "ti,k2g-gpio", "ti,keystone-gpio";
  reg = <0x02603000 0x100>;
  gpio-controller;
  #gpio-cells = <2>;
  interrupts = <GIC_SPI 432 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 433 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 434 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 435 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 436 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 437 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 438 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 439 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 440 IRQ_TYPE_EDGE_RISING>;
  interrupt-controller;
  #interrupt-cells = <2>;
  ti,ngpio = <144>;
  ti,davinci-gpio-unbanked = <0>;
  clocks = <&k2g_clks 0x001b 0x0>;
  clock-names = "gpio";
};
#include<dt-bindings/interrupt-controller/arm-gic.h>

gpio1: gpio@260bf00 {
  compatible = "ti,keystone-gpio";
  reg = <0x0260bf00 0x100>;
  gpio-controller;
  #gpio-cells = <2>;
  /* HW Interrupts mapped to GPIO pins */
  interrupts = <GIC_SPI 120 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 121 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 122 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 123 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 124 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 125 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 126 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 127 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 129 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 130 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 131 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 132 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 133 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 134 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 135 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 136 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 137 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 138 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 139 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 140 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 141 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 142 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 143 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 144 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 145 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 146 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 147 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 148 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 149 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 150 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 151 IRQ_TYPE_EDGE_RISING>;
  clocks = <&clkgpio>;
  clock-names = "gpio";
  ti,ngpio = <32>;
  ti,davinci-gpio-unbanked = <32>;
};
wkup_gpio0: gpio0@42110000 {
  compatible = "ti,am654-gpio", "ti,keystone-gpio";
  reg = <0x42110000 0x100>;
  gpio-controller;
  #gpio-cells = <2>;
  interrupt-parent = <&intr_wkup_gpio>;
  interrupts = <60>, <61>, <62>, <63>;
  interrupt-controller;
  #interrupt-cells = <2>;
  ti,ngpio = <56>;
  ti,davinci-gpio-unbanked = <0>;
  clocks = <&k3_clks 59 0>;
  clock-names = "gpio";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

GPIO delay controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-delay.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alexander Stein <linux@ew.tq-group.com>"

This binding describes an electrical setup where setting an GPIO output is delayed by some external setup, e.g. RC circuit.

+----------+                    +-----------+
|          |             VCC_B  |           |
|          |              |     |           |
|          | VCC_A        _     |           |
|  GPIO    |             | | R  |  Consumer |
|controller|        ___  |_|    |           |
|          |       |   |  |     |           |
|      [IOx|-------|   |--+-----|-----+     |
|          |       |___|  |     |   input   |
|          |              |     |           |
+----------+             --- C  +-----------+
                         ---
                          |
                          -
                         GND

If the input on the consumer is controlled by an open-drain signal attached to an RC circuit the ramp-up delay is not under control of the GPIO controller.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "gpio-delay"

#gpio-cells — required here #

Specifies the pin, ramp-up and ramp-down delays. The delays are specified in microseconds.

Exact value (const): 3

gpios — required here #

Array of GPIOs which output signal change is delayed

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

Required in this object (required): "compatible", "#gpio-cells", "gpio-controller", "gpios"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

enable_delay: enable-delay {
    compatible = "gpio-delay";
    #gpio-cells = <3>;
    gpio-controller;
    gpios = <&gpio0 3 GPIO_ACTIVE_LOW>,
            <&gpio3 1 GPIO_ACTIVE_HIGH>;
};

consumer {
    enable-gpios = <&enable_delay 0 130000 30000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

EP93xx GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-ep9301.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>", "Bartosz Golaszewski <brgl@bgdev.pl>", "Nikita Shubin <nikita.shubin@maquefel.me>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "cirrus,ep9301-gpio"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "cirrus,ep9302-gpio", "cirrus,ep9307-gpio", "cirrus,ep9312-gpio", "cirrus,ep9315-gpio"

Item 2

Exact value (const): "cirrus,ep9301-gpio"

reg — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

data register

Item 2

direction register

Item 3

interrupt registers base

reg-names — not listed as required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "data"

Item 2

Exact value (const): "dir"

Item 3

Exact value (const): "intr"

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-ranges — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

interrupts — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Maximum number of items (maxItems): 1

Rule 2

port F has dedicated irq line for each gpio line

Maximum number of items (maxItems): 8

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@80840000 {
  compatible = "cirrus,ep9301-gpio";
  reg = <0x80840000 0x04>,
        <0x80840010 0x04>,
        <0x80840090 0x1c>;
  reg-names = "data", "dir", "intr";
  gpio-controller;
  #gpio-cells = <2>;
  interrupt-controller;
  #interrupt-cells = <2>;
  interrupt-parent = <&vic1>;
  interrupts = <27>;
};

gpio@80840004 {
  compatible = "cirrus,ep9301-gpio";
  reg = <0x80840004 0x04>,
        <0x80840014 0x04>,
        <0x808400ac 0x1c>;
  reg-names = "data", "dir", "intr";
  gpio-controller;
  #gpio-cells = <2>;
  interrupt-controller;
  #interrupt-cells = <2>;
  interrupt-parent = <&vic1>;
  interrupts = <27>;
};

gpio@80840008 {
  compatible = "cirrus,ep9301-gpio";
  reg = <0x80840008 0x04>,
        <0x80840018 0x04>;
  reg-names = "data", "dir";
  gpio-controller;
  #gpio-cells = <2>;
};

gpio@8084000c {
  compatible = "cirrus,ep9301-gpio";
  reg = <0x8084000c 0x04>,
        <0x8084001c 0x04>;
  reg-names = "data", "dir";
  gpio-controller;
  #gpio-cells = <2>;
};

gpio@80840020 {
  compatible = "cirrus,ep9301-gpio";
  reg = <0x80840020 0x04>,
        <0x80840024 0x04>;
  reg-names = "data", "dir";
  gpio-controller;
  #gpio-cells = <2>;
};

gpio@80840030 {
  compatible = "cirrus,ep9301-gpio";
  reg = <0x80840030 0x04>,
        <0x80840034 0x04>,
        <0x8084004c 0x1c>;
  reg-names = "data", "dir", "intr";
  gpio-controller;
  #gpio-cells = <2>;
  interrupt-controller;
  #interrupt-cells = <2>;
  interrupts-extended = <&vic0 19>, <&vic0 20>,
                        <&vic0 21>, <&vic0 22>,
                        <&vic1 15>, <&vic1 16>,
                        <&vic1 17>, <&vic1 18>;
};

gpio@80840038 {
  compatible = "cirrus,ep9301-gpio";
  reg = <0x80840038 0x04>,
        <0x8084003c 0x04>;
  reg-names = "data", "dir";
  gpio-controller;
  #gpio-cells = <2>;
};

gpio@80840040 {
  compatible = "cirrus,ep9301-gpio";
  reg = <0x80840040 0x04>,
        <0x80840044 0x04>;
  reg-names = "data", "dir";
  gpio-controller;
  #gpio-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

GPIO latch controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-latch.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sascha Hauer <s.hauer@pengutronix.de>"

This binding describes a GPIO multiplexer based on latches connected to other GPIOs, like this:

CLK0 ----------------------.        ,--------.
CLK1 -------------------.  `--------|>    #0 |
                        |           |        |
OUT0 ----------------+--|-----------|D0    Q0|-----|<
OUT1 --------------+-|--|-----------|D1    Q1|-----|<
OUT2 ------------+-|-|--|-----------|D2    Q2|-----|<
OUT3 ----------+-|-|-|--|-----------|D3    Q3|-----|<
OUT4 --------+-|-|-|-|--|-----------|D4    Q4|-----|<
OUT5 ------+-|-|-|-|-|--|-----------|D5    Q5|-----|<
OUT6 ----+-|-|-|-|-|-|--|-----------|D6    Q6|-----|<
OUT7 --+-|-|-|-|-|-|-|--|-----------|D7    Q7|-----|<
       | | | | | | | |  |           `--------'
       | | | | | | | |  |
       | | | | | | | |  |           ,--------.
       | | | | | | | |  `-----------|>    #1 |
       | | | | | | | |              |        |
       | | | | | | | `--------------|D0    Q0|-----|<
       | | | | | | `----------------|D1    Q1|-----|<
       | | | | | `------------------|D2    Q2|-----|<
       | | | | `--------------------|D3    Q3|-----|<
       | | | `----------------------|D4    Q4|-----|<
       | | `------------------------|D5    Q5|-----|<
       | `--------------------------|D6    Q6|-----|<
       `----------------------------|D7    Q7|-----|<
                                    `--------'

The number of clk-gpios and latched-gpios is not fixed. The actual number of number of latches and the number of inputs per latch is derived from the number of GPIOs given in the corresponding device tree properties.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "gpio-latch"

#gpio-cells — required here #

Exact value (const): 2

clk-gpios — required here #

Array of GPIOs to be used to clock a latch

latched-gpios — required here #

Array of GPIOs to be used as inputs per latch

setup-duration-ns — not listed as required here #

Delay in nanoseconds to wait after the latch inputs have been set up

clock-duration-ns — not listed as required here #

Delay in nanoseconds to wait between clock output changes

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "#gpio-cells", "gpio-controller", "clk-gpios", "latched-gpios"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio-latch {
    #gpio-cells = <2>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_di_do_leds>;
    compatible = "gpio-latch";
    gpio-controller;
    setup-duration-ns = <100>;
    clock-duration-ns = <100>;

    clk-gpios = <&gpio3 7 0>, <&gpio3 8 0>;
    latched-gpios = <&gpio3 21 0>, <&gpio3 22 0>,
                   <&gpio3 23 0>, <&gpio3 24 0>,
                   <&gpio3 25 0>, <&gpio3 26 0>,
                   <&gpio3 27 0>, <&gpio3 28 0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

GPIO line mux

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-line-mux.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jonas Jelonek <jelonek.jonas@gmail.com>"

A GPIO controller to provide virtual GPIOs for a 1-to-many input-only mapping backed by a single shared GPIO and a multiplexer. A simple illustrated example is:

          +----- A
  IN     /
  <-----o------- B
      / |\
      | | +----- C
      | |  \
      | |   +--- D
      | |
     M1 M0
  MUX CONTROL
   M1 M0   IN
    0  0   A
    0  1   B
    1  0   C
    1  1   D

This can be used in case a real GPIO is connected to multiple inputs and controlled by a multiplexer, and another subsystem/driver does not work directly with the multiplexer subsystem.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "gpio-line-mux"

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — not listed as required here #

Exact value (const): 2

gpio-line-mux-states — required here #

Mux states corresponding to the virtual GPIOs.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

gpio-line-names — not listed as required here #

true — No constraints added by this property rule.

mux-controls — required here #

Maximum number of items (maxItems): 1

Phandle to the multiplexer to control access to the GPIOs.

ngpios — not listed as required here #

false — Not permitted by this property rule.

muxed-gpios — required here #

Maximum number of items (maxItems): 1

GPIO which is the '1' in 1-to-many and is shared by the virtual GPIOs and controlled via the mux.

Required in this object (required): "compatible", "gpio-controller", "gpio-line-mux-states", "mux-controls", "muxed-gpios"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/mux/mux.h>

sfp_gpio_mux: mux-controller-1 {
    compatible = "gpio-mux";
    mux-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>,
                <&gpio0 1 GPIO_ACTIVE_HIGH>;
    #mux-control-cells = <0>;
    idle-state = <MUX_IDLE_AS_IS>;
};

sfp1_gpio: sfp-gpio-1 {
    compatible = "gpio-line-mux";
    gpio-controller;
    #gpio-cells = <2>;

    mux-controls = <&sfp_gpio_mux>;
    muxed-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;

    gpio-line-mux-states = <0>, <1>, <3>;
};

sfp1: sfp-p1 {
    compatible = "sff,sfp";

    i2c-bus = <&sfp1_i2c>;
    los-gpios = <&sfp1_gpio 0 GPIO_ACTIVE_HIGH>;
    mod-def0-gpios = <&sfp1_gpio 1 GPIO_ACTIVE_LOW>;
    tx-fault-gpios = <&sfp1_gpio 2 GPIO_ACTIVE_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Generic MMIO GPIO

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-mmio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>", "Bartosz Golaszewski <brgl@bgdev.pl>"

Some simple GPIO controllers may consist of a single data register or a pair of set/clear-bit registers. Such controllers are common for glue logic in FPGAs or ASICs. Commonly, these controllers are accessed over memory-mapped NAND-style parallel busses.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "brcm,bcm6345-gpio", "intel,ixp4xx-expansion-bus-mmio-gpio", "ni,169445-nand-gpio", "opencores,gpio", "wd,mbl-gpio"

big-endian — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

little-endian — not listed as required here #

true — No constraints added by this property rule.

reg — required here #

Minimum number of items (minItems): 1

A list of registers in the controller. The width of each register is determined by its size. All registers must have the same width. The number of GPIOs is set by the width, with bit 0 corresponding to GPIO 0, unless the ngpios property further restricts the number of used lines.

Array item rules (items) #

Item 1

Register to READ the value of the GPIO lines. If GPIO line is high, the bit will be set. If the GPIO line is low, the bit will be cleared. This register may also be used to drive GPIOs if the SET register is omitted.

Item 2

Register to SET the value of the GPIO lines. Setting a bit in this register will drive the GPIO line high.

Item 3

Register to CLEAR the value of the GPIO lines. Setting a bit in this register will drive the GPIO line low. If this register is omitted, the SET register will be used to clear the GPIO lines as well, by actively writing the line with 0.

Item 4

Register to set the line as OUTPUT. Setting a bit in this register will turn that line into an output line. Conversely, clearing a bit will turn that line into an input.

Item 5

Register to set this line as INPUT. Setting a bit in this register will turn that line into an input line. Conversely, clearing a bit will turn that line into an output.

reg-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

Array item rules (items) #

Allowed values (enum): "dat", "set", "clr", "dirout", "dirin"

native-endian — not listed as required here #

true — No constraints added by this property rule.

ngpios — not listed as required here #

Minimum value (minimum): 1

Maximum value (maximum): 63

If this property is present the number of usable GPIO lines are restricted to the first 0 .. ngpios lines. This is useful when the GPIO MMIO register has 32 bits for GPIO but only the first 12 are actually connected to real electronics, and then we set ngpios to 12.

no-output — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

If this property is present, the controller cannot drive the GPIO lines.

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Exact value (const): "intel,ixp4xx-expansion-bus-mmio-gpio"

When the condition matches (then) #

Shared schema rule ($ref): /schemas/memory-controllers/intel,ixp4xx-expansion-peripheral-props.yaml#

Properties matching a name pattern (patternProperties) #

^.+-hog(-[0-9]+)?$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

Required in this object (required): "compatible", "reg", "reg-names", "#gpio-cells", "gpio-controller"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@1f300010 {
  compatible = "ni,169445-nand-gpio";
  reg = <0x1f300010 0x4>;
  reg-names = "dat";
  gpio-controller;
  #gpio-cells = <2>;
};

gpio@e0100000 {
  compatible = "wd,mbl-gpio";
  reg-names = "dat";
  reg = <0xe0100000 0x1>;
  #gpio-cells = <2>;
  gpio-controller;
  no-output;
};

gpio@fffe0406 {
  compatible = "brcm,bcm6345-gpio";
  reg-names = "dirout", "dat";
  reg = <0xfffe0406 2>, <0xfffe040a 2>;
  ngpios = <15>;
  native-endian;
  gpio-controller;
  #gpio-cells = <2>;
};

bus@c4000000 {
    compatible = "intel,ixp42x-expansion-bus-controller", "syscon";
    reg = <0xc4000000 0x30>;
    native-endian;
    #address-cells = <2>;
    #size-cells = <1>;
    ranges = <0 0x0 0x50000000 0x01000000>;
    dma-ranges = <0 0x0 0x50000000 0x01000000>;
    gpio@1,0 {
        compatible = "intel,ixp4xx-expansion-bus-mmio-gpio";
        gpio-controller;
        #gpio-cells = <2>;
        big-endian;
        reg = <1 0x00000000 0x2>;
        reg-names = "dat";
        intel,ixp4xx-eb-write-enable = <1>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 26: Western Digital MyBook Live memory-mapped GPIO controller

Marvell EBU GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-mvebu.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thomas Petazzoni <thomas.petazzoni@free-electrons.com>", "Andrew Lunn <andrew@lunn.ch>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "marvell,armada-8k-gpio", "marvell,orion-gpio"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "marvell,mv78200-gpio", "marvell,armada-370-gpio"

Item 2

Exact value (const): "marvell,orion-gpio"

Rule 3

Deprecated binding

Array item rules (items)

Item 1

Exact value (const): "marvell,armadaxp-gpio"

Item 2

Exact value (const): "marvell,orion-gpio"

Deprecated (deprecated): true

reg — not listed as required here #

Address and length of the register set for the device. Not used for marvell,armada-8k-gpio.

A second entry can be provided, for the PWM function using the GPIO Blink Counter on/off registers.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reg-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "gpio"

Item 2

Exact value (const): "pwm"

Minimum number of items (minItems): 1

offset — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Offset in the register map for the gpio registers (in bytes)

interrupts — not listed as required here #

The list of interrupts that are used for all the pins managed by this GPIO bank. There can be more than one interrupt (example: 1 interrupt per 8 pins on Armada XP, which means 4 interrupts per bank of 32 GPIOs).

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

ngpios — required here #

Minimum value (minimum): 1

Maximum value (maximum): 32

#gpio-cells — required here #

Exact value (const): 2

gpio-ranges — not listed as required here #

Maximum number of items (maxItems): 1

marvell,pwm-offset — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Offset in the register map for the pwm registers (in bytes)

#pwm-cells — not listed as required here #

The first cell is the GPIO line number. The second cell is the period in nanoseconds.

Exact value (const): 2

clocks — not listed as required here #

Clock(s) used for PWM function.

Array item rules (items) #

Item 1

Core clock

Item 2

AXI bus clock

Minimum number of items (minItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "axi"

Minimum number of items (minItems): 1

Properties matching a name pattern (patternProperties) #

^(.+-hog(-[0-9]+)?)$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

Required in this object (required): "compatible", "gpio-controller", "ngpios", "#gpio-cells"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "marvell,armada-8k-gpio"

When the condition matches (then) #

Required in this object (required): "offset"

When the condition does not match (else) #

Required in this object (required): "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@d0018100 {
  compatible = "marvell,armadaxp-gpio", "marvell,orion-gpio";
  reg = <0xd0018100 0x40>, <0xd0018800 0x30>;
  ngpios = <32>;
  gpio-controller;
  #gpio-cells = <2>;
  interrupt-controller;
  #interrupt-cells = <2>;
  interrupts = <16>, <17>, <18>, <19>;
};
gpio@18140 {
  compatible = "marvell,armada-370-gpio", "marvell,orion-gpio";
  reg = <0x18140 0x40>, <0x181c8 0x08>;
  reg-names = "gpio", "pwm";
  ngpios = <17>;
  gpio-controller;
  #gpio-cells = <2>;
  #pwm-cells = <2>;
  interrupt-controller;
  #interrupt-cells = <2>;
  interrupts = <87>, <88>, <89>;
  clocks = <&coreclk 0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Freescale MXS GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-mxs.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>"

The Freescale MXS GPIO controller is part of MXS PIN controller. The GPIOs are organized in port/bank, each port consists of 32 GPIOs. As the GPIO controller is embedded in the PIN controller and all the GPIO ports share the same IO space with PIN controller, the GPIO node will be represented as sub-nodes of MXS pinctrl node.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "fsl,imx23-pinctrl", "fsl,imx28-pinctrl"

Item 2

Exact value (const): "simple-bus"

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

reg — required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

^(?!gpio@)[^@]+@[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

fsl,pinmux-ids — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

An integer array. Each integer in the array specify a pin with given mux function, with bank, pin and mux packed as below.

[15..12] : bank number [11..4] : pin number [3..0] : mux selection

This integer with mux selection packed is used as an entity by both group and config nodes to identify a pin. The mux selection in the integer takes effects only on group node, and will get ignored by driver with config node, since config node is only meant to set up pin configurations.

Valid values for these integers are listed below.

reg — not listed as required here

Array item rules (items)

Item 1

pin group index. NOTE: it is supposed wrong use reg property here. But it is over 10 years devices. Just keep it as it.

fsl,drive-strength — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3

0: MXS_DRIVE_4mA 1: MXS_DRIVE_8mA 2: MXS_DRIVE_12mA 3: MXS_DRIVE_16mA

fsl,voltage — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

0: MXS_VOLTAGE_LOW - 1.8 V 1: MXS_VOLTAGE_HIGH - 3.3 V

fsl,pull-up — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

0: MXS_PULL_DISABLE - Disable the internal pull-up 1: MXS_PULL_ENABLE - Enable the internal pull-up

Note that when enabling the pull-up, the internal pad keeper gets disabled. Also, some pins doesn't have a pull up, in that case, setting the fsl,pull-up will only disable the internal pad keeper.

Required in this object (required): "fsl,pinmux-ids"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

^gpio@[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

compatible — required here

Allowed values (enum): "fsl,imx23-gpio", "fsl,imx28-gpio"

reg — required here

Maximum number of items (maxItems): 1

interrupts — required here

Should be the port interrupt shared by all 32 pins.

Maximum number of items (maxItems): 1

interrupt-controller — required here

true — No constraints added by this property rule.

#interrupt-cells — required here

Exact value (const): 2

#gpio-cells — required here

Exact value (const): 2

gpio-controller — required here

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-controller", "#interrupt-cells", "#gpio-cells", "gpio-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pinctrl@80018000 {
    #address-cells = <1>;
    #size-cells = <0>;
    compatible = "fsl,imx28-pinctrl", "simple-bus";
    reg = <0x80018000 0x2000>;

    gpio@0 {
        compatible = "fsl,imx28-gpio";
        reg = <0>;
        interrupts = <127>;
        gpio-controller;
        #gpio-cells = <2>;
        interrupt-controller;
        #interrupt-cells = <2>;
    };

    gpio@1 {
        compatible = "fsl,imx28-gpio";
        reg = <1>;
        interrupts = <126>;
        gpio-controller;
        #gpio-cells = <2>;
        interrupt-controller;
        #interrupt-cells = <2>;
    };

    gpio@2 {
        compatible = "fsl,imx28-gpio";
        reg = <2>;
        interrupts = <125>;
        gpio-controller;
        #gpio-cells = <2>;
        interrupt-controller;
        #interrupt-cells = <2>;
    };

    gpio@3 {
        compatible = "fsl,imx28-gpio";
        reg = <3>;
        interrupts = <124>;
        gpio-controller;
        #gpio-cells = <2>;
        interrupt-controller;
        #interrupt-cells = <2>;
    };

    gpio@4 {
        compatible = "fsl,imx28-gpio";
        reg = <4>;
        interrupts = <123>;
        gpio-controller;
        #gpio-cells = <2>;
        interrupt-controller;
        #interrupt-cells = <2>;
    };

    lcdif-apx4@5 {
        reg = <5>;
        fsl,pinmux-ids = <0x1181 0x1191>;
        fsl,drive-strength = <0>;
        fsl,voltage = <0>;
        fsl,pull-up = <0>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 25: Over 10 years old devices, driver use simple-bus to probe child gpio

Line 26: Devices. Keep it as it to be compatible existed dts files.

NXP PCA95xx I2C GPIO multiplexer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-pca95xx.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

Bindings for the family of I2C GPIO multiplexers/expanders: NXP PCA95xx, Maxim MAX73xx

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "toradex,ecgpiol16"

Item 2

Exact value (const): "nxp,pcal6416"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "diodes,pi4ioe5v6534q"

Item 2

Exact value (const): "nxp,pcal6534"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "exar,xra1202", "maxim,max7310", "maxim,max7312", "maxim,max7313", "maxim,max7315", "maxim,max7319", "maxim,max7320", "maxim,max7321", "maxim,max7322", "maxim,max7323", "maxim,max7324", "maxim,max7325", "maxim,max7326", "maxim,max7327", "nxp,pca6408", "nxp,pca6416", "nxp,pca9505", "nxp,pca9506", "nxp,pca9534", "nxp,pca9535", "nxp,pca9536", "nxp,pca9537", "nxp,pca9538", "nxp,pca9539", "nxp,pca9554", "nxp,pca9555", "nxp,pca9556", "nxp,pca9557", "nxp,pca9574", "nxp,pca9575", "nxp,pca9698", "nxp,pcal6408", "nxp,pcal6416", "nxp,pcal6524", "nxp,pcal6534", "nxp,pcal9535", "nxp,pcal9554b", "nxp,pcal9555a", "onnn,cat9554", "onnn,pca9654", "ti,pca6107", "ti,pca9536", "ti,tca6408", "ti,tca6416", "ti,tca6418", "ti,tca6424", "ti,tca9535", "ti,tca9538", "ti,tca9539", "ti,tca9554", "ti,tcal6408", "ti,tcal6416"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 40

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO specification for the RESET input. This is an active low signal to the PCA953x. Not valid for Maxim MAX732x devices.

vcc-supply — not listed as required here #

Optional power supply. Not valid for Maxim MAX732x devices.

wakeup-source — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Properties matching a name pattern (patternProperties) #

^(hog-[0-9]+|.+-hog(-[0-9]+)?)$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "maxim,max7320", "maxim,max7321", "maxim,max7322", "maxim,max7323", "maxim,max7324", "maxim,max7325", "maxim,max7326", "maxim,max7327", "toradex,ecgpiol16"

When the condition matches (then) #

Properties and child nodes (properties)

reset-gpios — not listed as required here

false — Not permitted by this property rule.

vcc-supply — not listed as required here

false — Not permitted by this property rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    gpio@20 {
        compatible = "nxp,pca9505";
        reg = <0x20>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pca9505>;
        gpio-controller;
        #gpio-cells = <2>;
        interrupt-parent = <&gpio3>;
        interrupts = <23 IRQ_TYPE_LEVEL_LOW>;

        usb3-sata-sel-hog {
            gpio-hog;
            gpios = <4 GPIO_ACTIVE_HIGH>;
            output-low;
            line-name = "usb3_sata_sel";
        };
    };
};
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    gpio99: gpio@22 {
        compatible = "nxp,pcal6524";
        reg = <0x22>;
        interrupt-parent = <&gpio6>;
        interrupts = <1 IRQ_TYPE_EDGE_FALLING>; /* gpio6_161 */
        interrupt-controller;
        #interrupt-cells = <2>;
        vcc-supply = <&vdds_1v8_main>;
        gpio-controller;
        #gpio-cells = <2>;
        gpio-line-names = "hdmi-ct-hpd", "hdmi.ls-oe", "p02", "p03",
                          "vibra", "fault2", "p06", "p07", "en-usb",
                          "en-host1", "en-host2", "chg-int", "p14", "p15",
                          "mic-int", "en-modem", "shdn-hs-amp",
                          "chg-status+red", "green", "blue", "en-esata",
                          "fault1", "p26", "p27";
    };
};
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    /* MAX7325 with interrupt support enabled */
    gpio@6d {
        compatible = "maxim,max7325";
        reg = <0x6d>;
        gpio-controller;
        #gpio-cells = <2>;
        interrupt-controller;
        #interrupt-cells = <2>;
        interrupt-parent = <&gpio4>;
        interrupts = <29 IRQ_TYPE_EDGE_FALLING>;
    };
};
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    /* MAX7325 with interrupt support disabled */
    gpio@6e {
        compatible = "maxim,max7325";
        reg = <0x6e>;
        gpio-controller;
        #gpio-cells = <2>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

RDA Micro GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-rda.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "rda,8810pl-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

ngpios — required here #

Number of available gpios in a bank.

Minimum value (minimum): 1

Maximum value (maximum): 32

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "ngpios", "interrupt-controller", "#interrupt-cells", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Lantiq SoC Serial To Parallel (STP) GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-stp-xway.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Serial To Parallel (STP) is found on MIPS based Lantiq socs. It is a peripheral controller used to drive external shift register cascades. At most 3 groups of 8 bits can be driven. The hardware is able to allow the DSL modem and Ethernet PHYs to drive some bytes of the cascade automatically.

Maintainers (maintainers): "John Crispin <john@phrozen.org>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpio@[0-9a-f]+$"

compatible — required here #

Exact value (const): "lantiq,gpio-stp-xway"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

The first cell is the pin number and the second cell is used to specify consumer flags.

Exact value (const): 2

lantiq,shadow — not listed as required here #

The default value that we shall assume as already set on the shift register cascade.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 16777215

lantiq,groups — not listed as required here #

Set the 3 bit mask to select which of the 3 groups are enabled in the shift register cascade.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 7

lantiq,dsl — not listed as required here #

The dsl core can control the 2 LSBs of the gpio cascade. This 2 bit property can enable this feature.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 3

lantiq,rising — not listed as required here #

Use rising instead of falling edge for the shift register.

Value type (type): "boolean"

Properties matching a name pattern (patternProperties) #

^lantiq,phy[1-4]$ — name matches this regular expression #

The gphy core can control 3 bits of the gpio cascade. In the xRX200 family phy[1-2] are available, in xRX330 phy[1-3] and in XRX330 phy[1-4].

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 7

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@e100bb0 {
    compatible = "lantiq,gpio-stp-xway";
    reg = <0xE100BB0 0x40>;
    #gpio-cells = <2>;
    gpio-controller;

    pinctrl-0 = <&stp_pins>;
    pinctrl-names = "default";

    lantiq,shadow = <0xffffff>;
    lantiq,groups = <0x7>;
    lantiq,dsl = <0x3>;
    lantiq,phy1 = <0x7>;
    lantiq,phy2 = <0x7>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Freescale VF610 PORT/GPIO module

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-vf610.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Stefan Agner <stefan@agner.ch>"

The Freescale PORT/GPIO modules are two adjacent modules providing GPIO functionality. Each pair serves 32 GPIOs. The VF610 has 5 instances of each, and each PORT module has its own interrupt.

Note: Each GPIO port should have an alias correctly numbered in "aliases" node.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "fsl,imx8ulp-gpio"

Rule 2

Exact value (const): "fsl,vf610-gpio"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "fsl,imx7ulp-gpio"

Item 2

Exact value (const): "fsl,vf610-gpio"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx93-gpio", "fsl,imx94-gpio", "fsl,imx95-gpio"

Item 2

Exact value (const): "fsl,imx8ulp-gpio"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupts — required here #

Array item rules (items) #

Item 1

GPIO Trustzone non-secure interrupt number

Item 2

GPIO Trustzone secure interrupt number

Minimum number of items (minItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

clocks — not listed as required here #

Array item rules (items) #

Item 1

SoC GPIO clock

Item 2

SoC PORT clock

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "gpio"

Item 2

Exact value (const): "port"

gpio-ranges — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

gpio-reserved-ranges — not listed as required here #

true — No constraints added by this property rule.

ngpios — not listed as required here #

Minimum value (minimum): 1

Maximum value (maximum): 32

Default value (default): 32

Properties matching a name pattern (patternProperties) #

^.+-hog(-[0-9]+)?$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-controller", "#interrupt-cells", "#gpio-cells", "gpio-controller"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,vf610-gpio", "fsl,imx7ulp-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 1

reg — not listed as required here

Array item rules (items)

Item 1

PORT register base address

Item 2

GPIO register base address

When the condition does not match (else) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 2

reg — not listed as required here

Array item rules (items)

Item 1

GPIO register base address

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

gpio1: gpio@40049000 {
    compatible = "fsl,vf610-gpio";
    reg = <0x40049000 0x1000>, <0x400ff000 0x40>;
    interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupt-controller;
    #interrupt-cells = <2>;
    gpio-ranges = <&iomuxc 0 0 32>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Virtio GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-virtio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Viresh Kumar <viresh.kumar@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/virtio/virtio-device.yaml#

Virtio GPIO controller, see /schemas/virtio/virtio-device.yaml for more details.

Properties and child nodes (properties) #

$nodename — not listed as required here #

Exact value (const): "gpio"

compatible — required here #

Exact value (const): "virtio,device29"

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

Required in this object (required): "compatible", "gpio-controller", "#gpio-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

virtio@3000 {
    compatible = "virtio,mmio";
    reg = <0x3000 0x100>;
    interrupts = <41>;

    gpio {
        compatible = "virtio,device29";
        gpio-controller;
        #gpio-cells = <2>;
        interrupt-controller;
        #interrupt-cells = <2>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Xilinx Zynq GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-zynq.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Michal Simek <michal.simek@amd.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "xlnx,zynq-gpio-1.0", "xlnx,zynqmp-gpio-1.0", "xlnx,versal-gpio-1.0", "xlnx,pmc-gpio-1.0"

reg — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

interrupts — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

strings describing the names of each gpio line

Minimum number of items (minItems): 58

Maximum number of items (maxItems): 174

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

clocks — required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "xlnx,zynqmp-gpio-1.0"

When the condition matches (then) #

Properties and child nodes (properties)

gpio-line-names — not listed as required here

Minimum number of items (minItems): 174

Maximum number of items (maxItems): 174

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "xlnx,zynq-gpio-1.0"

When the condition matches (then) #

Properties and child nodes (properties)

gpio-line-names — not listed as required here

Minimum number of items (minItems): 118

Maximum number of items (maxItems): 118

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "xlnx,versal-gpio-1.0"

When the condition matches (then) #

Properties and child nodes (properties)

gpio-line-names — not listed as required here

Minimum number of items (minItems): 58

Maximum number of items (maxItems): 58

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "xlnx,pmc-gpio-1.0"

When the condition matches (then) #

Properties and child nodes (properties)

gpio-line-names — not listed as required here

Minimum number of items (minItems): 116

Maximum number of items (maxItems): 116

Required in this object (required): "compatible", "reg", "#gpio-cells", "interrupts", "gpio-controller", "interrupt-controller", "#interrupt-cells", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@e000a000 {
  #gpio-cells = <2>;
  compatible = "xlnx,zynq-gpio-1.0";
  clocks = <&clkc 42>;
  gpio-controller;
  interrupt-parent = <&intc>;
  interrupts = <0 20 4>;
  interrupt-controller;
  #interrupt-cells = <2>;
  reg = <0xe000a000 0x1000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

HiSilicon common GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/hisilicon,ascend910-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jay Fang <f.fangjian@huawei.com>"

The HiSilicon common GPIO controller can be used for many different types of SoC such as Huawei Ascend AI series chips.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "hisilicon,ascend910-gpio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

ngpios — required here #

Minimum value (minimum): 1

Maximum value (maximum): 32

Required in this object (required): "compatible", "reg", "interrupts", "gpio-controller", "#gpio-cells", "ngpios"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

gpio@840d0000 {
  compatible = "hisilicon,ascend910-gpio";
  reg = <0x840d0000 0x1000>;
  ngpios = <32>;
  gpio-controller;
  #gpio-cells = <2>;
  interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

IDT 79RC32434 GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/idt,32434-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thomas Bogendoerfer <tsbogend@alpha.franken.de>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "idt,32434-gpio"

reg — required here #

Maximum number of items (maxItems): 2

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "gpio"

Item 2

Exact value (const): "pic"

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

ngpios — not listed as required here #

Minimum value (minimum): 1

Maximum value (maximum): 32

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "reg-names", "gpio-controller", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio0: gpio@50004 {
    compatible = "idt,32434-gpio";
    reg = <0x50004 0x10>, <0x38030 0x0c>;
    reg-names = "gpio", "pic";

    interrupt-controller;
    #interrupt-cells = <2>;

    interrupt-parent = <&cpuintc>;
    interrupts = <6>;

    gpio-controller;
    #gpio-cells = <2>;

    ngpios = <14>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Intel IXP4xx XScale Networking Processors GPIO Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/intel,ixp4xx-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

This GPIO controller is found in the Intel IXP4xx processors. It supports 16 GPIO lines. The interrupt portions of the GPIO controller is hierarchical. The synchronous edge detector is part of the GPIO block, but the actual enabling/disabling of the interrupt line is done in the main IXP4xx interrupt controller which has a 1-to-1 mapping for the first 12 GPIO lines to 12 system interrupts. The remaining 4 GPIO lines can not be used for receiving interrupts. The interrupt parent of this GPIO controller must be the IXP4xx interrupt controller. GPIO 14 and 15 can be used as clock outputs rather than GPIO, and this can be enabled by a special flag.

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "intel,ixp4xx-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

intel,ixp4xx-gpio14-clkout — not listed as required here #

If defined, enables clock output on GPIO 14 instead of GPIO.

Value type (type): "boolean"

intel,ixp4xx-gpio15-clkout — not listed as required here #

If defined, enables clock output on GPIO 15 instead of GPIO.

Value type (type): "boolean"

Required in this object (required): "compatible", "reg", "#gpio-cells", "interrupt-controller", "#interrupt-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
gpio@c8004000 {
    compatible = "intel,ixp4xx-gpio";
    reg = <0xc8004000 0x1000>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupt-controller;
    #interrupt-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

GPIO driver for the sl28cpld board management controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/kontron,sl28cpld-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Michael Walle <michael@walle.cc>"

This module is part of the sl28cpld multi-function device. For more details see ../embedded-controller/kontron,sl28cpld.yaml.

There are three flavors of the GPIO controller, one full featured input/output with interrupt support (kontron,sl28cpld-gpio), one output-only (kontron,sl28-gpo) and one input-only (kontron,sl28-gpi).

Each controller supports 8 GPIO lines.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "kontron,sl28cpld-gpio", "kontron,sl28cpld-gpi", "kontron,sl28cpld-gpo"

reg — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

#interrupt-cells — not listed as required here #

Exact value (const): 2

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

Required in this object (required): "compatible", "#gpio-cells", "gpio-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NetxBig GPIO extension bus

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/lacie,netxbig-gpio-ext.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Simon Guinot <simon.guinot@sequanux.org>"

GPIO extension bus found on some LaCie/Seagate boards (Example: 2Big/5Big Network v2, 2Big NAS).

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "lacie,netxbig-gpio-ext"

addr-gpios — required here #

GPIOs representing the address register (LSB->MSB).

Array item rules (items) #

Item 1

bit 0 (LSB)

Item 2

bit 1

Item 3

bit 2 (MSB)

data-gpios — required here #

GPIOs representing the data register (LSB->MSB).

Array item rules (items) #

Item 1

bit 0 (LSB)

Item 2

bit 1

Item 3

bit 2 (MSB)

enable-gpio — required here #

Latches the new configuration (address, data) on raising edge.

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "addr-gpios", "data-gpios", "enable-gpio"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

gpio {
    compatible = "lacie,netxbig-gpio-ext";
    addr-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH
                  &gpio1 16 GPIO_ACTIVE_HIGH
                  &gpio1 17 GPIO_ACTIVE_HIGH>;
    data-gpios = <&gpio1 12 GPIO_ACTIVE_HIGH
                  &gpio1 13 GPIO_ACTIVE_HIGH
                  &gpio1 14 GPIO_ACTIVE_HIGH>;
    enable-gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Lantiq SoC External Bus memory mapped GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/lantiq,gpio-mm-lantiq.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "John Crispin <john@phrozen.org>"

By attaching hardware latches to the EBU it is possible to create output only gpios. This driver configures a special memory address, which when written to outputs 16 bit to the latches.

The node describing the memory mapped GPIOs needs to be a child of the node describing the "lantiq,localbus".

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "lantiq,gpio-mm-lantiq", "lantiq,gpio-mm"

reg — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

lantiq,shadow — not listed as required here #

The default value that we shall assume as already set on the shift register cascade.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@4000000 {
    compatible = "lantiq,gpio-mm-lantiq";
    reg = <0x4000000 0x10>;
    gpio-controller;
    #gpio-cells = <2>;
    lantiq,shadow = <0x77f>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Loongson GPIO controller.

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/loongson,ls-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Yinbo Zhu <zhuyinbo@loongson.cn>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "loongson,ls2k-gpio", "loongson,ls2k0300-gpio", "loongson,ls2k0500-gpio0", "loongson,ls2k0500-gpio1", "loongson,ls2k2000-gpio0", "loongson,ls2k2000-gpio1", "loongson,ls2k2000-gpio2", "loongson,ls3a5000-gpio", "loongson,ls3a6000-gpio", "loongson,ls7a-gpio", "loongson,ls7a2000-gpio1", "loongson,ls7a2000-gpio2"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "loongson,ls2k1000-gpio"

Item 2

Exact value (const): "loongson,ls2k-gpio"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "loongson,ls7a1000-gpio"

Item 2

Exact value (const): "loongson,ls7a-gpio"

reg — required here #

Maximum number of items (maxItems): 1

ngpios — required here #

Minimum value (minimum): 1

Maximum value (maximum): 128

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-ranges — required here #

true — No constraints added by this property rule.

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 64

#interrupt-cells — not listed as required here #

Exact value (const): 2

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "ngpios", "#gpio-cells", "gpio-controller", "gpio-ranges", "interrupts"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "loongson,ls2k0300-gpio"

When the condition matches (then) #

Required in this object (required): "#interrupt-cells", "interrupt-controller", "resets"

When the condition does not match (else) #

Properties and child nodes (properties)

#interrupts-cells — not listed as required here

false — Not permitted by this property rule.

interrupt-controller — not listed as required here

false — Not permitted by this property rule.

resets — not listed as required here

false — Not permitted by this property rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

gpio0: gpio@1fe00500 {
  compatible = "loongson,ls2k1000-gpio", "loongson,ls2k-gpio";
  reg = <0x1fe00500 0x38>;
  ngpios = <64>;
  #gpio-cells = <2>;
  gpio-controller;
  gpio-ranges = <&pctrl 0 0 15>,
                <&pctrl 16 16 15>,
                <&pctrl 32 32 10>,
                <&pctrl 44 44 20>;
  interrupt-parent = <&liointc1>;
  interrupts = <28 IRQ_TYPE_LEVEL_LOW>,
               <29 IRQ_TYPE_LEVEL_LOW>,
               <30 IRQ_TYPE_LEVEL_LOW>,
               <30 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <26 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <>,
               <>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>,
               <27 IRQ_TYPE_LEVEL_LOW>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 24: Loongson-3A6000 node GPIO

Line 26: LS7A2000 chipset GPIO

Line 27: LS7A2000 ACPI GPIO

Zevio GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/lsi,zevio-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Pratik Farkase <pratikfarkase94@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "lsi,zevio-gpio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-controller"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@90000000 {
    compatible = "lsi,zevio-gpio";
    reg = <0x90000000 0x1000>;
    gpio-controller;
    #gpio-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Maxim MAX3191x GPIO serializer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/maxim,max31910.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Lukas Wunner <lukas@wunner.de>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "maxim,max31910", "maxim,max31911", "maxim,max31912", "maxim,max31913", "maxim,max31953", "maxim,max31963"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

#daisy-chained-devices — not listed as required here #

Number of chips in the daisy-chain.

Default value (default): 1

maxim,modesel-gpios — not listed as required here #

GPIO pins to configure modesel of each chip. The number of GPIOs must equal "#daisy-chained-devices" (if each chip is driven by a separate pin) or 1 (if all chips are wired to the same pin).

maxim,fault-gpios — not listed as required here #

GPIO pins to read fault of each chip. The number of GPIOs must equal "#daisy-chained-devices" or 1.

maxim,db0-gpios — not listed as required here #

GPIO pins to configure debounce of each chip. The number of GPIOs must equal "#daisy-chained-devices" or 1.

maxim,db1-gpios — not listed as required here #

GPIO pins to configure debounce of each chip. The number of GPIOs must equal "maxim,db0-gpios".

maxim,modesel-8bit — not listed as required here #

Boolean whether the modesel pin of the chips is pulled high (8-bit mode). Use this if the modesel pin is hardwired and consequently "maxim,modesel-gpios" cannot be specified. By default if neither this nor "maxim,modesel-gpios" is given, the driver assumes that modesel is pulled low (16-bit mode).

Value type (type): "boolean"

maxim,ignore-undervoltage — not listed as required here #

Boolean whether to ignore undervoltage alarms signaled by the "maxim,fault-gpios" or by the status byte (in 16-bit mode). Use this if the chips are powered through 5VOUT instead of VCC24V, in which case they will constantly signal undervoltage.

Value type (type): "boolean"

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    gpio@0 {
        compatible = "maxim,max31913";
        reg = <0>;
        gpio-controller;
        #gpio-cells = <2>;

        maxim,modesel-gpios = <&gpio2 23>;
        maxim,fault-gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
        maxim,db0-gpios = <&gpio2 25>;
        maxim,db1-gpios = <&gpio2 26>;

        spi-max-frequency = <25000000>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Maxim MAX7360 GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/maxim,max7360-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Kamel Bouhara <kamel.bouhara@bootlin.com>", "Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>"

Maxim MAX7360 GPIO controller, in MAX7360 chipset https://www.analog.com/en/products/max7360.html

The device provides two series of GPIOs, referred here as GPIOs and GPOs.

PORT0 to PORT7 pins can be used as GPIOs, with support for interrupts and constant-current mode. These pins will also be used by the rotary encoder and PWM functionalities.

COL2 to COL7 pins can be used as GPOs, there is no input capability. COL pins will be partitioned, with the first pins being affected to the keypad functionality and the last ones as GPOs.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "maxim,max7360-gpio", "maxim,max7360-gpo"

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — not listed as required here #

Exact value (const): 2

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

maxim,constant-current-disable — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Bit field, each bit disables constant-current output of the associated GPIO, starting from the least significant bit for the first GPIO.

Maximum value (maximum): 255

Required in this object (required): "compatible", "gpio-controller"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "maxim,max7360-gpio"

ngpios — not listed as required here

false — Not permitted by this property rule.

When the condition matches (then) #

Required in this object (required): "interrupt-controller"

When the condition does not match (else) #

Properties and child nodes (properties)

interrupt-controller — not listed as required here

false — Not permitted by this property rule.

maxim,constant-current-disable — not listed as required here

false — Not permitted by this property rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio {
  compatible = "maxim,max7360-gpio";

  gpio-controller;
  #gpio-cells = <2>;
  maxim,constant-current-disable = <0x06>;

  interrupt-controller;
  #interrupt-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Maxim Integrated MAX77759 GPIO

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/maxim,max77759-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "André Draszik <andre.draszik@linaro.org>"

This module is part of the MAX77759 PMIC. For additional information, see Documentation/devicetree/bindings/mfd/maxim,max77759.yaml.

The MAX77759 is a PMIC integrating, amongst others, a GPIO controller including interrupt support for 2 GPIO lines.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max77759-gpio"

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

#interrupt-cells — required here #

Exact value (const): 2

interrupt-controller — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "#gpio-cells", "gpio-controller", "#interrupt-cells", "interrupt-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Mediatek MT7621 SoC GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/mediatek,mt7621-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sergio Paracuellos <sergio.paracuellos@gmail.com>"

The IP core used inside these SoCs has 3 banks of 32 GPIOs each. The registers of all the banks are interwoven inside one single IO range. We load one GPIO controller instance per bank. Also the GPIO controller can receive interrupts on any of the GPIOs, either edge or level. It then interrupts the CPU using GIC INT12.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpio@[0-9a-f]+$"

compatible — required here #

Exact value (const): "mediatek,mt7621-gpio"

reg — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-ranges — required here #

true — No constraints added by this property rule.

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-controller", "gpio-ranges", "interrupt-controller", "#interrupt-cells", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/mips-gic.h>

gpio@600 {
  compatible = "mediatek,mt7621-gpio";
  reg = <0x600 0x100>;
  #gpio-cells = <2>;
  gpio-controller;
  gpio-ranges = <&pinctrl 0 0 95>;
  interrupt-controller;
  #interrupt-cells = <2>;
  interrupt-parent = <&gic>;
  interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Microchip MPFS GPIO Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/microchip,mpfs-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Conor Dooley <conor.dooley@microchip.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "microchip,pic64gx-gpio"

Item 2

Exact value (const): "microchip,mpfs-gpio"

Rule 2

Allowed values (enum): "microchip,mpfs-gpio", "microchip,coregpio-rtl-v3"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Interrupt mapping, one per GPIO. Maximum 32 GPIOs.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

clocks — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

#interrupt-cells — not listed as required here #

Exact value (const): 2

ngpios — not listed as required here #

The number of GPIOs available.

Minimum value (minimum): 1

Maximum value (maximum): 32

Default value (default): 32

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

true — No constraints added by this property rule.

Properties matching a name pattern (patternProperties) #

^.+-hog(-[0-9]+)?$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "microchip,mpfs-gpio"

When the condition matches (then) #

Required in this object (required): "interrupts", "#interrupt-cells", "interrupt-controller"

Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-controller", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@20122000 {
    compatible = "microchip,mpfs-gpio";
    reg = <0x20122000 0x1000>;
    clocks = <&clkcfg 25>;
    interrupt-parent = <&plic>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupt-controller;
    #interrupt-cells = <2>;
    interrupts = <53>, <53>, <53>, <53>,
                 <53>, <53>, <53>, <53>,
                 <53>, <53>, <53>, <53>,
                 <53>, <53>, <53>, <53>,
                 <53>, <53>, <53>, <53>,
                 <53>, <53>, <53>, <53>,
                 <53>, <53>, <53>, <53>,
                 <53>, <53>, <53>, <53>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Microchip PIC32 GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/microchip,pic32mzda-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Joshua Henderson <joshua.henderson@microchip.com>", "Purna Chandra Mandal <purna.mandal@microchip.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "microchip,pic32mzda-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-ranges — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

clocks — required here #

Maximum number of items (maxItems): 1

microchip,gpio-bank — required here #

Bank index owned by the controller

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Required in this object (required): "compatible", "reg", "gpio-controller", "gpio-ranges", "#gpio-cells", "interrupts", "interrupt-controller", "#interrupt-cells", "clocks", "microchip,gpio-bank"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

gpio@1f860000 {
    compatible = "microchip,pic32mzda-gpio";
    reg = <0x1f860000 0x100>;
    interrupts = <118 IRQ_TYPE_LEVEL_HIGH>;
    #gpio-cells = <2>;
    gpio-controller;
    interrupt-controller;
    #interrupt-cells = <2>;
    clocks = <&rootclk 11>;
    microchip,gpio-bank = <0>;
    gpio-ranges = <&pic32_pinctrl 0 0 16>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Marvell PXA GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/mrvl-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>", "Bartosz Golaszewski <bgolaszewski@baylibre.com>", "Rob Herring <robh@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "intel,pxa25x-gpio", "intel,pxa26x-gpio", "intel,pxa27x-gpio", "intel,pxa3xx-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

interrupt-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "gpio0"

Item 2

Exact value (const): "gpio1"

Item 3

Exact value (const): "gpio_mux"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "marvell,mmp-gpio", "marvell,mmp2-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "gpio_mux"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpio@[0-9a-f]+$"

compatible — required here #

Allowed values (enum): "intel,pxa25x-gpio", "intel,pxa26x-gpio", "intel,pxa27x-gpio", "intel,pxa3xx-gpio", "marvell,mmp-gpio", "marvell,mmp2-gpio", "marvell,pxa93x-gpio"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

ranges — not listed as required here #

true — No constraints added by this property rule.

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

gpio-ranges — not listed as required here #

true — No constraints added by this property rule.

interrupts — required here #

true — No constraints added by this property rule.

interrupt-names — required here #

true — No constraints added by this property rule.

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

Properties matching a name pattern (patternProperties) #

^gpio@[0-9a-f]*$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

Required in this object (required): "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "#address-cells", "#size-cells", "reg", "gpio-controller", "#gpio-cells", "interrupts", "interrupt-names", "interrupt-controller", "#interrupt-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/pxa-clock.h>
gpio@40e00000 {
    compatible = "intel,pxa3xx-gpio";
    #address-cells = <1>;
    #size-cells = <1>;
    reg = <0x40e00000 0x10000>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupts = <8>, <9>, <10>;
    interrupt-names = "gpio0", "gpio1", "gpio_mux";
    clocks = <&clks CLK_GPIO>;
    interrupt-controller;
    #interrupt-cells = <2>;
};
#include <dt-bindings/clock/marvell,pxa910.h>
gpio@d4019000 {
    compatible = "marvell,mmp-gpio";
    #address-cells = <1>;
    #size-cells = <1>;
    reg = <0xd4019000 0x1000>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupts = <49>;
    interrupt-names = "gpio_mux";
    clocks = <&soc_clocks PXA910_CLK_GPIO>;
    resets = <&soc_clocks PXA910_CLK_GPIO>;
    interrupt-controller;
    #interrupt-cells = <2>;
    ranges;

    gpio@d4019000 {
        reg = <0xd4019000 0x4>;
    };

    gpio@d4019004 {
        reg = <0xd4019004 0x4>;
    };

    gpio@d4019008 {
        reg = <0xd4019008 0x4>;
    };

    gpio@d4019100 {
        reg = <0xd4019100 0x4>;
    };
 };

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

MStar/SigmaStar GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/mstar,msc313-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Daniel Palmer <daniel@thingy.jp>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpio@[0-9a-f]+$"

compatible — required here #

Allowed values (enum): "mstar,msc313-gpio", "sstar,ssd20xd-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

gpio-ranges — not listed as required here #

true — No constraints added by this property rule.

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "interrupt-controller", "#interrupt-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/msc313-gpio.h>

gpio: gpio@207800 {
  compatible = "mstar,msc313-gpio";
  #gpio-cells = <2>;
  reg = <0x207800 0x200>;
  gpio-controller;
  gpio-ranges = <&pinctrl 0 36 22>,
                <&pinctrl 22 63 4>,
                <&pinctrl 26 68 6>;
  #interrupt-cells = <2>;
  interrupt-controller;
  interrupt-parent = <&intc_fiq>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Nuvoton SGPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/nuvoton,sgpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jim LIU <JJLIU0@nuvoton.com>"

This SGPIO controller is for NUVOTON NPCM7xx and NPCM8xx SoC and detailed
information is in the NPCM7XX/8XX SERIAL I/O EXPANSION INTERFACE section.
Nuvoton NPCM7xx SGPIO module is combines a serial to parallel IC (HC595)
and a parallel to serial IC (HC165).
Clock is a division of the APB3 clock.
This interface has 4 pins (D_out , D_in, S_CLK, LDSH).
NPCM7xx/NPCM8xx have two sgpio modules. Each module can support up
to 64 output pins, and up to 64 input pins, the pin is only for GPI or GPO.
GPIO pins can be programmed to support the following options
- Support interrupt option for each input port and various interrupt
  sensitivity options (level-high, level-low, edge-high, edge-low)
- ngpios is number of nuvoton,input-ngpios GPIO lines and nuvoton,output-ngpios GPIO lines.
  nuvoton,input-ngpios GPIO lines is only for GPI.
  nuvoton,output-ngpios GPIO lines is only for GPO.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nuvoton,npcm750-sgpio", "nuvoton,npcm845-sgpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

nuvoton,input-ngpios — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The numbers of GPIO's exposed. GPIO lines are only for GPI.

Minimum value (minimum): 0

Maximum value (maximum): 64

nuvoton,output-ngpios — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The numbers of GPIO's exposed. GPIO lines are only for GPO.

Minimum value (minimum): 0

Maximum value (maximum): 64

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "interrupts", "nuvoton,input-ngpios", "nuvoton,output-ngpios", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/nuvoton,npcm7xx-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
gpio8: gpio@101000 {
    compatible = "nuvoton,npcm750-sgpio";
    reg = <0x101000 0x200>;
    clocks = <&clk NPCM7XX_CLK_APB3>;
    interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
    gpio-controller;
    #gpio-cells = <2>;
    nuvoton,input-ngpios = <64>;
    nuvoton,output-ngpios = <64>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra GPIO Controller (Tegra186 and later)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/nvidia,tegra186-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"

Tegra186 contains two GPIO controllers; a main controller and an "AON" controller. This binding document applies to both controllers. The register layouts for the controllers share many similarities, but also some significant differences. Hence, this document describes closely related but different bindings and compatible values.

The Tegra186 GPIO controller allows software to set the IO direction of, and read/write the value of, numerous GPIO signals. Routing of GPIO signals to package balls is under the control of a separate pin controller hardware block. Two major sets of registers exist:

  a) Security registers, which allow configuration of allowed access to the
     GPIO register set. These registers exist in a single contiguous block
     of physical address space. The size of this block, and the security
     features available, varies between the different GPIO controllers.
     Access to this set of registers is not necessary in all circumstances.
     Code that wishes to configure access to the GPIO registers needs access
     to these registers to do so. Code which simply wishes to read or write
     GPIO data does not need access to these registers.
  b) GPIO registers, which allow manipulation of the GPIO signals. In some
     GPIO controllers, these registers are exposed via multiple "physical
     aliases" in address space, each of which access the same underlying
     state. See the hardware documentation for rationale. Any particular
     GPIO client is expected to access just one of these physical aliases.
  Tegra HW documentation describes a unified naming convention for all GPIOs
  implemented by the SoC. Each GPIO is assigned to a port, and a port may
  control a number of GPIOs. Thus, each GPIO is named according to an
  alphabetical port name and an integer GPIO name within the port. For
  example, GPIO_PA0, GPIO_PN6, or GPIO_PCC3.
  The number of ports implemented by each GPIO controller varies. The number
  of implemented GPIOs within each port varies. GPIO registers within a
  controller are grouped and laid out according to the port they affect.
  The mapping from port name to the GPIO controller that implements that
  port, and the mapping from port name to register offset within a
  controller, are both extremely non-linear. The header file
  <dt-bindings/gpio/tegra186-gpio.h> describes the port-level mapping. In
  that file, the naming convention for ports matches the HW documentation.
  The values chosen for the names are alphabetically sorted within a
  particular controller. Drivers need to map between the DT GPIO IDs and HW
  register offsets using a lookup table.
  Each GPIO controller can generate a number of interrupt signals. Each
  signal represents the aggregate status for all GPIOs within a set of
  ports. Thus, the number of interrupt signals generated by a controller
  varies as a rough function of the number of ports it implements. Note
  that the HW documentation refers to both the overall controller HW
  module and the sets-of-ports as "controllers".
  Each GPIO controller in fact generates multiple interrupts signals for
  each set of ports. Each GPIO may be configured to feed into a specific
  one of the interrupt signals generated by a set-of-ports. The intent is
  for each generated signal to be routed to a different CPU, thus allowing
  different CPUs to each handle subsets of the interrupts within a port.
  The status of each of these per-port-set signals is reported via a
  separate register. Thus, a driver needs to know which status register to
  observe. This binding currently defines no configuration mechanism for
  this. By default, drivers should use register
  GPIO_${port}_INTERRUPT_STATUS_G1_0. Future revisions to the binding could
  define a property to configure this.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nvidia,tegra186-gpio", "nvidia,tegra186-gpio-aon", "nvidia,tegra194-gpio", "nvidia,tegra194-gpio-aon", "nvidia,tegra234-gpio", "nvidia,tegra234-gpio-aon", "nvidia,tegra256-gpio", "nvidia,tegra264-gpio", "nvidia,tegra264-gpio-uphy", "nvidia,tegra264-gpio-aon"

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "security"

Item 2

Exact value (const): "gpio"

Minimum number of items (minItems): 1

reg — required here #

Array item rules (items) #

Item 1

Security configuration registers.

Item 2

GPIO control registers. This may cover either:

  a) The single physical alias that this OS should use.
  b) All physical aliases that exist in the controller. This is
     appropriate when the OS is responsible for managing assignment
     of the physical aliases.

Minimum number of items (minItems): 1

interrupts — required here #

The interrupt outputs from the HW block, one per set of ports, in the order the HW manual describes them. The number of entries required varies depending on compatible value.

wakeup-parent — not listed as required here #

Phandle to the parent interrupt controller used for wake-up. On Tegra, this typically references the PMC interrupt controller.

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

gpio-ranges — not listed as required here #

Maximum number of items (maxItems): 1

#gpio-cells — not listed as required here #

Indicates how many cells are used in a consumer's GPIO specifier. In the specifier:

  - The first cell is the pin number.
    See <dt-bindings/gpio/tegra186-gpio.h>.
  - The second cell contains flags:
    - Bit 0 specifies polarity
      - 0: Active-high (normal).
      - 1: Active-low (inverted).

Exact value (const): 2

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Indicates how many cells are used in a consumer's interrupt specifier. In the specifier:

  - The first cell is the GPIO number.
    See <dt-bindings/gpio/tegra186-gpio.h>.
  - The second cell is contains flags:
    - Bits [3:0] indicate trigger type and level:
      - 1: Low-to-high edge triggered.
      - 2: High-to-low edge triggered.
      - 4: Active high level-sensitive.
      - 8: Active low level-sensitive.
      Valid combinations are 1, 2, 3, 4, 8.

Exact value (const): 2

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra186-gpio", "nvidia,tegra194-gpio", "nvidia,tegra234-gpio", "nvidia,tegra256-gpio", "nvidia,tegra264-gpio", "nvidia,tegra264-gpio-uphy"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 48

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra186-gpio-aon", "nvidia,tegra194-gpio-aon", "nvidia,tegra234-gpio-aon", "nvidia,tegra264-gpio-aon"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra264-gpio", "nvidia,tegra264-gpio-uphy", "nvidia,tegra264-gpio-aon"

When the condition matches (then) #

Required in this object (required): "wakeup-parent"

Required in this object (required): "compatible", "reg", "reg-names", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

gpio@2200000 {
    compatible = "nvidia,tegra186-gpio";
    reg-names = "security", "gpio";
    reg = <0x2200000 0x10000>,
          <0x2210000 0x10000>;
    interrupts = <0  47 IRQ_TYPE_LEVEL_HIGH>,
                 <0  50 IRQ_TYPE_LEVEL_HIGH>,
                 <0  53 IRQ_TYPE_LEVEL_HIGH>,
                 <0  56 IRQ_TYPE_LEVEL_HIGH>,
                 <0  59 IRQ_TYPE_LEVEL_HIGH>,
                 <0 180 IRQ_TYPE_LEVEL_HIGH>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupt-controller;
    #interrupt-cells = <2>;
};

gpio@c2f0000 {
    compatible = "nvidia,tegra186-gpio-aon";
    reg-names = "security", "gpio";
    reg = <0xc2f0000 0x1000>,
          <0xc2f1000 0x1000>;
    interrupts = <0 60 IRQ_TYPE_LEVEL_HIGH>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupt-controller;
    #interrupt-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra GPIO Controller (Tegra20 - Tegra210)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/nvidia,tegra20-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nvidia,tegra20-gpio", "nvidia,tegra30-gpio"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra114-gpio", "nvidia,tegra124-gpio", "nvidia,tegra210-gpio"

Item 2

Exact value (const): "nvidia,tegra30-gpio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

The interrupt outputs from the controller. For Tegra20, there should be 7 interrupts specified, and for Tegra30, there should be 8 interrupts specified.

#gpio-cells — required here #

The first cell is the pin number and the second cell is used to specify the GPIO polarity (0 = active high, 1 = active low).

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-ranges — not listed as required here #

Maximum number of items (maxItems): 1

#interrupt-cells — required here #

Should be 2. The first cell is the GPIO number. The second cell is used to specify flags:

  bits[3:0] trigger type and level flags:
    1 = low-to-high edge triggered.
    2 = high-to-low edge triggered.
    4 = active high level-sensitive.
    8 = active low level-sensitive.

Valid combinations are 1, 2, 3, 4, 8.

Exact value (const): 2

interrupt-controller — required here #

true — No constraints added by this property rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "nvidia,tegra30-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 8

Maximum number of items (maxItems): 8

When the condition does not match (else) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 7

Maximum number of items (maxItems): 7

Required in this object (required): "compatible", "reg", "interrupts", "#gpio-cells", "gpio-controller", "#interrupt-cells", "interrupt-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

Value type (type): "object"

Required in this object (required): "gpio-hog"

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

gpio: gpio@6000d000 {
    compatible = "nvidia,tegra20-gpio";
    reg = <0x6000d000 0x1000>;
    interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
    #gpio-cells = <2>;
    gpio-controller;
    #interrupt-cells = <2>;
    interrupt-controller;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NXP LPC18xx/43xx GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/nxp,lpc1850-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,lpc1850-gpio"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

reg-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "gpio"

Item 2

Exact value (const): "gpio-pin-ic"

Item 3

Exact value (const): "gpio-group0-ic"

Item 4

Exact value (const): "gpio-gpoup1-ic"

clocks — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

- The first cell is an interrupt number within
  0..9 range, for GPIO pin interrupts it is equal
  to 'nxp,gpio-pin-interrupt' property value of
  GPIO pin configuration, 8 is for GPIO GROUP0
  interrupt, 9 is for GPIO GROUP1 interrupt
- The second cell is used to specify interrupt type

gpio-ranges — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "clocks", "gpio-controller", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/lpc18xx-ccu.h>

gpio@400f4000 {
    compatible = "nxp,lpc1850-gpio";
    reg = <0x400f4000 0x4000>, <0x40087000 0x1000>,
          <0x40088000 0x1000>, <0x40089000 0x1000>;
    reg-names = "gpio", "gpio-pin-ic", "gpio-group0-ic", "gpio-gpoup1-ic";
    clocks = <&ccu1 CLK_CPU_GPIO>;
    resets = <&rgu 28>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupt-controller;
    #interrupt-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NXP LPC3220 SoC GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/nxp,lpc3220-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Animesh Agarwal <animeshagarwal28@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,lpc3220-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 3

1) bank:
  0: GPIO P0
  1: GPIO P1
  2: GPIO P2
  3: GPIO P3
  4: GPI P3
  5: GPO P3
2) pin number
3) flags:
  - bit 0 specifies polarity (0 for normal, 1 for inverted)

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@40028000 {
    compatible = "nxp,lpc3220-gpio";
    reg = <0x40028000 0x1000>;
    gpio-controller;
    #gpio-cells = <3>; /* bank, pin, flags */
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

PCF857x-compatible I/O expanders

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/nxp,pcf8575.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>"

The PCF857x-compatible chips have "quasi-bidirectional" I/O lines that can be driven high by a pull-up current source or driven low to ground. This combines the direction and output level into a single bit per line, which can't be read back. We can't actually know at initialization time whether a line is configured (a) as output and driving the signal low/high, or (b) as input and reporting a low/high value, without knowing the last value written since the chip came out of reset (if any). The only reliable solution for setting up line direction is thus to do it explicitly.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "maxim,max7328", "maxim,max7329", "nxp,pca8574", "nxp,pca8575", "nxp,pca9670", "nxp,pca9671", "nxp,pca9672", "nxp,pca9673", "nxp,pca9674", "nxp,pca9675", "nxp,pcf8574", "nxp,pcf8574a", "nxp,pcf8575"

reg — required here #

Maximum number of items (maxItems): 1

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

The first cell is the GPIO number and the second cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>. Only the GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported.

lines-initial-states — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Bitmask that specifies the initial state of each line. When a bit is set to zero, the corresponding line will be initialized to the input (pulled-up) state. When the bit is set to one, the line will be initialized to the low-level output state. If the property is not specified all lines will be initialized to the input state.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

wakeup-source — not listed as required here #

true — No constraints added by this property rule.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO controlling the (reset active LOW) RESET# pin. The active polarity of the GPIO must translate to the low state of the RESET# pin on the IC, i.e. if a GPIO is directly routed to the RESET# pin without any inverter, GPIO_ACTIVE_LOW is expected. Performing a reset makes all lines initialized to their input (pulled-up) state.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

This rule must not match (not)

Rule for matching array elements (contains)

Allowed values (enum): "nxp,pca9670", "nxp,pca9671", "nxp,pca9672", "nxp,pca9673"

When the condition matches (then) #

Properties and child nodes (properties)

reset-gpios — not listed as required here

false — Not permitted by this property rule.

Rule 2 #

Condition (if) #

Required in this object (required): "lines-initial-states"

When the condition matches (then) #

Properties and child nodes (properties)

reset-gpios — not listed as required here

false — Not permitted by this property rule.

Properties matching a name pattern (patternProperties) #

^(.+-hog(-[0-9]+)?)$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    gpio@20 {
        compatible = "nxp,pcf8575";
        reg = <0x20>;
        interrupt-parent = <&irqpin2>;
        interrupts = <3 0>;
        gpio-controller;
        #gpio-cells = <2>;
        interrupt-controller;
        #interrupt-cells = <2>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 103: lines-initial-states XOR reset-gpios

Line 104: Performing a reset reinitializes all lines to a known state which

Line 105: may not match passed lines-initial-states

Generic Parallel-in/Serial-out Shift Register GPIO Driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/pisosr-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

This binding describes generic parallel-in/serial-out shift register devices that can be used for GPI (General Purpose Input). This includes SN74165 serial-out shift registers and the SN65HVS88x series of industrial serializers.

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "pisosr-gpio"

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

ngpios — not listed as required here #

Maximum value (maximum): 32

Default value (default): 8

load-gpios — not listed as required here #

GPIO pin specifier attached to load enable, this pin is pulsed before reading from the device to load input pin values into the device.

spi-cpol — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "gpio-controller", "#gpio-cells"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    gpio@0 {
        compatible = "pisosr-gpio";
        reg = <0>;
        gpio-controller;
        #gpio-cells = <2>;
        load-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
        spi-max-frequency = <1000000>;
        spi-cpol;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

ARM PL061 GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/pl061-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>", "Rob Herring <robh@kernel.org>"

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Exact value (const): "arm,pl061"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpio@[0-9a-f]+$"

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "arm,pl061"

Item 2

Exact value (const): "arm,primecell"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Maximum number of items (maxItems): 1

Rule 2

Maximum number of items (maxItems): 8

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

true — No constraints added by this property rule.

gpio-ranges — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

Required in this object (required): "compatible", "reg", "clocks", "#gpio-cells", "gpio-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 13: We need a select here so we don't match all nodes with 'arm,primecell'

Qualcomm Atheros AR7xxx/AR9xxx GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/qca,ar7100-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alban Bedel <albeu@free.fr>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "qca,ar9132-gpio"

Item 2

Exact value (const): "qca,ar7100-gpio"

Rule 2

Allowed values (enum): "qca,ar7100-gpio", "qca,ar9340-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

ngpios — required here #

true — No constraints added by this property rule.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "ngpios"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@18040000 {
    compatible = "qca,ar9132-gpio", "qca,ar7100-gpio";
    reg = <0x18040000 0x30>;
    interrupts = <2>;
    ngpios = <22>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupt-controller;
    #interrupt-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

WCD9340/WCD9341 GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/qcom,wcd934x-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Qualcomm Technologies Inc WCD9340/WCD9341 Audio Codec has integrated gpio controller to control 5 gpios on the chip.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,wcd9340-gpio", "qcom,wcd9341-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

wcdgpio: gpio@42 {
    compatible = "qcom,wcd9340-gpio";
    reg = <0x042 0x2>;
    gpio-controller;
    #gpio-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Realtek Otto GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/realtek,otto-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sander Vanheule <sander@svanheule.net>", "Bert Vermeulen <bert@biot.com>"

Realtek's GPIO controller on their MIPS switch SoCs (Otto platform) consists of two banks of 32 GPIOs. These GPIOs can generate edge-triggered interrupts. Each bank's interrupts are cascased into one interrupt line on the parent interrupt controller, if provided. This binding allows defining a single bank in the devicetree. The interrupt controller is not supported on the fallback compatible name, which only allows for GPIO port use.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpio@[0-9a-f]+$"

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "realtek,rtl8380-gpio", "realtek,rtl8390-gpio", "realtek,rtl9300-gpio", "realtek,rtl9310-gpio"

Item 2

Exact value (const): "realtek,otto-gpio"

reg — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

ngpios — not listed as required here #

Minimum value (minimum): 1

Maximum value (maximum): 32

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Exact value (const): "realtek,rtl9300-gpio"

When the condition matches (then) #

Properties and child nodes (properties) #

reg — not listed as required here #

Array item rules (items)

Item 1

GPIO and interrupt control

Item 2

interrupt CPU map

When the condition does not match (else) #

Properties and child nodes (properties) #

reg — not listed as required here #

Array item rules (items)

Item 1

GPIO and interrupt control

Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Property dependencies (dependencies) #

interrupt-controller — applies when this property is present #

Also requires: "interrupts"

Examples (examples) #

gpio@3500 {
    compatible = "realtek,rtl8380-gpio", "realtek,otto-gpio";
    reg = <0x3500 0x1c>;
    gpio-controller;
    #gpio-cells = <2>;
    ngpios = <24>;
    interrupt-controller;
    #interrupt-cells = <2>;
    interrupt-parent = <&rtlintc>;
    interrupts = <23>;
};
gpio@3300 {
    compatible = "realtek,rtl9300-gpio", "realtek,otto-gpio";
    reg = <0x3300 0x1c>, <0x3338 0x8>;
    gpio-controller;
    #gpio-cells = <2>;
    ngpios = <24>;
    interrupt-controller;
    #interrupt-cells = <2>;
    interrupt-parent = <&rtlintc>;
    interrupts = <13>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Realtek DHC GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/realtek,rtd-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Tzuyi Chang <tychang@realtek.com>"

The GPIO controller is designed for the Realtek DHC (Digital Home Center) RTD series SoC family, which are high-definition media processor SoCs.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "realtek,rtd1295-misc-gpio", "realtek,rtd1295-iso-gpio", "realtek,rtd1315e-iso-gpio", "realtek,rtd1319-iso-gpio", "realtek,rtd1319d-iso-gpio", "realtek,rtd1395-iso-gpio", "realtek,rtd1619-iso-gpio", "realtek,rtd1619b-iso-gpio"

reg — required here #

Array item rules (items) #

Item 1

GPIO controller registers

Item 2

GPIO interrupt registers

interrupts — required here #

Array item rules (items) #

Item 1

Interrupt number of the assert GPIO interrupt, which is triggered when there is a rising edge.

Item 2

Interrupt number of the deassert GPIO interrupt, which is triggered when there is a falling edge.

gpio-ranges — required here #

true — No constraints added by this property rule.

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

Required in this object (required): "compatible", "reg", "interrupts", "gpio-ranges", "gpio-controller", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@100 {
  compatible = "realtek,rtd1319d-iso-gpio";
  reg = <0x100 0x100>,
        <0x0 0xb0>;
  interrupt-parent = <&iso_irq_mux>;
  interrupts = <19>, <20>;
  gpio-ranges = <&pinctrl 0 0 82>;
  gpio-controller;
  #gpio-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 2: Copyright 2023 Realtek Semiconductor Corporation

Renesas EMMA Mobile General Purpose I/O Interface

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/renesas,em-gio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Magnus Damm <magnus.damm@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "renesas,em-gio"

reg — required here #

Array item rules (items) #

Item 1

First set of contiguous registers

Item 2

Second set of contiguous registers

interrupts — required here #

Array item rules (items) #

Item 1

Interrupt for the first set of 16 GPIO ports

Item 2

Interrupt for the second set of 16 GPIO ports

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

gpio-ranges — required here #

Maximum number of items (maxItems): 1

ngpios — required here #

Minimum value (minimum): 1

Maximum value (maximum): 32

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

Required in this object (required): "compatible", "reg", "interrupts", "gpio-controller", "#gpio-cells", "gpio-ranges", "ngpios", "interrupt-controller", "#interrupt-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
gpio0: gpio@e0050000 {
    compatible = "renesas,em-gio";
    reg = <0xe0050000 0x2c>, <0xe0050040 0x20>;
    interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
    gpio-controller;
    #gpio-cells = <2>;
    gpio-ranges = <&pfc 0 0 32>;
    ngpios = <32>;
    interrupt-controller;
    #interrupt-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Renesas R-Car General-Purpose Input/Output Ports (GPIO)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/renesas,rcar-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "renesas,gpio-r8a7778", "renesas,gpio-r8a7779"

Item 2

Exact value (const): "renesas,rcar-gen1-gpio"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,gpio-r8a7742", "renesas,gpio-r8a7743", "renesas,gpio-r8a7744", "renesas,gpio-r8a7745", "renesas,gpio-r8a77470", "renesas,gpio-r8a7790", "renesas,gpio-r8a7791", "renesas,gpio-r8a7792", "renesas,gpio-r8a7793", "renesas,gpio-r8a7794"

Item 2

Exact value (const): "renesas,rcar-gen2-gpio"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "renesas,gpio-r8a774a1", "renesas,gpio-r8a774b1", "renesas,gpio-r8a774c0", "renesas,gpio-r8a774e1", "renesas,gpio-r8a7795", "renesas,gpio-r8a7796", "renesas,gpio-r8a77961", "renesas,gpio-r8a77965", "renesas,gpio-r8a77970", "renesas,gpio-r8a77980", "renesas,gpio-r8a77990", "renesas,gpio-r8a77995"

Item 2

Exact value (const): "renesas,rcar-gen3-gpio"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "renesas,gpio-r8a779a0", "renesas,gpio-r8a779f0", "renesas,gpio-r8a779g0", "renesas,gpio-r8a779h0"

Item 2

Exact value (const): "renesas,rcar-gen4-gpio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

gpio-ranges — required here #

Maximum number of items (maxItems): 1

gpio-reserved-ranges — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

Properties matching a name pattern (patternProperties) #

^.*$ — name matches this regular expression #

Condition (if) #

Value type (type): "object"

When the condition matches (then) #

Properties and child nodes (properties)

gpio-hog — required here

true — No constraints added by this property rule.

gpios — required here

true — No constraints added by this property rule.

input — not listed as required here

true — No constraints added by this property rule.

output-high — not listed as required here

true — No constraints added by this property rule.

output-low — not listed as required here

true — No constraints added by this property rule.

line-name — not listed as required here

true — No constraints added by this property rule.

Required in this object (required): "gpio-hog", "gpios"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "gpio-controller", "#gpio-cells", "gpio-ranges", "interrupt-controller", "#interrupt-cells"

Condition (if) #

This rule must not match (not) #

Properties and child nodes (properties) #

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,rcar-gen1-gpio"

When the condition matches (then) #

Required in this object (required): "clocks", "power-domains", "resets"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a77470-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a77470-sysc.h>
gpio3: gpio@e6053000 {
    compatible = "renesas,gpio-r8a77470", "renesas,rcar-gen2-gpio";
    reg = <0xe6053000 0x50>;
    interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&cpg CPG_MOD 909>;
    power-domains = <&sysc R8A77470_PD_ALWAYS_ON>;
    resets = <&cpg 909>;
    gpio-controller;
    #gpio-cells = <2>;
    gpio-ranges = <&pfc 0 96 30>;
    gpio-reserved-ranges = <17 10>;
    interrupt-controller;
    #interrupt-cells = <2>;
 };

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 17: R-Car M1

Line 18: R-Car H1

Line 19: R-Car Gen1

Line 23: RZ/G1H

Line 24: RZ/G1M

Line 25: RZ/G1N

Line 26: RZ/G1E

Line 27: RZ/G1C

Line 28: R-Car H2

Line 29: R-Car M2-W

Line 30: R-Car V2H

Line 31: R-Car M2-N

Line 32: R-Car E2

Line 33: R-Car Gen2 or RZ/G1

Line 37: RZ/G2M

Line 38: RZ/G2N

Line 39: RZ/G2E

Line 40: RZ/G2H

Line 41: R-Car H3

Line 42: R-Car M3-W

Line 43: R-Car M3-W+

Line 44: R-Car M3-N

Line 45: R-Car V3M

Line 46: R-Car V3H

Line 47: R-Car E3

Line 48: R-Car D3

Line 49: R-Car Gen3 or RZ/G2

Line 53: R-Car V3U

Line 54: R-Car S4-8

Line 55: R-Car V4H

Line 56: R-Car V4M

Line 57: R-Car Gen4

Rockchip GPIO bank

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/rockchip,gpio-bank.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,gpio-bank", "rockchip,rk3188-gpio-bank0"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

APB interface clock source

Item 2

GPIO debounce reference clock source

gpio-ranges — not listed as required here #

true — No constraints added by this property rule.

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

^.+-hog(-[0-9]+)?$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "gpio-controller", "#gpio-cells", "interrupt-controller", "#interrupt-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
pinctrl: pinctrl {
  #address-cells = <1>;
  #size-cells = <1>;
  ranges;

  gpio0: gpio@2000a000 {
    compatible = "rockchip,rk3188-gpio-bank0";
    reg = <0x2000a000 0x100>;
    interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clk_gates8 9>;

    gpio-controller;
    #gpio-cells = <2>;

    interrupt-controller;
    #interrupt-cells = <2>;
  };

  gpio1: gpio@2003c000 {
    compatible = "rockchip,gpio-bank";
    reg = <0x2003c000 0x100>;
    interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clk_gates8 10>;

    gpio-controller;
    #gpio-cells = <2>;

    interrupt-controller;
    #interrupt-cells = <2>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

SiFive GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/sifive,gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Paul Walmsley <paul.walmsley@sifive.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "sifive,fu540-c000-gpio", "sifive,fu740-c000-gpio", "canaan,k210-gpiohs"

Item 2

Exact value (const): "sifive,gpio0"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Interrupt mapping, one per GPIO. Maximum 32 GPIOs.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

clocks — not listed as required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

ngpios — not listed as required here #

The number of GPIOs available on the controller implementation. It is 16 for the SiFive SoCs and 32 for the Canaan K210.

Minimum value (minimum): 1

Maximum value (maximum): 32

Default value (default): 16

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

gpio-controller — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-controller", "#interrupt-cells", "#gpio-cells", "gpio-controller"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "sifive,fu540-c000-gpio", "sifive,fu740-c000-gpio"

When the condition matches (then) #

Required in this object (required): "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/sifive-fu540-prci.h>
gpio@10060000 {
    compatible = "sifive,fu540-c000-gpio", "sifive,gpio0";
    interrupt-parent = <&plic>;
    interrupts = <7>, <8>, <9>, <10>, <11>, <12>, <13>, <14>, <15>, <16>,
                 <17>, <18>, <19>, <20>, <21>, <22>;
    reg = <0x10060000 0x1000>;
    clocks = <&tlclk FU540_PRCI_CLK_TLCLK>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupt-controller;
    #interrupt-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Synopsys DesignWare APB GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/snps,dw-apb-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Synopsys DesignWare GPIO controllers have a configurable number of ports, each of which are intended to be represented as child nodes with the generic GPIO-controller properties as described in this bindings file.

Maintainers (maintainers): "Hoan Tran <hoan@os.amperecomputing.com>", "Serge Semin <fancer.lancer@gmail.com>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpio@[0-9a-f]+$"

compatible — required here #

Exact value (const): "snps,dw-apb-gpio"

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

APB interface clock source

Item 2

DW GPIO debounce reference clock source

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "bus"

Item 2

Exact value (const): "db"

resets — not listed as required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

^gpio-(port|controller)@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "snps,dw-apb-gpio-port"

reg — required here

Maximum number of items (maxItems): 1

gpio-controller — required here

true — No constraints added by this property rule.

#gpio-cells — required here

Exact value (const): 2

gpio-line-names — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

gpio-ranges — not listed as required here

true — No constraints added by this property rule.

ngpios — not listed as required here

Default value (default): 32

Minimum value (minimum): 1

Maximum value (maximum): 32

snps,nr-gpios — not listed as required here

The number of GPIO pins exported by the port.

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 32

Minimum value (minimum): 1

Maximum value (maximum): 32

interrupts — not listed as required here

The interrupts to the parent controller raised when GPIOs generate the interrupts. If the controller provides one combined interrupt for all GPIOs, specify a single interrupt. If the controller provides one interrupt for each GPIO, provide a list of interrupts that correspond to each of the GPIO pins.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

interrupt-controller — not listed as required here

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here

Exact value (const): 2

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells"

Property dependencies (dependencies) #

interrupt-controller — applies when this property is present

Also requires: "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"

Examples (examples) #

gpio: gpio@20000 {
  compatible = "snps,dw-apb-gpio";
  reg = <0x20000 0x1000>;
  #address-cells = <1>;
  #size-cells = <0>;

  porta: gpio-port@0 {
    compatible = "snps,dw-apb-gpio-port";
    reg = <0>;
    gpio-controller;
    #gpio-cells = <2>;
    snps,nr-gpios = <8>;
    interrupt-controller;
    #interrupt-cells = <2>;
    interrupt-parent = <&vic1>;
    interrupts = <0>;
  };

  portb: gpio-port@1 {
    compatible = "snps,dw-apb-gpio-port";
    reg = <1>;
    gpio-controller;
    #gpio-cells = <2>;
    snps,nr-gpios = <8>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

UniPhier GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/socionext,uniphier-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Masahiro Yamada <yamada.masahiro@socionext.com>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpio@[0-9a-f]+$"

compatible — required here #

Exact value (const): "socionext,uniphier-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

The first cell defines the interrupt number.
The second cell bits[3:0] is used to specify trigger type as follows:
  1 = low-to-high edge triggered
  2 = high-to-low edge triggered
  4 = active high level-sensitive
  8 = active low level-sensitive
Valid combinations are 1, 2, 3, 4, 8.

Exact value (const): 2

ngpios — required here #

Minimum value (minimum): 0

Maximum value (maximum): 512

gpio-ranges — required here #

true — No constraints added by this property rule.

gpio-ranges-group-names — not listed as required here #

true — No constraints added by this property rule.

socionext,interrupt-ranges — required here #

Specifies an interrupt number mapping between this GPIO controller and its interrupt parent, in the form of arbitrary number of <child-interrupt-base parent-interrupt-base length> triplets.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix

Properties matching a name pattern (patternProperties) #

^.+-hog(-[0-9]+)?$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "interrupt-controller", "#interrupt-cells", "ngpios", "gpio-ranges", "socionext,interrupt-ranges"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/gpio/uniphier-gpio.h>

gpio: gpio@55000000 {
    compatible = "socionext,uniphier-gpio";
    reg = <0x55000000 0x200>;
    interrupt-parent = <&aidet>;
    interrupt-controller;
    #interrupt-cells = <2>;
    gpio-controller;
    #gpio-cells = <2>;
    gpio-ranges = <&pinctrl 0 0 0>;
    gpio-ranges-group-names = "gpio_range";
    ngpios = <248>;
    socionext,interrupt-ranges = <0 48 16>, <16 154 5>, <21 217 3>;
};

// Consumer:
// Please note UNIPHIER_GPIO_PORT(29, 4) represents PORT294 in the SoC
// document. Unfortunately, only the one's place is octal in the port
// numbering. (That is, PORT 8, 9, 18, 19, 28, 29, ... do not exist.)
// UNIPHIER_GPIO_PORT() is a helper macro to calculate 29 * 8 + 4.
sdhci0_pwrseq {
    compatible = "mmc-pwrseq-emmc";
    reset-gpios = <&gpio UNIPHIER_GPIO_PORT(29, 4) GPIO_ACTIVE_LOW>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

SpacemiT K1 GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/spacemit,k1-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Yixun Lan <dlan@gentoo.org>"

The controller's registers are organized as sets of eight 32-bit registers with each set of port controlling 32 pins. A single interrupt line is shared for all of the pins by the controller.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpio@[0-9a-f]+$"

compatible — required here #

Allowed values (enum): "spacemit,k1-gpio", "spacemit,k3-gpio"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

GPIO Core Clock

Item 2

GPIO Bus Clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "bus"

resets — not listed as required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 3

The first two cells are the GPIO bank index and offset inside the bank, the third cell should specify GPIO flag.

gpio-ranges — required here #

true — No constraints added by this property rule.

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 3

The first two cells are the GPIO bank index and offset inside the bank, the third cell should specify interrupt flag. The controller does not support level interrupts, so flags of IRQ_TYPE_LEVEL_HIGH, IRQ_TYPE_LEVEL_LOW should not be used. Refer <dt-bindings/interrupt-controller/irq.h> for valid flags.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "gpio-controller", "#gpio-cells", "interrupts", "interrupt-controller", "#interrupt-cells", "gpio-ranges"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@d4019000 {
  compatible = "spacemit,k1-gpio";
  reg = <0xd4019000 0x800>;
  clocks = <&ccu 9>, <&ccu 61>;
  clock-names = "core", "bus";
  gpio-controller;
  #gpio-cells = <3>;
  interrupts = <58>;
  interrupt-controller;
  interrupt-parent = <&plic>;
  #interrupt-cells = <3>;
  gpio-ranges = <&pinctrl 0 0 0 32>,
                <&pinctrl 1 0 32 32>,
                <&pinctrl 2 0 64 32>,
                <&pinctrl 3 0 96 32>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Unisoc EIC controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/sprd,gpio-eic.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"

The EIC is the abbreviation of external interrupt controller, which can be used only in input mode. The Spreadtrum platform has 2 EIC controllers, one is in digital chip, and another one is in PMIC. The digital chip EIC controller contains 4 sub-modules, i.e. EIC-debounce, EIC-latch, EIC-async and EIC-sync. But the PMIC EIC controller contains only one EIC-debounce sub- module.

The EIC-debounce sub-module provides up to 8 source input signal connections. A debounce mechanism is used to capture the input signals' stable status (millisecond resolution) and a single-trigger mechanism is introduced into this sub-module to enhance the input event detection reliability. In addition, this sub-module's clock can be shut off automatically to reduce power dissipation. Moreover the debounce range is from 1ms to 4s with a step size of 1ms. The input signal will be ignored if it is asserted for less than 1 ms.

The EIC-latch sub-module is used to latch some special power down signals and generate interrupts, since the EIC-latch does not depend on the APB clock to capture signals.

The EIC-async sub-module uses a 32kHz clock to capture the short signals (microsecond resolution) to generate interrupts by level or edge trigger.

The EIC-sync is similar with GPIO's input function, which is a synchronized signal input register. It can generate interrupts by level or edge trigger when detecting input signals.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "sprd,sc9860-eic-debounce", "sprd,sc9860-eic-latch", "sprd,sc9860-eic-async", "sprd,sc9860-eic-sync", "sprd,sc2731-eic"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "sprd,ums512-eic-debounce"

Item 2

Exact value (const): "sprd,sc9860-eic-debounce"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "sprd,ums512-eic-latch"

Item 2

Exact value (const): "sprd,sc9860-eic-latch"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "sprd,ums512-eic-async"

Item 2

Exact value (const): "sprd,sc9860-eic-async"

Rule 5

Array item rules (items)

Item 1

Allowed values (enum): "sprd,ums512-eic-sync"

Item 2

Exact value (const): "sprd,sc9860-eic-sync"

Rule 6

Array item rules (items)

Item 1

Allowed values (enum): "sprd,sc2730-eic"

Item 2

Exact value (const): "sprd,sc2731-eic"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

EIC controller can support maximum 3 banks which has its own address base.

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

interrupts — required here #

Maximum number of items (maxItems): 1

The interrupt shared by all GPIO lines for this controller.

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "interrupt-controller", "#interrupt-cells", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    eic_debounce: gpio@40210000 {
        compatible = "sprd,sc9860-eic-debounce";
        reg = <0 0x40210000 0 0x80>;
        gpio-controller;
        #gpio-cells = <2>;
        interrupt-controller;
        #interrupt-cells = <2>;
        interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright 2022 Unisoc Inc.

Unisoc GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/sprd,gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"

The controller's registers are organized as sets of sixteen 16-bit registers with each set controlling a bank of up to 16 pins. A single interrupt is shared for all of the banks handled by the controller.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "sprd,sc9860-gpio"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "sprd,ums512-gpio"

Item 2

Exact value (const): "sprd,sc9860-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

interrupts — required here #

Maximum number of items (maxItems): 1

The interrupt shared by all GPIO lines for this controller.

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "interrupt-controller", "#interrupt-cells", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    ap_gpio: gpio@40280000 {
        compatible = "sprd,sc9860-gpio";
        reg = <0 0x40280000 0 0x1000>;
        gpio-controller;
        #gpio-cells = <2>;
        interrupt-controller;
        #interrupt-cells = <2>;
        interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright 2022 Unisoc Inc.

Nomadik GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/st,nomadik-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Nomadik GPIO driver handles Nomadik SoC GPIO blocks. This block has also been called ST STA2X11. On the Nomadik platform, this driver is intertwined with pinctrl-nomadik.

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpio@[0-9a-f]+$"

compatible — required here #

Allowed values (enum): "st,nomadik-gpio", "mobileye,eyeq5-gpio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

gpio-bank — required here #

System-wide GPIO bank index.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

st,supports-sleepmode — not listed as required here #

Whether the controller can sleep or not.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

clocks — not listed as required here #

Maximum number of items (maxItems): 1

gpio-ranges — not listed as required here #

Maximum number of items (maxItems): 1

ngpios — not listed as required here #

Minimum value (minimum): 0

Maximum value (maximum): 32

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "#gpio-cells", "gpio-controller", "interrupt-controller", "gpio-bank"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "mobileye,eyeq5-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

st,supports-sleepmode — not listed as required here

false — Not permitted by this property rule.

Examples (examples) #

gpio@8012e080 {
    compatible = "st,nomadik-gpio";
    reg =  <0x8012e080 0x80>;
    interrupts = <0 120 0x4>;
    #gpio-cells = <2>;
    gpio-controller;
    #interrupt-cells = <2>;
    interrupt-controller;
    st,supports-sleepmode;
    gpio-bank = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

ST Microelectronics SPEAr SPI CS GPIO Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/st,spear-spics-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Viresh Kumar <vireshk@kernel.org>"

SPEAr platform provides a provision to control chipselects of ARM PL022 Prime Cell spi controller through its system registers, which otherwise remains under PL022 control. If chipselect remain under PL022 control then they would be released as soon as transfer is over and TxFIFO becomes empty. This is not desired by some of the device protocols above spi which expect (multiple) transfers without releasing their chipselects. Chipselects can be controlled by software by turning them as GPIOs. SPEAr provides another interface through system registers through which software can directly control each PL022 chipselect. Hence, it is natural for SPEAr to export the control of this interface as gpio.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "st,spear-spics-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

st-spics,peripcfg-reg — required here #

Offset of the peripcfg register.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

st-spics,sw-enable-bit — required here #

Bit offset to enable software chipselect control.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

st-spics,cs-value-bit — required here #

Bit offset to drive chipselect low or high.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

st-spics,cs-enable-mask — required here #

Bitmask selecting which chipselects to enable.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

st-spics,cs-enable-shift — required here #

Bit shift for programming chipselect number.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "st-spics,peripcfg-reg", "st-spics,sw-enable-bit", "st-spics,cs-value-bit", "st-spics,cs-enable-mask", "st-spics,cs-enable-shift"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@e0700000 {
    compatible = "st,spear-spics-gpio";
    reg = <0xe0700000 0x1000>;
    st-spics,peripcfg-reg = <0x3b0>;
    st-spics,sw-enable-bit = <12>;
    st-spics,cs-value-bit = <11>;
    st-spics,cs-enable-mask = <3>;
    st-spics,cs-enable-shift = <8>;
    gpio-controller;
    #gpio-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

STMicroelectonics Port Expander (STMPE) GPIO Block

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/st,stmpe-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

STMicroelectronics Port Expander (STMPE) is a series of slow bus controllers for various expanded peripherals such as GPIO, keypad, touchscreen, ADC, PWM or rotator. It can contain one or several different peripherals connected to SPI or I2C. These bindings pertain to the GPIO portions of these expanders.

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "st,stmpe-gpio"

#gpio-cells — required here #

Exact value (const): 2

#interrupt-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 24

interrupt-controller — required here #

true — No constraints added by this property rule.

st,norequest-mask — not listed as required here #

A bitmask of GPIO lines that cannot be requested because for for example not being connected to anything on the system

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Properties matching a name pattern (patternProperties) #

^.+-hog(-[0-9]+)?$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "#gpio-cells", "#interrupt-cells", "gpio-controller", "interrupt-controller"

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Keystone 2 DSP GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/ti,keystone-dsp-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Grygorii Strashko <grygorii.strashko@ti.com>"

HOST OS userland running on ARM can send interrupts to DSP cores using the DSP GPIO controller IP. It provides 28 IRQ signals per each DSP core. This is one of the component used by the IPC mechanism used on Keystone SOCs.

For example TCI6638K2K SoC has 8 DSP GPIO controllers: - 8 for C66x CorePacx CPUs 0-7

Keystone 2 DSP GPIO controller has specific features:
- each GPIO can be configured only as output pin;
- setting GPIO value to 1 causes IRQ generation on target DSP core;
- reading pin value returns 0 - if IRQ was handled or 1 - IRQ is still
  pending.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,keystone-dsp-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

gpio,syscon-dev — required here #

Phandle and offset of device's specific registers within the syscon state control registers

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to syscon

Item 2

register offset within state control registers

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "gpio,syscon-dev"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@240 {
    compatible = "ti,keystone-dsp-gpio";
    reg = <0x240 0x4>;
    gpio-controller;
    #gpio-cells = <2>;
    gpio,syscon-dev = <&devctrl 0x240>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

OMAP GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/ti,omap-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Grygorii Strashko <grygorii.strashko@ti.com>"

The general-purpose interface combines general-purpose input/output (GPIO) banks. Each GPIO banks provides up to 32 dedicated general-purpose pins with input and output capabilities; interrupt generation in active mode and wake-up request generation in idle mode upon the detection of external events.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "ti,omap2-gpio", "ti,omap3-gpio", "ti,omap4-gpio"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "ti,am4372-gpio"

Item 2

Exact value (const): "ti,omap4-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

interrupts — required here #

Maximum number of items (maxItems): 1

gpio-ranges — not listed as required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

ti,gpio-always-on — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Indicates if a GPIO bank is always powered and will never lose its logic state.

ti,hwmods — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Deprecated (deprecated): true

Name of the hwmod associated with the GPIO. Needed on some legacy OMAP SoCs which have not been converted to the ti,sysc interconnect hierarchy.

ti,no-reset-on-init — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Deprecated (deprecated): true

Do not reset on init. Used with ti,hwmods on some legacy OMAP SoCs which have not been converted to the ti,sysc interconnect hierarchy.

Properties matching a name pattern (patternProperties) #

^(.+-hog(-[0-9]+)?)$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "interrupt-controller", "#interrupt-cells", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

gpio0: gpio@0 {
    compatible = "ti,omap4-gpio";
    reg = <0x0 0x1000>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupt-controller;
    #interrupt-cells = <2>;
    interrupts = <96>;
    ti,gpio-always-on;

    ls-buf-en-hog {
        gpio-hog;
        gpios = <10 GPIO_ACTIVE_HIGH>;
        output-high;
        line-name = "LS_BUF_EN";
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

TI TWL4030 GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/ti,twl4030-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Aaro Koskinen <aaro.koskinen@iki.fi>", "Andreas Kemnade <andreas@kemnade.info>", "Kevin Hilman <khilman@baylibre.com>", "Roger Quadros <rogerq@kernel.org>", "Tony Lindgren <tony@atomide.com>"

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "ti,twl4030-gpio"

#gpio-cells — not listed as required here #

Exact value (const): 2

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 1

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

ti,debounce — not listed as required here #

Debounce control bits. Each bit corresponds to a GPIO pin.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

ti,mmc-cd — not listed as required here #

MMC card detect control bits. Each bit corresponds to a GPIO pin for VMMC(n+1).

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

ti,pullups — not listed as required here #

Pull-up control bits. Each bit corresponds to a GPIO pin.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

ti,pulldowns — not listed as required here #

Pull-down control bits. Each bit corresponds to a GPIO pin.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

ti,use-leds — not listed as required here #

Value type (type): "boolean"

Enables LEDA and LEDB outputs if set

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio {
    compatible = "ti,twl4030-gpio";
    #gpio-cells = <2>;
    gpio-controller;
    #interrupt-cells = <1>;
    interrupt-controller;
    ti,use-leds;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Toshiba Visconti ARM SoCs GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/toshiba,gpio-visconti.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "toshiba,gpio-tmpv7708"

reg — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

gpio-ranges — required here #

true — No constraints added by this property rule.

gpio-controller — required here #

true — No constraints added by this property rule.

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

interrupts — not listed as required here #

interrupt mapping one per GPIO.

Minimum number of items (minItems): 16

Maximum number of items (maxItems): 16

Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-ranges", "gpio-controller", "interrupt-controller", "#interrupt-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    gpio: gpio@28020000 {
        compatible = "toshiba,gpio-tmpv7708";
        reg = <0 0x28020000 0 0x1000>;
        #gpio-cells = <0x2>;
        gpio-ranges = <&pmux 0 0 32>;
        gpio-controller;
        interrupt-controller;
        #interrupt-cells = <2>;
        interrupt-parent = <&gic>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Trivial 2-cell GPIO controllers

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/trivial-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Bartosz Golaszewski <brgl@bgdev.pl>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "cirrus,ep7312-gpio"

Item 2

Exact value (const): "cirrus,ep7209-gpio"

Rule 2

Allowed values (enum): "apm,xgene-gpio", "cirrus,ep7209-gpio", "cznic,moxtet-gpio", "dlg,slg7xl45106", "fcs,fxl6408", "fsl,ls1046aqds-fpga-gpio-stat-pres2", "fsl,lx2160ardb-fpga-gpio-sfp", "gateworks,pld-gpio", "ibm,ppc4xx-gpio", "loongson,ls1x-gpio", "maxim,max77620", "nintendo,hollywood-gpio", "nxp,pca9570", "nxp,pca9571", "rockchip,rk3328-grf-gpio", "snps,creg-gpio-hsdk", "technologic,ts4800-gpio", "technologic,ts4900-gpio", "technologic,ts7970-gpio", "ti,741g125", "ti,741g174", "ti,742g125", "ti,7474", "ti,74125", "ti,74175", "ti,74365", "ti,74174", "ti,74244", "ti,74273", "ti,741624", "ti,7416374", "ti,lp3943-gpio", "ti,palmas-gpio", "ti,tpic2810", "ti,tps80036-gpio", "ti,tps65913-gpio", "ti,tps65914-gpio"

reg — not listed as required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

true — No constraints added by this property rule.

ngpios — not listed as required here #

true — No constraints added by this property rule.

Properties matching a name pattern (patternProperties) #

^(hog-[0-9]+|.+-hog(-[0-9]+)?)$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

Required in this object (required): "compatible", "#gpio-cells", "gpio-controller"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "maxim,max77620", "rockchip,rk3328-grf-gpio", "ti,lp3943-gpio", "ti,palmas-gpio", "ti,tps80036-gpio", "ti,tps65913-gpio", "ti,tps65914-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

false — Not permitted by this property rule.

When the condition does not match (else) #

Required in this object (required): "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@1701c000 {
    compatible = "apm,xgene-gpio";
    reg = <0x1701c000 0x40>;
    gpio-controller;
    #gpio-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 39: for 741G125 (1-bit Input),

Line 40: for 741G74 (1-bit Output),

Line 41: for 742G125 (2-bit Input),

Line 42: for 7474 (2-bit Output),

Line 43: for 74125 (4-bit Input),

Line 44: for 74175 (4-bit Output),

Line 45: for 74365 (6-bit Input),

Line 46: for 74174 (6-bit Output),

Line 47: for 74244 (8-bit Input),

Line 48: for 74273 (8-bit Output),

Line 49: for 741624 (16-bit Input),

Line 50: for 7416374 (16-bit Output).

Line 70: Don't add more properties

X-Powers AXP209 GPIO

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/x-powers,axp209-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>"

Properties and child nodes (properties) #

#gpio-cells — required here #

Exact value (const): 2

The first cell is the pin number and the second is the GPIO flags.

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "x-powers,axp209-gpio", "x-powers,axp221-gpio", "x-powers,axp813-gpio"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "x-powers,axp223-gpio", "x-powers,axp809-gpio"

Item 2

Exact value (const): "x-powers,axp221-gpio"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "x-powers,axp803-gpio"

Item 2

Exact value (const): "x-powers,axp813-gpio"

gpio-controller — required here #

true — No constraints added by this property rule.

Properties matching a name pattern (patternProperties) #

^.*-pins?$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/pinctrl/pinmux-node.yaml#

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

pins — not listed as required here

Array item rules (items)

Allowed values (enum): "GPIO0", "GPIO1", "GPIO2", "GPIO3"

function — not listed as required here

Allowed values (enum): "adc", "ldo", "gpio_in", "gpio_out"

Required in this object (required): "compatible", "#gpio-cells", "gpio-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Xilinx AXI GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/xlnx,gpio-xilinx.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Neeli Srinivas <srinivas.neeli@amd.com>"

The AXI GPIO design provides a general purpose input/output interface to an AXI4-Lite interface. The AXI GPIO can be configured as either a single or a dual-channel device. The width of each channel is independently configurable. The channels can be configured to generate an interrupt when a transition on any of their inputs occurs.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "xlnx,xps-gpio-1.00.a"

reg — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

strings describing the names of each gpio line

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 64

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

clocks — required here #

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here #

true — No constraints added by this property rule.

xlnx,all-inputs — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

This option sets this GPIO channel1 bits in input mode.

xlnx,all-inputs-2 — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

This option sets this GPIO channel2 bits in input mode.

xlnx,all-outputs — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

This option sets this GPIO channel1 bits in output mode.

xlnx,all-outputs-2 — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

This option sets this GPIO channel2 bits in output mode.

xlnx,dout-default — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Sets the default value of all the enabled bits of channel1.

Default value (default): 0

xlnx,dout-default-2 — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Sets the default value of all the enabled bits of channel2.

Default value (default): 0

xlnx,gpio-width — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The value defines the bit width of the GPIO channel1.

Minimum value (minimum): 1

Maximum value (maximum): 32

Default value (default): 32

xlnx,gpio2-width — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The value defines the bit width of the GPIO channel2.

Minimum value (minimum): 1

Maximum value (maximum): 32

Default value (default): 32

xlnx,interrupt-present — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

This parameter enables interrupt control logic and interrupt registers in GPIO module.

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

xlnx,is-dual — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

This parameter enables a second GPIO channel (GPIO2).

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

xlnx,tri-default — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

This value configures the input or output mode of each bit of GPIO channel1.

xlnx,tri-default-2 — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

This value configures the input or output mode of each bit of GPIO channel2.

Required in this object (required): "reg", "compatible", "clocks", "gpio-controller", "#gpio-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

gpio@a0020000 {
    compatible = "xlnx,xps-gpio-1.00.a";
    reg = <0xa0020000 0x10000>;
    #gpio-cells = <2>;
    #interrupt-cells = <0x2>;
    clocks = <&zynqmp_clk 71>;
    gpio-controller;
    interrupt-controller;
    interrupt-names = "ip2intc_irpt";
    interrupt-parent = <&gic>;
    interrupts = <0 89 4>;
    xlnx,all-inputs = <0x0>;
    xlnx,all-inputs-2 = <0x0>;
    xlnx,all-outputs = <0x0>;
    xlnx,all-outputs-2 = <0x0>;
    xlnx,dout-default = <0x0>;
    xlnx,dout-default-2 = <0x0>;
    xlnx,gpio-width = <0x20>;
    xlnx,gpio2-width = <0x20>;
    xlnx,interrupt-present = <0x1>;
    xlnx,is-dual = <0x1>;
    xlnx,tri-default = <0xFFFFFFFF>;
    xlnx,tri-default-2 = <0xFFFFFFFF>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

ZynqMP Mode Pin GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/xlnx,zynqmp-gpio-modepin.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

PS_MODE is 4-bits boot mode pins sampled on POR deassertion. Mode Pin GPIO controller with configurable from numbers of pins (from 0 to 3 per PS_MODE). Every pin can be configured as input/output.

Maintainers (maintainers): "Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "xlnx,zynqmp-gpio-modepin"

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

label — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "gpio-controller", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

zynqmp-firmware {
    gpio {
        compatible = "xlnx,zynqmp-gpio-modepin";
        gpio-controller;
        #gpio-cells = <2>;
        label = "modepin";
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Xylon LogiCVC GPIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gpio bindings

Schema identifier ($id): "http://devicetree.org/schemas/gpio/xylon,logicvc-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Paul Kocialkowski <paul.kocialkowski@bootlin.com>"

The LogiCVC GPIO describes the GPIO block included in the LogiCVC display controller. These are meant to be used for controlling display-related signals.

The controller exposes GPIOs from the display and power control registers, which are mapped by the driver as follows: - GPIO[4:0] (display control) mapped to index 0-4 - EN_BLIGHT (power control) mapped to index 5 - EN_VDD (power control) mapped to index 6 - EN_VEE (power control) mapped to index 7 - V_EN (power control) mapped to index 8

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpio@[0-9a-f]+$"

compatible — required here #

Allowed values (enum): "xylon,logicvc-3.02.a-gpio"

reg — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 9

Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

logicvc: logicvc@43c00000 {
  compatible = "xylon,logicvc-3.02.a", "syscon", "simple-mfd";
  reg = <0x43c00000 0x6000>;

  #address-cells = <1>;
  #size-cells = <1>;

  logicvc_gpio: gpio@40 {
    compatible = "xylon,logicvc-3.02.a-gpio";
    reg = <0x40 0x40>;
    gpio-controller;
    #gpio-cells = <2>;
    gpio-line-names = "GPIO0", "GPIO1", "GPIO2", "GPIO3", "GPIO4",
           "EN_BLIGHT", "EN_VDD", "EN_VEE", "V_EN";
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 2: Copyright 2019 Bootlin

Peios Learn — documentation for Peios software.

Built with Trail.