Virtio GPIO controller

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)

Edit this page