1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/pinctrl/pinctrl-mt8195.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Mediatek MT8195 Pin Controller
10 - Sean Wang <sean.wang@mediatek.com>
13 The Mediatek's Pin controller is used to control SoC pins.
17 const: mediatek,mt8195-pinctrl
23 Number of cells in GPIO specifier. Since the generic GPIO binding is used,
24 the amount of cells must be specified as 2. See the below
25 mentioned gpio binding representation for description of particular cells.
29 description: gpio valid number range.
34 Physical address base for gpio base registers. There are 8 GPIO
35 physical address base in mt8195.
40 Gpio base register names.
43 interrupt-controller: true
49 description: The interrupt outputs to sysirq.
52 #PIN CONFIGURATION NODES
57 A pinctrl node should contain at least one subnodes representing the
58 pinctrl groups available on the machine. Each subnode will list the
59 pins it needs, and how they should be configured, with regard to muxer
60 configuration, pullups, drive strength, input enable/disable and
62 An example of using macro:
64 /* GPIO0 set as multifunction GPIO0 */
66 pinmux = <PINMUX_GPIO0__FUNC_GPIO0>;
68 /* GPIO8 set as multifunction SDA0 */
70 pinmux = <PINMUX_GPIO8__FUNC_SDA0>;
73 $ref: "pinmux-node.yaml"
78 Integer array, represents gpio pin number and mux setting.
79 Supported pin number and mux varies for different SoCs, and are defined
80 as macros in dt-bindings/pinctrl/<soc>-pinfunc.h directly.
83 enum: [2, 4, 6, 8, 10, 12, 14, 16]
99 input-schmitt-enable: true
101 input-schmitt-disable: true
106 additionalProperties: false
112 - interrupt-controller
118 additionalProperties: false
122 #include <dt-bindings/pinctrl/mt8195-pinfunc.h>
123 #include <dt-bindings/interrupt-controller/arm-gic.h>
124 pio: pinctrl@10005000 {
125 compatible = "mediatek,mt8195-pinctrl";
126 reg = <0x10005000 0x1000>,
134 reg-names = "iocfg0", "iocfg_bm", "iocfg_bl",
135 "iocfg_br", "iocfg_lm", "iocfg_rb",
139 gpio-ranges = <&pio 0 0 144>;
140 interrupt-controller;
141 interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH 0>;
142 #interrupt-cells = <2>;
145 pinmux = <PINMUX_GPIO0__FUNC_GPIO0>;