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.
36 Physical address base for gpio base registers. There are 8 GPIO
37 physical address base in mt8195.
42 Gpio base register names.
45 interrupt-controller: true
51 description: The interrupt outputs to sysirq.
54 mediatek,rsel-resistance-in-si-unit:
57 Identifying i2c pins pull up/down type which is RSEL. It can support
58 RSEL define or si unit value(ohm) to set different resistance.
60 # PIN CONFIGURATION NODES
64 additionalProperties: false
68 additionalProperties: false
70 A pinctrl node should contain at least one subnodes representing the
71 pinctrl groups available on the machine. Each subnode will list the
72 pins it needs, and how they should be configured, with regard to muxer
73 configuration, pullups, drive strength, input enable/disable and
75 An example of using macro:
77 /* GPIO0 set as multifunction GPIO0 */
80 pinmux = <PINMUX_GPIO0__FUNC_GPIO0>;
83 /* GPIO8 set as multifunction SDA0 */
86 pinmux = <PINMUX_GPIO8__FUNC_SDA0>;
90 $ref: "pinmux-node.yaml"
95 Integer array, represents gpio pin number and mux setting.
96 Supported pin number and mux varies for different SoCs, and are
97 defined as macros in dt-bindings/pinctrl/<soc>-pinfunc.h
101 enum: [2, 4, 6, 8, 10, 12, 14, 16]
103 drive-strength-microamp:
104 enum: [125, 250, 500, 1000]
109 - enum: [100, 101, 102, 103]
110 description: mt8195 pull down PUPD/R0/R1 type define value.
111 - enum: [200, 201, 202, 203, 204, 205, 206, 207]
112 description: mt8195 pull down RSEL type define value.
113 - enum: [75000, 5000]
114 description: mt8195 pull down RSEL type si unit value(ohm).
116 For pull down type is normal, it don't need add RSEL & R1R0 define
117 and resistance value.
118 For pull down type is PUPD/R0/R1 type, it can add R1R0 define to
119 set different resistance. It can support "MTK_PUPD_SET_R1R0_00" &
120 "MTK_PUPD_SET_R1R0_01" & "MTK_PUPD_SET_R1R0_10" &
121 "MTK_PUPD_SET_R1R0_11" define in mt8195.
122 For pull down type is RSEL, it can add RSEL define & resistance
123 value(ohm) to set different resistance by identifying property
124 "mediatek,rsel-resistance-in-si-unit".
125 It can support "MTK_PULL_SET_RSEL_000" & "MTK_PULL_SET_RSEL_001"
126 & "MTK_PULL_SET_RSEL_010" & "MTK_PULL_SET_RSEL_011"
127 & "MTK_PULL_SET_RSEL_100" & "MTK_PULL_SET_RSEL_101"
128 & "MTK_PULL_SET_RSEL_110" & "MTK_PULL_SET_RSEL_111"
129 define in mt8195. It can also support resistance value(ohm)
130 "75000" & "5000" in mt8195.
132 An example of using RSEL define:
136 pinmux = <PINMUX_GPIO8__FUNC_SDA0>;
137 bias-pull-down = <MTK_PULL_SET_RSEL_001>;
141 An example of using si unit resistance value(ohm):
143 mediatek,rsel-resistance-in-si-unit;
148 pinmux = <PINMUX_GPIO8__FUNC_SDA0>;
149 bias-pull-down = <75000>;
157 - enum: [100, 101, 102, 103]
158 description: mt8195 pull up PUPD/R0/R1 type define value.
159 - enum: [200, 201, 202, 203, 204, 205, 206, 207]
160 description: mt8195 pull up RSEL type define value.
161 - enum: [1000, 1500, 2000, 3000, 4000, 5000, 10000, 75000]
162 description: mt8195 pull up RSEL type si unit value(ohm).
164 For pull up type is normal, it don't need add RSEL & R1R0 define
165 and resistance value.
166 For pull up type is PUPD/R0/R1 type, it can add R1R0 define to
167 set different resistance. It can support "MTK_PUPD_SET_R1R0_00" &
168 "MTK_PUPD_SET_R1R0_01" & "MTK_PUPD_SET_R1R0_10" &
169 "MTK_PUPD_SET_R1R0_11" define in mt8195.
170 For pull up type is RSEL, it can add RSEL define & resistance
171 value(ohm) to set different resistance by identifying property
172 "mediatek,rsel-resistance-in-si-unit".
173 It can support "MTK_PULL_SET_RSEL_000" & "MTK_PULL_SET_RSEL_001"
174 & "MTK_PULL_SET_RSEL_010" & "MTK_PULL_SET_RSEL_011"
175 & "MTK_PULL_SET_RSEL_100" & "MTK_PULL_SET_RSEL_101"
176 & "MTK_PULL_SET_RSEL_110" & "MTK_PULL_SET_RSEL_111"
177 define in mt8195. It can also support resistance value(ohm)
178 "1000" & "1500" & "2000" & "3000" & "4000" & "5000" & "10000" &
180 An example of using RSEL define:
184 pinmux = <PINMUX_GPIO8__FUNC_SDA0>;
185 bias-pull-up = <MTK_PULL_SET_RSEL_001>;
189 An example of using si unit resistance value(ohm):
191 mediatek,rsel-resistance-in-si-unit;
196 pinmux = <PINMUX_GPIO8__FUNC_SDA0>;
197 bias-pull-up = <1000>;
212 input-schmitt-enable: true
214 input-schmitt-disable: true
220 - $ref: "pinctrl.yaml#"
226 - interrupt-controller
232 additionalProperties: false
236 #include <dt-bindings/pinctrl/mt8195-pinfunc.h>
237 #include <dt-bindings/interrupt-controller/arm-gic.h>
239 pio: pinctrl@10005000 {
240 compatible = "mediatek,mt8195-pinctrl";
241 reg = <0x10005000 0x1000>,
249 reg-names = "iocfg0", "iocfg_bm", "iocfg_bl",
250 "iocfg_br", "iocfg_lm", "iocfg_rb",
254 gpio-ranges = <&pio 0 0 144>;
255 interrupt-controller;
256 interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH 0>;
257 #interrupt-cells = <2>;
261 pinmux = <PINMUX_GPIO0__FUNC_GPIO0>;
268 pinmux = <PINMUX_GPIO132__FUNC_SPIM0_CSB>,
269 <PINMUX_GPIO134__FUNC_SPIM0_MO>,
270 <PINMUX_GPIO133__FUNC_SPIM0_CLK>;
274 pinmux = <PINMUX_GPIO135__FUNC_SPIM0_MI>;
281 pinmux = <PINMUX_GPIO8__FUNC_SDA0>,
282 <PINMUX_GPIO9__FUNC_SCL0>;
284 drive-strength-microamp = <1000>;