1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/pinctrl/apple,pinctrl.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Apple GPIO controller
10 - Mark Kettenis <kettenis@openbsd.org>
13 The Apple GPIO controller is a simple combined pin and GPIO
14 controller present on Apple ARM SoC platforms, including various
15 iPhone and iPad devices and the "Apple Silicon" Macs.
20 - const: apple,t8103-pinctrl
21 - const: apple,pinctrl
38 description: One interrupt for each of the (up to 7) interrupt
39 groups supported by the controller sorted by interrupt group
40 number in ascending order.
44 interrupt-controller: true
49 $ref: pinmux-node.yaml#
54 Values are constructed from pin number and alternate function
55 configuration number using the APPLE_PINMUX() helper macro
56 defined in include/dt-bindings/pinctrl/apple.h.
61 additionalProperties: false
70 additionalProperties: false
74 #include <dt-bindings/interrupt-controller/apple-aic.h>
75 #include <dt-bindings/pinctrl/apple.h>
81 pinctrl: pinctrl@23c100000 {
82 compatible = "apple,t8103-pinctrl", "apple,pinctrl";
83 reg = <0x2 0x3c100000 0x0 0x100000>;
88 gpio-ranges = <&pinctrl 0 0 212>;
91 interrupt-parent = <&aic>;
92 interrupts = <AIC_IRQ 16 IRQ_TYPE_LEVEL_HIGH>,
93 <AIC_IRQ 17 IRQ_TYPE_LEVEL_HIGH>,
94 <AIC_IRQ 18 IRQ_TYPE_LEVEL_HIGH>,
95 <AIC_IRQ 19 IRQ_TYPE_LEVEL_HIGH>,
96 <AIC_IRQ 20 IRQ_TYPE_LEVEL_HIGH>,
97 <AIC_IRQ 21 IRQ_TYPE_LEVEL_HIGH>,
98 <AIC_IRQ 22 IRQ_TYPE_LEVEL_HIGH>;
100 pcie_pins: pcie-pins {
101 pinmux = <APPLE_PINMUX(150, 1)>,
102 <APPLE_PINMUX(151, 1)>,
103 <APPLE_PINMUX(32, 1)>;