Lines Matching +full:spi +full:- +full:pins

1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/pinctrl/mediatek,mt7986-pinctrl.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sean Wang <sean.wang@kernel.org>
13 The MediaTek's MT7986 Pin controller is used to control SoC pins.
18 - mediatek,mt7986a-pinctrl
19 - mediatek,mt7986b-pinctrl
25 reg-names:
27 - const: gpio
28 - const: iocfg_rt
29 - const: iocfg_rb
30 - const: iocfg_lt
31 - const: iocfg_lb
32 - const: iocfg_tr
33 - const: iocfg_tl
34 - const: eint
36 gpio-controller: true
38 "#gpio-cells":
45 gpio-ranges:
51 interrupt-controller: true
56 "#interrupt-cells":
60 - $ref: pinctrl.yaml#
63 - compatible
64 - reg
65 - reg-names
66 - gpio-controller
67 - "#gpio-cells"
70 '-pins$':
82 properties and chip pinout pins
84 groups function pins (in pin#)
85 ---------------------------------------------------------------------
94 "spi1_0" "spi" 11, 12, 13, 14
99 "spi1_2" "spi" 29, 30, 31, 32
103 "spi1_1" "spi" 23, 24, 25, 26
109 "spi0" "spi" 33, 34, 35, 36
110 "spi0_wp_hold" "spi" 37, 38
114 "spi1_3" "spi" 33, 34, 35, 36
131 $ref: /schemas/pinctrl/pinmux-node.yaml
138 enum: [audio, emmc, eth, i2c, led, flash, pcie, pwm, spi, uart,
146 - function
147 - groups
150 - if:
158 - if:
166 - if:
174 - if:
182 - if:
190 - if:
198 - if:
208 - if:
218 - if:
221 const: spi
228 - if:
241 - if:
249 - if:
264 $ref: /schemas/pinctrl/pincfg-node.yaml
267 pins:
271 pins on mt7986a.
295 bias-disable: true
297 bias-pull-up:
299 - type: boolean
301 - enum: [100, 101, 102, 103]
304 dt-bindings/pinctrl/mt65xx.h.
306 bias-pull-down:
308 - type: boolean
310 - enum: [100, 101, 102, 103]
313 dt-bindings/pinctrl/mt65xx.h.
315 input-enable: true
317 input-disable: true
319 output-enable: true
321 output-low: true
323 output-high: true
325 input-schmitt-enable: true
327 input-schmitt-disable: true
329 drive-strength:
332 mediatek,pull-up-adv:
334 Valid arguments for 'mediatek,pull-up-adv' are '0', '1', '2', '3'
344 mediatek,pull-down-adv:
346 Valid arguments for 'mediatek,pull-up-adv' are '0', '1', '2', '3'
357 - pins
362 - |
363 #include <dt-bindings/interrupt-controller/irq.h>
364 #include <dt-bindings/interrupt-controller/arm-gic.h>
365 #include <dt-bindings/pinctrl/mt65xx.h>
368 #address-cells = <2>;
369 #size-cells = <2>;
371 compatible = "mediatek,mt7986a-pinctrl";
380 reg-names = "gpio", "iocfg_rt", "iocfg_rb", "iocfg_lt",
382 gpio-controller;
383 #gpio-cells = <2>;
384 gpio-ranges = <&pio 0 0 100>;
385 interrupt-controller;
387 interrupt-parent = <&gic>;
388 #interrupt-cells = <2>;
390 pcie_pins: pcie-pins {
397 pwm_pins: pwm-pins {
404 spi0_pins: spi0-pins {
406 function = "spi";
411 uart1_pins: uart1-pins {
418 uart1_3_pins: uart1-3-pins {
425 uart2_pins: uart2-pins {
432 mmc0_pins_default: mmc0-pins {
437 conf-cmd-dat {
438 pins = "EMMC_DATA_0", "EMMC_DATA_1", "EMMC_DATA_2",
441 input-enable;
442 drive-strength = <4>;
443 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
445 conf-clk {
446 pins = "EMMC_CK";
447 drive-strength = <6>;
448 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
450 conf-ds {
451 pins = "EMMC_DSL";
452 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
454 conf-rst {
455 pins = "EMMC_RSTB";
456 drive-strength = <4>;
457 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */