NVIDIA Tegra GPIO Controller (Tegra20 - Tegra210)

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)

Edit this page