EP93xx GPIO controller
Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-ep9301.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>", "Bartosz Golaszewski <brgl@bgdev.pl>", "Nikita Shubin <nikita.shubin@maquefel.me>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"cirrus,ep9301-gpio"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"cirrus,ep9302-gpio","cirrus,ep9307-gpio","cirrus,ep9312-gpio","cirrus,ep9315-gpio"Item 2
Exact value (
const):"cirrus,ep9301-gpio"
reg — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
data register
Item 2
direction register
Item 3
interrupt registers base
reg-names — not listed as required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"data"
Item 2
Exact value (
const):"dir"
Item 3
Exact value (
const):"intr"
gpio-controller — required here #
true — No constraints added by this property rule.
gpio-ranges — not listed as 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
interrupts — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Maximum number of items (
maxItems):1
Rule 2
port F has dedicated irq line for each gpio line
Maximum number of items (
maxItems):8
Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
gpio@80840000 {
compatible = "cirrus,ep9301-gpio";
reg = <0x80840000 0x04>,
<0x80840010 0x04>,
<0x80840090 0x1c>;
reg-names = "data", "dir", "intr";
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
interrupt-parent = <&vic1>;
interrupts = <27>;
};
gpio@80840004 {
compatible = "cirrus,ep9301-gpio";
reg = <0x80840004 0x04>,
<0x80840014 0x04>,
<0x808400ac 0x1c>;
reg-names = "data", "dir", "intr";
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
interrupt-parent = <&vic1>;
interrupts = <27>;
};
gpio@80840008 {
compatible = "cirrus,ep9301-gpio";
reg = <0x80840008 0x04>,
<0x80840018 0x04>;
reg-names = "data", "dir";
gpio-controller;
#gpio-cells = <2>;
};
gpio@8084000c {
compatible = "cirrus,ep9301-gpio";
reg = <0x8084000c 0x04>,
<0x8084001c 0x04>;
reg-names = "data", "dir";
gpio-controller;
#gpio-cells = <2>;
};
gpio@80840020 {
compatible = "cirrus,ep9301-gpio";
reg = <0x80840020 0x04>,
<0x80840024 0x04>;
reg-names = "data", "dir";
gpio-controller;
#gpio-cells = <2>;
};
gpio@80840030 {
compatible = "cirrus,ep9301-gpio";
reg = <0x80840030 0x04>,
<0x80840034 0x04>,
<0x8084004c 0x1c>;
reg-names = "data", "dir", "intr";
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
interrupts-extended = <&vic0 19>, <&vic0 20>,
<&vic0 21>, <&vic0 22>,
<&vic1 15>, <&vic1 16>,
<&vic1 17>, <&vic1 18>;
};
gpio@80840038 {
compatible = "cirrus,ep9301-gpio";
reg = <0x80840038 0x04>,
<0x8084003c 0x04>;
reg-names = "data", "dir";
gpio-controller;
#gpio-cells = <2>;
};
gpio@80840040 {
compatible = "cirrus,ep9301-gpio";
reg = <0x80840040 0x04>,
<0x80840044 0x04>;
reg-names = "data", "dir";
gpio-controller;
#gpio-cells = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)