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,pinctrl-mt6795.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>
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
95 drive-strength:
98 bias-pull-down:
100 - type: boolean
101 - enum: [100, 101, 102, 103]
102 description: mt6795 pull down PUPD/R0/R1 type define value.
108 bias-pull-up:
110 - type: boolean
111 - enum: [100, 101, 102, 103]
112 description: mt6795 pull up PUPD/R0/R1 type define value.
118 bias-disable: true
120 output-high: true
122 output-low: true
124 input-enable: true
126 input-disable: true
128 input-schmitt-enable: true
130 input-schmitt-disable: true
132 mediatek,pull-up-adv:
143 mediatek,pull-down-adv:
155 - pinmux
158 - $ref: "pinctrl.yaml#"
161 - compatible
162 - reg
163 - reg-names
164 - interrupts
165 - interrupt-controller
166 - '#interrupt-cells'
167 - gpio-controller
168 - '#gpio-cells'
169 - gpio-ranges
174 - |
175 #include <dt-bindings/interrupt-controller/arm-gic.h>
176 #include <dt-bindings/interrupt-controller/irq.h>
177 #include <dt-bindings/pinctrl/mt6795-pinfunc.h>
180 #address-cells = <2>;
181 #size-cells = <2>;
183 pio: pinctrl@10005000 {
184 compatible = "mediatek,mt6795-pinctrl";
186 reg-names = "base", "eint";
187 gpio-controller;
188 #gpio-cells = <2>;
189 gpio-ranges = <&pio 0 0 196>;
190 interrupt-controller;
192 #interrupt-cells = <2>;
194 i2c0-pins {
195 pins-sda-scl {
201 mmc0-pins {
202 pins-cmd-dat {
212 input-enable;
213 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
216 pins-clk {
218 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
221 pins-rst {
223 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;