HiSilicon common GPIO controller
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)