Apple GPIO controller
Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/apple,pinctrl.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mark Kettenis <kettenis@openbsd.org>"
The Apple GPIO controller is a simple combined pin and GPIO controller present on Apple ARM SoC platforms, including various iPhone and iPad devices and the "Apple Silicon" Macs.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"apple,t6020-pinctrl"Item 2
Exact value (
const):"apple,t8103-pinctrl"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"apple,s5l8960x-pinctrl","apple,t7000-pinctrl","apple,s8000-pinctrl","apple,t8010-pinctrl","apple,t8015-pinctrl","apple,t8103-pinctrl","apple,t8112-pinctrl","apple,t6000-pinctrl"Item 2
Exact value (
const):"apple,pinctrl"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as 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
gpio-ranges — required here #
Maximum number of items (maxItems): 1
apple,npins — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The number of pins in this GPIO controller.
interrupts — not listed as required here #
One interrupt for each of the (up to 7) interrupt groups supported by the controller sorted by interrupt group number in ascending order.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 7
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
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
-pins$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): pinmux-node.yaml#
Properties and child nodes (properties) #
pinmux — required here
Values are constructed from pin number and alternate function configuration number using the APPLE_PINMUX() helper macro defined in include/dt-bindings/pinctrl/apple.h.
Required in this object (required): "pinmux"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pinctrl.yaml#
Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "gpio-ranges", "apple,npins"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/apple-aic.h>
#include <dt-bindings/pinctrl/apple.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
pinctrl: pinctrl@23c100000 {
compatible = "apple,t8103-pinctrl", "apple,pinctrl";
reg = <0x2 0x3c100000 0x0 0x100000>;
clocks = <&gpio_clk>;
gpio-controller;
#gpio-cells = <2>;
gpio-ranges = <&pinctrl 0 0 212>;
apple,npins = <212>;
interrupt-controller;
#interrupt-cells = <2>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 16 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 17 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 18 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 19 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 20 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 21 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 22 IRQ_TYPE_LEVEL_HIGH>;
pcie_pins: pcie-pins {
pinmux = <APPLE_PINMUX(150, 1)>,
<APPLE_PINMUX(151, 1)>,
<APPLE_PINMUX(32, 1)>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 24: Do not add additional SoC to this list.