Airoha EN7523 GPIO controller

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

Edit this page