1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/pinctrl/mediatek,mt8192-pinctrl.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek MT8192 Pin Controller
10 - Sean Wang <sean.wang@mediatek.com>
13 The MediaTek's MT8192 Pin controller is used to control SoC pins.
17 const: mediatek,mt8192-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 mentioned gpio
25 binding representation for description of particular cells.
29 description: GPIO valid number range.
36 Physical address base for GPIO base registers. There are 11 GPIO physical
37 address base in mt8192.
42 GPIO base register names.
45 interrupt-controller: true
51 description: The interrupt outputs to sysirq.
54 # PIN CONFIGURATION NODES
58 additionalProperties: false
63 A pinctrl node should contain at least one subnodes representing the
64 pinctrl groups available on the machine. Each subnode will list the
65 pins it needs, and how they should be configured, with regard to muxer
66 configuration, pullups, drive strength, input enable/disable and input
68 $ref: pinmux-node.yaml
73 Integer array, represents gpio pin number and mux setting.
74 Supported pin number and mux varies for different SoCs, and are
75 defined as macros in dt-bindings/pinctrl/<soc>-pinfunc.h directly.
79 It can support some arguments, such as MTK_DRIVE_4mA,
80 MTK_DRIVE_6mA, etc. See dt-bindings/pinctrl/mt65xx.h. It can only
81 support 2/4/6/8/10/12/14/16mA in mt8192.
82 enum: [2, 4, 6, 8, 10, 12, 14, 16]
84 drive-strength-microamp:
85 enum: [125, 250, 500, 1000]
90 description: normal pull down.
91 - enum: [100, 101, 102, 103]
92 description: PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0_
93 defines in dt-bindings/pinctrl/mt65xx.h.
94 - enum: [200, 201, 202, 203]
95 description: RSEL pull down type. See MTK_PULL_SET_RSEL_ defines
96 in dt-bindings/pinctrl/mt65xx.h.
101 description: normal pull up.
102 - enum: [100, 101, 102, 103]
103 description: PUPD/R1/R0 pull up type. See MTK_PUPD_SET_R1R0_
104 defines in dt-bindings/pinctrl/mt65xx.h.
105 - enum: [200, 201, 202, 203]
106 description: RSEL pull up type. See MTK_PULL_SET_RSEL_ defines
107 in dt-bindings/pinctrl/mt65xx.h.
119 input-schmitt-enable: true
121 input-schmitt-disable: true
126 additionalProperties: false
129 - $ref: pinctrl.yaml#
135 - interrupt-controller
141 additionalProperties: false
145 #include <dt-bindings/pinctrl/mt8192-pinfunc.h>
146 #include <dt-bindings/interrupt-controller/arm-gic.h>
147 pio: pinctrl@10005000 {
148 compatible = "mediatek,mt8192-pinctrl";
149 reg = <0x10005000 0x1000>,
160 reg-names = "iocfg0", "iocfg_rm", "iocfg_bm",
161 "iocfg_bl", "iocfg_br", "iocfg_lm",
162 "iocfg_lb", "iocfg_rt", "iocfg_lt",
166 gpio-ranges = <&pio 0 0 220>;
167 interrupt-controller;
168 interrupts = <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH 0>;
169 #interrupt-cells = <2>;
173 pinmux = <PINMUX_GPIO157__FUNC_SPI1_A_CSB>,
174 <PINMUX_GPIO159__FUNC_SPI1_A_MO>,
175 <PINMUX_GPIO156__FUNC_SPI1_A_CLK>;
180 pinmux = <PINMUX_GPIO158__FUNC_SPI1_A_MI>;