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.
23 - const: apple,pinctrl
40 $ref: /schemas/types.yaml#/definitions/uint32
41 description: The number of pins in this GPIO controller.
44 description: One interrupt for each of the (up to 7) interrupt
45 groups supported by the controller sorted by interrupt group
46 number in ascending order.
50 interrupt-controller: true
61 $ref: pinmux-node.yaml#
66 Values are constructed from pin number and alternate function
67 configuration number using the APPLE_PINMUX() helper macro
68 defined in include/dt-bindings/pinctrl/apple.h.
73 additionalProperties: false
76 - $ref: "pinctrl.yaml#"
86 additionalProperties: false
90 #include <dt-bindings/interrupt-controller/apple-aic.h>
91 #include <dt-bindings/pinctrl/apple.h>
97 pinctrl: pinctrl@23c100000 {
98 compatible = "apple,t8103-pinctrl", "apple,pinctrl";
99 reg = <0x2 0x3c100000 0x0 0x100000>;
100 clocks = <&gpio_clk>;
104 gpio-ranges = <&pinctrl 0 0 212>;
107 interrupt-controller;
108 #interrupt-cells = <2>;
109 interrupt-parent = <&aic>;
110 interrupts = <AIC_IRQ 16 IRQ_TYPE_LEVEL_HIGH>,
111 <AIC_IRQ 17 IRQ_TYPE_LEVEL_HIGH>,
112 <AIC_IRQ 18 IRQ_TYPE_LEVEL_HIGH>,
113 <AIC_IRQ 19 IRQ_TYPE_LEVEL_HIGH>,
114 <AIC_IRQ 20 IRQ_TYPE_LEVEL_HIGH>,
115 <AIC_IRQ 21 IRQ_TYPE_LEVEL_HIGH>,
116 <AIC_IRQ 22 IRQ_TYPE_LEVEL_HIGH>;
118 pcie_pins: pcie-pins {
119 pinmux = <APPLE_PINMUX(150, 1)>,
120 <APPLE_PINMUX(151, 1)>,
121 <APPLE_PINMUX(32, 1)>;