1*8bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*8bab661aSEmmanuel Vadot%YAML 1.2
3*8bab661aSEmmanuel Vadot---
4*8bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/nvidia,tegra20-pinmux.yaml#
5*8bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8bab661aSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: NVIDIA Tegra20 Pinmux Controller
8*8bab661aSEmmanuel Vadot
9*8bab661aSEmmanuel Vadotmaintainers:
10*8bab661aSEmmanuel Vadot  - Thierry Reding <thierry.reding@gmail.com>
11*8bab661aSEmmanuel Vadot  - Jon Hunter <jonathanh@nvidia.com>
12*8bab661aSEmmanuel Vadot
13*8bab661aSEmmanuel Vadotproperties:
14*8bab661aSEmmanuel Vadot  compatible:
15*8bab661aSEmmanuel Vadot    const: nvidia,tegra20-pinmux
16*8bab661aSEmmanuel Vadot
17*8bab661aSEmmanuel Vadot  reg:
18*8bab661aSEmmanuel Vadot    items:
19*8bab661aSEmmanuel Vadot      - description: tri-state registers
20*8bab661aSEmmanuel Vadot      - description: mux register
21*8bab661aSEmmanuel Vadot      - description: pull-up/down registers
22*8bab661aSEmmanuel Vadot      - description: pad control registers
23*8bab661aSEmmanuel Vadot
24*8bab661aSEmmanuel VadotpatternProperties:
25*8bab661aSEmmanuel Vadot  "^pinmux(-[a-z0-9-_]+)?$":
26*8bab661aSEmmanuel Vadot    type: object
27*8bab661aSEmmanuel Vadot
28*8bab661aSEmmanuel Vadot    # pin groups
29*8bab661aSEmmanuel Vadot    additionalProperties:
30*8bab661aSEmmanuel Vadot      $ref: nvidia,tegra-pinmux-common.yaml
31*8bab661aSEmmanuel Vadot      additionalProperties: false
32*8bab661aSEmmanuel Vadot      properties:
33*8bab661aSEmmanuel Vadot        nvidia,pins:
34*8bab661aSEmmanuel Vadot          items:
35*8bab661aSEmmanuel Vadot            enum: [ ata, atb, atc, atd, ate, cdev1, cdev2, crtp, csus, dap1,
36*8bab661aSEmmanuel Vadot                    dap2, dap3, dap4, ddc, dta, dtb, dtc, dtd, dte, dtf, gma,
37*8bab661aSEmmanuel Vadot                    gmb, gmc, gmd, gme, gpu, gpu7, gpv, hdint, i2cp, irrx,
38*8bab661aSEmmanuel Vadot                    irtx, kbca, kbcb, kbcc, kbcd, kbce, kbcf, lcsn, ld0, ld1,
39*8bab661aSEmmanuel Vadot                    ld2, ld3, ld4, ld5, ld6, ld7, ld8, ld9, ld10, ld11, ld12,
40*8bab661aSEmmanuel Vadot                    ld13, ld14, ld15, ld16, ld17, ldc, ldi, lhp0, lhp1, lhp2,
41*8bab661aSEmmanuel Vadot                    lhs, lm0, lm1, lpp, lpw0, lpw1, lpw2, lsc0, lsc1, lsck,
42*8bab661aSEmmanuel Vadot                    lsda, lsdi, lspi, lvp0, lvp1, lvs, owc, pmc, pta, rm, sdb,
43*8bab661aSEmmanuel Vadot                    sdc, sdd, sdio1, slxa, slxc, slxd, slxk, spdi, spdo, spia,
44*8bab661aSEmmanuel Vadot                    spib, spic, spid, spie, spif, spig, spih, uaa, uab, uac,
45*8bab661aSEmmanuel Vadot                    uad, uca, ucb, uda,
46*8bab661aSEmmanuel Vadot                    # tristate groups
47*8bab661aSEmmanuel Vadot                    ck32, ddrc, pmca, pmcb, pmcc, pmcd, pmce, xm2c, xm2d, ls,
48*8bab661aSEmmanuel Vadot                    lc, ld17_0, ld19_18, ld21_20, ld23_22,
49*8bab661aSEmmanuel Vadot                    # drive groups
50*8bab661aSEmmanuel Vadot                    drive_ao1, drive_ao2, drive_at1, drive_at2, drive_cdev1,
51*8bab661aSEmmanuel Vadot                    drive_cdev2, drive_csus, drive_dap1, drive_dap2,
52*8bab661aSEmmanuel Vadot                    drive_dap3, drive_dap4, drive_dbg, drive_lcd1, drive_lcd2,
53*8bab661aSEmmanuel Vadot                    drive_sdmmc2, drive_sdmmc3, drive_spi, drive_uaa,
54*8bab661aSEmmanuel Vadot                    drive_uab, drive_uart2, drive_uart3, drive_vi1, drive_vi2,
55*8bab661aSEmmanuel Vadot                    drive_xm2a, drive_xm2c, drive_xm2d, drive_xm2clk,
56*8bab661aSEmmanuel Vadot                    drive_sdio1, drive_crt, drive_ddc, drive_gma, drive_gmb,
57*8bab661aSEmmanuel Vadot                    drive_gmc, drive_gmd, drive_gme, drive_owr, drive_uda ]
58*8bab661aSEmmanuel Vadot
59*8bab661aSEmmanuel Vadot        nvidia,function:
60*8bab661aSEmmanuel Vadot          enum: [ ahb_clk, apb_clk, audio_sync, crt, dap1, dap2, dap3, dap4,
61*8bab661aSEmmanuel Vadot                  dap5, displaya, displayb, emc_test0_dll, emc_test1_dll, gmi,
62*8bab661aSEmmanuel Vadot                  gmi_int, hdmi, i2cp, i2c1, i2c2, i2c3, ide, irda, kbc, mio,
63*8bab661aSEmmanuel Vadot                  mipi_hs, nand, osc, owr, pcie, plla_out, pllc_out1,
64*8bab661aSEmmanuel Vadot                  pllm_out1, pllp_out2, pllp_out3, pllp_out4, pwm, pwr_intr,
65*8bab661aSEmmanuel Vadot                  pwr_on, rsvd1, rsvd2, rsvd3, rsvd4, rtck, sdio1, sdio2,
66*8bab661aSEmmanuel Vadot                  sdio3, sdio4, sflash, spdif, spi1, spi2, spi2_alt, spi3,
67*8bab661aSEmmanuel Vadot                  spi4, trace, twc, uarta, uartb, uartc, uartd, uarte, ulpi,
68*8bab661aSEmmanuel Vadot                  vi, vi_sensor_clk, xio ]
69*8bab661aSEmmanuel Vadot
70*8bab661aSEmmanuel Vadot        nvidia,pull: true
71*8bab661aSEmmanuel Vadot        nvidia,tristate: true
72*8bab661aSEmmanuel Vadot        nvidia,schmitt: true
73*8bab661aSEmmanuel Vadot        nvidia,pull-down-strength: true
74*8bab661aSEmmanuel Vadot        nvidia,pull-up-strength: true
75*8bab661aSEmmanuel Vadot        nvidia,high-speed-mode: true
76*8bab661aSEmmanuel Vadot        nvidia,low-power-mode: true
77*8bab661aSEmmanuel Vadot        nvidia,slew-rate-rising: true
78*8bab661aSEmmanuel Vadot        nvidia,slew-rate-falling: true
79*8bab661aSEmmanuel Vadot
80*8bab661aSEmmanuel Vadot      required:
81*8bab661aSEmmanuel Vadot        - nvidia,pins
82*8bab661aSEmmanuel Vadot
83*8bab661aSEmmanuel VadotadditionalProperties: false
84*8bab661aSEmmanuel Vadot
85*8bab661aSEmmanuel Vadotrequired:
86*8bab661aSEmmanuel Vadot  - compatible
87*8bab661aSEmmanuel Vadot  - reg
88*8bab661aSEmmanuel Vadot
89*8bab661aSEmmanuel Vadotexamples:
90*8bab661aSEmmanuel Vadot  - |
91*8bab661aSEmmanuel Vadot    #include <dt-bindings/clock/tegra20-car.h>
92*8bab661aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
93*8bab661aSEmmanuel Vadot
94*8bab661aSEmmanuel Vadot    pinctrl@70000000 {
95*8bab661aSEmmanuel Vadot        compatible = "nvidia,tegra20-pinmux";
96*8bab661aSEmmanuel Vadot        reg = <0x70000014 0x10>, /* Tri-state registers */
97*8bab661aSEmmanuel Vadot              <0x70000080 0x20>, /* Mux registers */
98*8bab661aSEmmanuel Vadot              <0x700000a0 0x14>, /* Pull-up/down registers */
99*8bab661aSEmmanuel Vadot              <0x70000868 0xa8>; /* Pad control registers */
100*8bab661aSEmmanuel Vadot
101*8bab661aSEmmanuel Vadot        pinmux {
102*8bab661aSEmmanuel Vadot            atb {
103*8bab661aSEmmanuel Vadot                nvidia,pins = "atb", "gma", "gme";
104*8bab661aSEmmanuel Vadot                nvidia,function = "sdio4";
105*8bab661aSEmmanuel Vadot                nvidia,pull = <0>;
106*8bab661aSEmmanuel Vadot                nvidia,tristate = <0>;
107*8bab661aSEmmanuel Vadot            };
108*8bab661aSEmmanuel Vadot        };
109*8bab661aSEmmanuel Vadot    };
110*8bab661aSEmmanuel Vadot...
111