OMAP GPIO controller

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)

Edit this page