1*85798213SPrathamesh Shete# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*85798213SPrathamesh Shete%YAML 1.2
3*85798213SPrathamesh Shete---
4*85798213SPrathamesh Shete$id: http://devicetree.org/schemas/pinctrl/nvidia,tegra234-pinmux.yaml#
5*85798213SPrathamesh Shete$schema: http://devicetree.org/meta-schemas/core.yaml#
6*85798213SPrathamesh Shete
7*85798213SPrathamesh Shetetitle: NVIDIA Tegra234 Pinmux Controller
8*85798213SPrathamesh Shete
9*85798213SPrathamesh Shetemaintainers:
10*85798213SPrathamesh Shete  - Thierry Reding <thierry.reding@gmail.com>
11*85798213SPrathamesh Shete  - Jon Hunter <jonathanh@nvidia.com>
12*85798213SPrathamesh Shete
13*85798213SPrathamesh Shete$ref: nvidia,tegra234-pinmux-common.yaml
14*85798213SPrathamesh Shete
15*85798213SPrathamesh Sheteproperties:
16*85798213SPrathamesh Shete  compatible:
17*85798213SPrathamesh Shete    const: nvidia,tegra234-pinmux
18*85798213SPrathamesh Shete
19*85798213SPrathamesh ShetepatternProperties:
20*85798213SPrathamesh Shete  "^pinmux(-[a-z0-9-]+)?$":
21*85798213SPrathamesh Shete    type: object
22*85798213SPrathamesh Shete
23*85798213SPrathamesh Shete    # pin groups
24*85798213SPrathamesh Shete    additionalProperties:
25*85798213SPrathamesh Shete      properties:
26*85798213SPrathamesh Shete        nvidia,pins:
27*85798213SPrathamesh Shete          items:
28*85798213SPrathamesh Shete            enum: [ dap6_sclk_pa0, dap6_dout_pa1, dap6_din_pa2,
29*85798213SPrathamesh Shete                    dap6_fs_pa3, dap4_sclk_pa4, dap4_dout_pa5,
30*85798213SPrathamesh Shete                    dap4_din_pa6, dap4_fs_pa7, soc_gpio08_pb0,
31*85798213SPrathamesh Shete                    qspi0_sck_pc0, qspi0_cs_n_pc1,
32*85798213SPrathamesh Shete                    qspi0_io0_pc2, qspi0_io1_pc3, qspi0_io2_pc4,
33*85798213SPrathamesh Shete                    qspi0_io3_pc5, qspi1_sck_pc6, qspi1_cs_n_pc7,
34*85798213SPrathamesh Shete                    qspi1_io0_pd0, qspi1_io1_pd1, qspi1_io2_pd2,
35*85798213SPrathamesh Shete                    qspi1_io3_pd3, eqos_txc_pe0, eqos_td0_pe1,
36*85798213SPrathamesh Shete                    eqos_td1_pe2, eqos_td2_pe3, eqos_td3_pe4,
37*85798213SPrathamesh Shete                    eqos_tx_ctl_pe5, eqos_rd0_pe6, eqos_rd1_pe7,
38*85798213SPrathamesh Shete                    eqos_rd2_pf0, eqos_rd3_pf1, eqos_rx_ctl_pf2,
39*85798213SPrathamesh Shete                    eqos_rxc_pf3, eqos_sma_mdio_pf4, eqos_sma_mdc_pf5,
40*85798213SPrathamesh Shete                    soc_gpio13_pg0, soc_gpio14_pg1, soc_gpio15_pg2,
41*85798213SPrathamesh Shete                    soc_gpio16_pg3, soc_gpio17_pg4, soc_gpio18_pg5,
42*85798213SPrathamesh Shete                    soc_gpio19_pg6, soc_gpio20_pg7, soc_gpio21_ph0,
43*85798213SPrathamesh Shete                    soc_gpio22_ph1, soc_gpio06_ph2, uart4_tx_ph3,
44*85798213SPrathamesh Shete                    uart4_rx_ph4, uart4_rts_ph5, uart4_cts_ph6,
45*85798213SPrathamesh Shete                    soc_gpio41_ph7, soc_gpio42_pi0, soc_gpio43_pi1,
46*85798213SPrathamesh Shete                    soc_gpio44_pi2, gen1_i2c_scl_pi3, gen1_i2c_sda_pi4,
47*85798213SPrathamesh Shete                    cpu_pwr_req_pi5, soc_gpio07_pi6,
48*85798213SPrathamesh Shete                    sdmmc1_clk_pj0, sdmmc1_cmd_pj1, sdmmc1_dat0_pj2,
49*85798213SPrathamesh Shete                    sdmmc1_dat1_pj3, sdmmc1_dat2_pj4, sdmmc1_dat3_pj5,
50*85798213SPrathamesh Shete                    pex_l0_clkreq_n_pk0, pex_l0_rst_n_pk1,
51*85798213SPrathamesh Shete                    pex_l1_clkreq_n_pk2, pex_l1_rst_n_pk3,
52*85798213SPrathamesh Shete                    pex_l2_clkreq_n_pk4, pex_l2_rst_n_pk5,
53*85798213SPrathamesh Shete                    pex_l3_clkreq_n_pk6, pex_l3_rst_n_pk7,
54*85798213SPrathamesh Shete                    pex_l4_clkreq_n_pl0, pex_l4_rst_n_pl1,
55*85798213SPrathamesh Shete                    pex_wake_n_pl2, soc_gpio34_pl3, dp_aux_ch0_hpd_pm0,
56*85798213SPrathamesh Shete                    dp_aux_ch1_hpd_pm1, dp_aux_ch2_hpd_pm2,
57*85798213SPrathamesh Shete                    dp_aux_ch3_hpd_pm3, soc_gpio55_pm4, soc_gpio36_pm5,
58*85798213SPrathamesh Shete                    soc_gpio53_pm6, soc_gpio38_pm7, dp_aux_ch3_n_pn0,
59*85798213SPrathamesh Shete                    soc_gpio39_pn1, soc_gpio40_pn2, dp_aux_ch1_p_pn3,
60*85798213SPrathamesh Shete                    dp_aux_ch1_n_pn4, dp_aux_ch2_p_pn5, dp_aux_ch2_n_pn6,
61*85798213SPrathamesh Shete                    dp_aux_ch3_p_pn7, extperiph1_clk_pp0,
62*85798213SPrathamesh Shete                    extperiph2_clk_pp1, cam_i2c_scl_pp2, cam_i2c_sda_pp3,
63*85798213SPrathamesh Shete                    soc_gpio23_pp4, soc_gpio24_pp5, soc_gpio25_pp6,
64*85798213SPrathamesh Shete                    pwr_i2c_scl_pp7, pwr_i2c_sda_pq0, soc_gpio28_pq1,
65*85798213SPrathamesh Shete                    soc_gpio29_pq2, soc_gpio30_pq3, soc_gpio31_pq4,
66*85798213SPrathamesh Shete                    soc_gpio32_pq5, soc_gpio33_pq6, soc_gpio35_pq7,
67*85798213SPrathamesh Shete                    soc_gpio37_pr0, soc_gpio56_pr1, uart1_tx_pr2,
68*85798213SPrathamesh Shete                    uart1_rx_pr3, uart1_rts_pr4, uart1_cts_pr5,
69*85798213SPrathamesh Shete                    soc_gpio61_pw0, soc_gpio62_pw1, gpu_pwr_req_px0,
70*85798213SPrathamesh Shete                    cv_pwr_req_px1, gp_pwm2_px2, gp_pwm3_px3, uart2_tx_px4,
71*85798213SPrathamesh Shete                    uart2_rx_px5, uart2_rts_px6, uart2_cts_px7, spi3_sck_py0,
72*85798213SPrathamesh Shete                    spi3_miso_py1, spi3_mosi_py2, spi3_cs0_py3,
73*85798213SPrathamesh Shete                    spi3_cs1_py4, uart5_tx_py5, uart5_rx_py6,
74*85798213SPrathamesh Shete                    uart5_rts_py7, uart5_cts_pz0, usb_vbus_en0_pz1,
75*85798213SPrathamesh Shete                    usb_vbus_en1_pz2, spi1_sck_pz3, spi1_miso_pz4,
76*85798213SPrathamesh Shete                    spi1_mosi_pz5, spi1_cs0_pz6, spi1_cs1_pz7,
77*85798213SPrathamesh Shete                    spi5_sck_pac0, spi5_miso_pac1, spi5_mosi_pac2,
78*85798213SPrathamesh Shete                    spi5_cs0_pac3, soc_gpio57_pac4, soc_gpio58_pac5,
79*85798213SPrathamesh Shete                    soc_gpio59_pac6, soc_gpio60_pac7, soc_gpio45_pad0,
80*85798213SPrathamesh Shete                    soc_gpio46_pad1, soc_gpio47_pad2, soc_gpio48_pad3,
81*85798213SPrathamesh Shete                    ufs0_ref_clk_pae0, ufs0_rst_n_pae1,
82*85798213SPrathamesh Shete                    pex_l5_clkreq_n_paf0, pex_l5_rst_n_paf1,
83*85798213SPrathamesh Shete                    pex_l6_clkreq_n_paf2, pex_l6_rst_n_paf3,
84*85798213SPrathamesh Shete                    pex_l7_clkreq_n_pag0, pex_l7_rst_n_pag1,
85*85798213SPrathamesh Shete                    pex_l8_clkreq_n_pag2, pex_l8_rst_n_pag3,
86*85798213SPrathamesh Shete                    pex_l9_clkreq_n_pag4, pex_l9_rst_n_pag5,
87*85798213SPrathamesh Shete                    pex_l10_clkreq_n_pag6, pex_l10_rst_n_pag7,
88*85798213SPrathamesh Shete                    sdmmc1_comp, eqos_comp, qspi_comp,
89*85798213SPrathamesh Shete                    # drive groups
90*85798213SPrathamesh Shete                    drive_soc_gpio08_pb0, drive_soc_gpio36_pm5,
91*85798213SPrathamesh Shete                    drive_soc_gpio53_pm6, drive_soc_gpio55_pm4,
92*85798213SPrathamesh Shete                    drive_soc_gpio38_pm7, drive_soc_gpio39_pn1,
93*85798213SPrathamesh Shete                    drive_soc_gpio40_pn2, drive_dp_aux_ch0_hpd_pm0,
94*85798213SPrathamesh Shete                    drive_dp_aux_ch1_hpd_pm1, drive_dp_aux_ch2_hpd_pm2,
95*85798213SPrathamesh Shete                    drive_dp_aux_ch3_hpd_pm3, drive_dp_aux_ch1_p_pn3,
96*85798213SPrathamesh Shete                    drive_dp_aux_ch1_n_pn4, drive_dp_aux_ch2_p_pn5,
97*85798213SPrathamesh Shete                    drive_dp_aux_ch2_n_pn6, drive_dp_aux_ch3_p_pn7,
98*85798213SPrathamesh Shete                    drive_dp_aux_ch3_n_pn0, drive_pex_l2_clkreq_n_pk4,
99*85798213SPrathamesh Shete                    drive_pex_wake_n_pl2, drive_pex_l1_clkreq_n_pk2,
100*85798213SPrathamesh Shete                    drive_pex_l1_rst_n_pk3, drive_pex_l0_clkreq_n_pk0,
101*85798213SPrathamesh Shete                    drive_pex_l0_rst_n_pk1, drive_pex_l2_rst_n_pk5,
102*85798213SPrathamesh Shete                    drive_pex_l3_clkreq_n_pk6, drive_pex_l3_rst_n_pk7,
103*85798213SPrathamesh Shete                    drive_pex_l4_clkreq_n_pl0, drive_pex_l4_rst_n_pl1,
104*85798213SPrathamesh Shete                    drive_soc_gpio34_pl3, drive_pex_l5_clkreq_n_paf0,
105*85798213SPrathamesh Shete                    drive_pex_l5_rst_n_paf1, drive_pex_l6_clkreq_n_paf2,
106*85798213SPrathamesh Shete                    drive_pex_l6_rst_n_paf3, drive_pex_l10_clkreq_n_pag6,
107*85798213SPrathamesh Shete                    drive_pex_l10_rst_n_pag7, drive_pex_l7_clkreq_n_pag0,
108*85798213SPrathamesh Shete                    drive_pex_l7_rst_n_pag1, drive_pex_l8_clkreq_n_pag2,
109*85798213SPrathamesh Shete                    drive_pex_l8_rst_n_pag3, drive_pex_l9_clkreq_n_pag4,
110*85798213SPrathamesh Shete                    drive_pex_l9_rst_n_pag5, drive_sdmmc1_clk_pj0,
111*85798213SPrathamesh Shete                    drive_sdmmc1_cmd_pj1, drive_sdmmc1_dat3_pj5,
112*85798213SPrathamesh Shete                    drive_sdmmc1_dat2_pj4, drive_sdmmc1_dat1_pj3,
113*85798213SPrathamesh Shete                    drive_sdmmc1_dat0_pj2 ]
114*85798213SPrathamesh Shete
115*85798213SPrathamesh SheteunevaluatedProperties: false
116*85798213SPrathamesh Shete
117*85798213SPrathamesh Sheteexamples:
118*85798213SPrathamesh Shete  - |
119*85798213SPrathamesh Shete    #include <dt-bindings/pinctrl/pinctrl-tegra.h>
120*85798213SPrathamesh Shete
121*85798213SPrathamesh Shete    pinmux@2430000 {
122*85798213SPrathamesh Shete        compatible = "nvidia,tegra234-pinmux";
123*85798213SPrathamesh Shete        reg = <0x2430000 0x17000>;
124*85798213SPrathamesh Shete
125*85798213SPrathamesh Shete        pinctrl-names = "pex_rst";
126*85798213SPrathamesh Shete        pinctrl-0 = <&pex_rst_c5_out_state>;
127*85798213SPrathamesh Shete
128*85798213SPrathamesh Shete        pex_rst_c5_out_state: pinmux-pex-rst-c5-out {
129*85798213SPrathamesh Shete            pexrst {
130*85798213SPrathamesh Shete                nvidia,pins = "pex_l5_rst_n_paf1";
131*85798213SPrathamesh Shete                nvidia,schmitt = <TEGRA_PIN_DISABLE>;
132*85798213SPrathamesh Shete                nvidia,enable-input = <TEGRA_PIN_DISABLE>;
133*85798213SPrathamesh Shete                nvidia,io-hv = <TEGRA_PIN_ENABLE>;
134*85798213SPrathamesh Shete                nvidia,tristate = <TEGRA_PIN_DISABLE>;
135*85798213SPrathamesh Shete                nvidia,pull = <TEGRA_PIN_PULL_NONE>;
136*85798213SPrathamesh Shete            };
137*85798213SPrathamesh Shete        };
138*85798213SPrathamesh Shete    };
139*85798213SPrathamesh Shete...
140