Marvell EBU GPIO controller
Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-mvebu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thomas Petazzoni <thomas.petazzoni@free-electrons.com>", "Andrew Lunn <andrew@lunn.ch>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"marvell,armada-8k-gpio","marvell,orion-gpio"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"marvell,mv78200-gpio","marvell,armada-370-gpio"Item 2
Exact value (
const):"marvell,orion-gpio"
Rule 3
Deprecated binding
Array item rules (
items)Item 1
Exact value (
const):"marvell,armadaxp-gpio"Item 2
Exact value (
const):"marvell,orion-gpio"Deprecated (
deprecated):true
reg — not listed as required here #
Address and length of the register set for the device. Not used for marvell,armada-8k-gpio.
A second entry can be provided, for the PWM function using the GPIO Blink Counter on/off registers.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"gpio"
Item 2
Exact value (
const):"pwm"
Minimum number of items (minItems): 1
offset — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Offset in the register map for the gpio registers (in bytes)
interrupts — not listed as required here #
The list of interrupts that are used for all the pins managed by this GPIO bank. There can be more than one interrupt (example: 1 interrupt per 8 pins on Armada XP, which means 4 interrupts per bank of 32 GPIOs).
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
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
gpio-controller — required here #
true — No constraints added by this property rule.
ngpios — required here #
Minimum value (minimum): 1
Maximum value (maximum): 32
#gpio-cells — required here #
Exact value (const): 2
gpio-ranges — not listed as required here #
Maximum number of items (maxItems): 1
marvell,pwm-offset — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Offset in the register map for the pwm registers (in bytes)
#pwm-cells — not listed as required here #
The first cell is the GPIO line number. The second cell is the period in nanoseconds.
Exact value (const): 2
clocks — not listed as required here #
Clock(s) used for PWM function.
Array item rules (items) #
Item 1
Core clock
Item 2
AXI bus clock
Minimum number of items (minItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"axi"
Minimum number of items (minItems): 1
Properties matching a name pattern (patternProperties) #
^(.+-hog(-[0-9]+)?)$ — name matches this regular expression #
Value type (type): "object"
Required in this object (required): "gpio-hog"
Required in this object (required): "compatible", "gpio-controller", "ngpios", "#gpio-cells"
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):"marvell,armada-8k-gpio"When the condition matches (
then) #When the condition does not match (
else) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
gpio@d0018100 {
compatible = "marvell,armadaxp-gpio", "marvell,orion-gpio";
reg = <0xd0018100 0x40>, <0xd0018800 0x30>;
ngpios = <32>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
interrupts = <16>, <17>, <18>, <19>;
};
gpio@18140 {
compatible = "marvell,armada-370-gpio", "marvell,orion-gpio";
reg = <0x18140 0x40>, <0x181c8 0x08>;
reg-names = "gpio", "pwm";
ngpios = <17>;
gpio-controller;
#gpio-cells = <2>;
#pwm-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
interrupts = <87>, <88>, <89>;
clocks = <&coreclk 0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)