Nomadik GPIO controller
Schema identifier ($id): "http://devicetree.org/schemas/gpio/st,nomadik-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Nomadik GPIO driver handles Nomadik SoC GPIO blocks. This block has also been called ST STA2X11. On the Nomadik platform, this driver is intertwined with pinctrl-nomadik.
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^gpio@[0-9a-f]+$"
compatible — required here #
Allowed values (enum): "st,nomadik-gpio", "mobileye,eyeq5-gpio"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#gpio-cells — required here #
Exact value (const): 2
gpio-controller — required here #
true — No constraints added by this property rule.
interrupt-controller — required here #
true — No constraints added by this property rule.
#interrupt-cells — not listed as required here #
Exact value (const): 2
gpio-bank — required here #
System-wide GPIO bank index.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
st,supports-sleepmode — not listed as required here #
Whether the controller can sleep or not.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
clocks — not listed as required here #
Maximum number of items (maxItems): 1
gpio-ranges — not listed as required here #
Maximum number of items (maxItems): 1
ngpios — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 32
resets — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "#gpio-cells", "gpio-controller", "interrupt-controller", "gpio-bank"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"mobileye,eyeq5-gpio"When the condition matches (
then) #Properties and child nodes (
properties)
st,supports-sleepmode— not listed as required here
false— Not permitted by this property rule.
Examples (examples) #
gpio@8012e080 {
compatible = "st,nomadik-gpio";
reg = <0x8012e080 0x80>;
interrupts = <0 120 0x4>;
#gpio-cells = <2>;
gpio-controller;
#interrupt-cells = <2>;
interrupt-controller;
st,supports-sleepmode;
gpio-bank = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)