Lines Matching +full:mt6795 +full:- +full:pinctrl

1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/pinctrl/mediatek,mt6795-pinctrl.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek MT6795 Pin Controller
10 - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
11 - Sean Wang <sean.wang@kernel.org>
14 The MediaTek's MT6795 Pin controller is used to control SoC pins.
18 const: mediatek,mt6795-pinctrl
20 gpio-controller: true
22 '#gpio-cells':
29 gpio-ranges:
38 reg-names:
40 - const: base
41 - const: eint
43 interrupt-controller: true
45 '#interrupt-cells':
52 - description: EINT interrupt
53 - description: EINT event_b interrupt
57 '-pins$':
65 A pinctrl node should contain at least one subnodes representing the
66 pinctrl groups available on the machine. Each subnode will list the
73 gpio-pins {
79 i2c0-pins {
85 $ref: pinmux-node.yaml
92 defined as macros in dt-bindings/pinctrl/<soc>-pinfunc.h directly.
94 drive-strength:
97 bias-pull-down:
99 - type: boolean
100 - enum: [100, 101, 102, 103]
101 description: mt6795 pull down PUPD/R0/R1 type define value.
107 bias-pull-up:
109 - type: boolean
110 - enum: [100, 101, 102, 103]
111 description: mt6795 pull up PUPD/R0/R1 type define value.
117 bias-disable: true
119 output-high: true
121 output-low: true
123 input-enable: true
125 input-disable: true
127 input-schmitt-enable: true
129 input-schmitt-disable: true
131 mediatek,pull-up-adv:
143 mediatek,pull-down-adv:
156 - pinmux
159 - $ref: pinctrl.yaml#
162 - compatible
163 - reg
164 - reg-names
165 - interrupts
166 - interrupt-controller
167 - '#interrupt-cells'
168 - gpio-controller
169 - '#gpio-cells'
170 - gpio-ranges
175 - |
176 #include <dt-bindings/interrupt-controller/arm-gic.h>
177 #include <dt-bindings/interrupt-controller/irq.h>
178 #include <dt-bindings/pinctrl/mt6795-pinfunc.h>
181 #address-cells = <2>;
182 #size-cells = <2>;
184 pio: pinctrl@10005000 {
185 compatible = "mediatek,mt6795-pinctrl";
187 reg-names = "base", "eint";
188 gpio-controller;
189 #gpio-cells = <2>;
190 gpio-ranges = <&pio 0 0 196>;
191 interrupt-controller;
193 #interrupt-cells = <2>;
195 i2c0-pins {
196 pins-sda-scl {
202 mmc0-pins {
203 pins-cmd-dat {
213 input-enable;
214 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
217 pins-clk {
219 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
222 pins-rst {
224 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;