Lines Matching +full:mt8188 +full:- +full:pinctrl

1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/pinctrl/mediatek,mt8188-pinctrl.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek MT8188 Pin Controller
10 - Hui Liu <hui.liu@mediatek.com>
13 The MediaTek's MT8188 Pin controller is used to control SoC pins.
17 const: mediatek,mt8188-pinctrl
19 gpio-controller: true
21 '#gpio-cells':
25 are defined in <dt-bindings/gpio/gpio.h>.
28 gpio-ranges:
31 gpio-line-names: true
35 - description: gpio registers base address
36 - description: rm group io configuration registers base address
37 - description: lt group io configuration registers base address
38 - description: lm group io configuration registers base address
39 - description: rt group io configuration registers base address
40 - description: eint registers base address
42 reg-names:
44 - const: iocfg0
45 - const: iocfg_rm
46 - const: iocfg_lt
47 - const: iocfg_lm
48 - const: iocfg_rt
49 - const: eint
51 interrupt-controller: true
53 '#interrupt-cells':
60 mediatek,rsel-resistance-in-si-unit:
70 '-pins$':
77 $ref: /schemas/pinctrl/pincfg-node.yaml
80 A pinctrl node should contain at least one subnode representing the
81 pinctrl groups available on the machine. Each subnode will list the
91 defined as macros in dt-bindings/pinctrl/mediatek,mt8188-pinfunc.h
94 drive-strength:
97 drive-strength-microamp:
100 bias-pull-down:
102 - type: boolean
103 - enum: [100, 101, 102, 103]
104 description: mt8188 pull down PUPD/R0/R1 type define value.
105 - enum: [200, 201, 202, 203, 204, 205, 206, 207]
106 description: mt8188 pull down RSEL type define value.
107 - enum: [75000, 5000]
108 description: mt8188 pull down RSEL type si unit value(ohm).
115 "MTK_PUPD_SET_R1R0_11" define in mt8188.
118 "mediatek,rsel-resistance-in-si-unit". It can support
123 mt8188. It can also support resistance value(ohm) "75000" & "5000"
124 in mt8188.
126 bias-pull-up:
128 - type: boolean
129 - enum: [100, 101, 102, 103]
130 description: mt8188 pull up PUPD/R0/R1 type define value.
131 - enum: [200, 201, 202, 203, 204, 205, 206, 207]
132 description: mt8188 pull up RSEL type define value.
133 - enum: [1000, 1500, 2000, 3000, 4000, 5000, 10000, 75000]
134 description: mt8188 pull up RSEL type si unit value(ohm).
141 "MTK_PUPD_SET_R1R0_11" define in mt8188.
144 "mediatek,rsel-resistance-in-si-unit". It can support
149 mt8188. It can also support resistance value(ohm) "1000" & "1500"
150 & "2000" & "3000" & "4000" & "5000" & "10000" & "75000" in mt8188.
152 bias-disable: true
154 output-high: true
156 output-low: true
158 input-enable: true
160 input-disable: true
162 input-schmitt-enable: true
164 input-schmitt-disable: true
167 - pinmux
170 - compatible
171 - reg
172 - interrupts
173 - interrupt-controller
174 - '#interrupt-cells'
175 - gpio-controller
176 - '#gpio-cells'
177 - gpio-ranges
182 - |
183 #include <dt-bindings/pinctrl/mediatek,mt8188-pinfunc.h>
184 #include <dt-bindings/interrupt-controller/arm-gic.h>
186 pio: pinctrl@10005000 {
187 compatible = "mediatek,mt8188-pinctrl";
194 reg-names = "iocfg0", "iocfg_rm",
197 gpio-controller;
198 #gpio-cells = <2>;
199 gpio-ranges = <&pio 0 0 176>;
200 interrupt-controller;
202 #interrupt-cells = <2>;
204 pio-pins {
207 output-low;
211 spi0-pins {
212 pins-spi {
216 drive-strength = <6>;
218 pins-spi-mi {
220 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
224 i2c0-pins {
228 bias-disable;
229 drive-strength-microamp = <1000>;