Microsemi Ocelot pin controller
Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/mscc,ocelot-pinctrl.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexandre Belloni <alexandre.belloni@bootlin.com>", "Lars Povlsen <lars.povlsen@microchip.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"microchip,lan96455f-pinctrl","microchip,lan966x-pinctrl","microchip,lan9691-pinctrl","microchip,sparx5-pinctrl","mscc,jaguar2-pinctrl","mscc,luton-pinctrl","mscc,ocelot-pinctrl","mscc,serval-pinctrl","mscc,servalt-pinctrl"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"microchip,lan9698-pinctrl","microchip,lan9696-pinctrl","microchip,lan9694-pinctrl","microchip,lan9693-pinctrl","microchip,lan9692-pinctrl"Item 2
Exact value (
const):"microchip,lan9691-pinctrl"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"microchip,lan96457f-pinctrl","microchip,lan96459f-pinctrl"Item 2
Exact value (
const):"microchip,lan96455f-pinctrl"
reg — required here #
Array item rules (items) #
Item 1
Base address
Item 2
Extended pin configuration registers
Minimum number of items (minItems): 1
gpio-controller — required here #
true — No constraints added by this property rule.
#gpio-cells — required here #
Exact value (const): 2
gpio-ranges — required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
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
resets — not listed as required here #
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Optional shared switch reset.
Array item rules (items) #
Item 1
Exact value (
const):"switch"
Properties matching a name pattern (patternProperties) #
-pins$ — name matches this regular expression #
Value type (type): "object"
All of these rules must match (allOf) #
Rule 1
Shared schema rule (
$ref):pinmux-node.yaml
Rule 2
Shared schema rule (
$ref):pincfg-node.yaml
Properties and child nodes (properties) #
function — required here
true — No constraints added by this property rule.
pins — required here
true — No constraints added by this property rule.
output-high — not listed as required here
true — No constraints added by this property rule.
output-low — not listed as required here
true — No constraints added by this property rule.
drive-strength — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "function", "pins"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "gpio-ranges"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pinctrl.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"microchip,lan966x-pinctrl","microchip,lan9691-pinctrl","microchip,sparx5-pinctrl"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
gpio: pinctrl@71070034 {
compatible = "mscc,ocelot-pinctrl";
reg = <0x71070034 0x28>;
gpio-controller;
#gpio-cells = <2>;
gpio-ranges = <&gpio 0 0 22>;
uart_pins: uart-pins {
pins = "GPIO_6", "GPIO_7";
function = "uart";
};
uart2_pins: uart2-pins {
pins = "GPIO_12", "GPIO_13";
function = "uart2";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause