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,tegra210-pinmux.yaml# 5*8bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*8bab661aSEmmanuel Vadot 7*8bab661aSEmmanuel Vadottitle: NVIDIA Tegra210 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,tegra210-pinmux 16*8bab661aSEmmanuel Vadot 17*8bab661aSEmmanuel Vadot reg: 18*8bab661aSEmmanuel Vadot items: 19*8bab661aSEmmanuel Vadot - description: APB_MISC_GP_*_PADCTRL register (pad control) 20*8bab661aSEmmanuel Vadot - description: PINMUX_AUX_* registers (pinmux) 21*8bab661aSEmmanuel Vadot 22*8bab661aSEmmanuel VadotpatternProperties: 23*8bab661aSEmmanuel Vadot "^pinmux(-[a-z0-9-_]+)?$": 24*8bab661aSEmmanuel Vadot type: object 25*8bab661aSEmmanuel Vadot 26*8bab661aSEmmanuel Vadot # pin groups 27*8bab661aSEmmanuel Vadot additionalProperties: 28*8bab661aSEmmanuel Vadot $ref: nvidia,tegra-pinmux-common.yaml 29*8bab661aSEmmanuel Vadot additionalProperties: false 30*8bab661aSEmmanuel Vadot properties: 31*8bab661aSEmmanuel Vadot nvidia,pins: 32*8bab661aSEmmanuel Vadot items: 33*8bab661aSEmmanuel Vadot enum: [ als_prox_int_px3, ap_ready_pv5, ap_wake_bt_ph3, 34*8bab661aSEmmanuel Vadot ap_wake_nfc_ph7, aud_mclk_pbb0, batt_bcl, bt_rst_ph4, 35*8bab661aSEmmanuel Vadot bt_wake_ap_ph5, button_home_py1, button_power_on_px5, 36*8bab661aSEmmanuel Vadot button_slide_sw_py0, button_vol_down_px7, 37*8bab661aSEmmanuel Vadot button_vol_up_px6, cam1_mclk_ps0, cam1_pwdn_ps7, 38*8bab661aSEmmanuel Vadot cam1_strobe_pt1, cam2_mclk_ps1, cam2_pwdn_pt0, 39*8bab661aSEmmanuel Vadot cam_af_en_ps5, cam_flash_en_ps6, cam_i2c_scl_ps2, 40*8bab661aSEmmanuel Vadot cam_i2c_sda_ps3, cam_rst_ps4, clk_32k_in, clk_32k_out_py5, 41*8bab661aSEmmanuel Vadot clk_req, core_pwr_req, cpu_pwr_req, dap1_din_pb1, 42*8bab661aSEmmanuel Vadot dap1_dout_pb2, dap1_fs_pb0, dap1_sclk_pb3, dap2_din_paa2, 43*8bab661aSEmmanuel Vadot dap2_dout_paa3, dap2_fs_paa0, dap2_sclk_paa1, dap4_din_pj5, 44*8bab661aSEmmanuel Vadot dap4_dout_pj6, dap4_fs_pj4, dap4_sclk_pj7, dmic1_clk_pe0, 45*8bab661aSEmmanuel Vadot dmic1_dat_pe1, dmic2_clk_pe2, dmic2_dat_pe3, dmic3_clk_pe4, 46*8bab661aSEmmanuel Vadot dmic3_dat_pe5, dp_hpd0_pcc6, dvfs_clk_pbb2, dvfs_pwm_pbb1, 47*8bab661aSEmmanuel Vadot gen1_i2c_scl_pj1, gen1_i2c_sda_pj0, gen2_i2c_scl_pj2, 48*8bab661aSEmmanuel Vadot gen2_i2c_sda_pj3, gen3_i2c_scl_pf0, gen3_i2c_sda_pf1, 49*8bab661aSEmmanuel Vadot gpio_x1_aud_pbb3, gpio_x3_aud_pbb4, gps_en_pi2, 50*8bab661aSEmmanuel Vadot gps_rst_pi3, hdmi_cec_pcc0, hdmi_int_dp_hpd_pcc1, 51*8bab661aSEmmanuel Vadot jtag_rtck, lcd_bl_en_pv1, lcd_bl_pwm_pv0, lcd_gpio1_pv3, 52*8bab661aSEmmanuel Vadot lcd_gpio2_pv4, lcd_rst_pv2, lcd_te_py2, modem_wake_ap_px0, 53*8bab661aSEmmanuel Vadot motion_int_px2, nfc_en_pi0, nfc_int_pi1, pa6, pcc7, pe6, 54*8bab661aSEmmanuel Vadot pe7, pex_l0_clkreq_n_pa1, pex_l0_rst_n_pa0, 55*8bab661aSEmmanuel Vadot pex_l1_clkreq_n_pa4, pex_l1_rst_n_pa3, pex_wake_n_pa2, ph6, 56*8bab661aSEmmanuel Vadot pk0, pk1, pk2, pk3, pk4, pk5, pk6, pk7, pl0, pl1, 57*8bab661aSEmmanuel Vadot pwr_i2c_scl_py3, pwr_i2c_sda_py4, pwr_int_n, pz0, pz1, pz2, 58*8bab661aSEmmanuel Vadot pz3, pz4, pz5, qspi_cs_n_pee1, qspi_io0_pee2, 59*8bab661aSEmmanuel Vadot qspi_io1_pee3, qspi_io2_pee4, qspi_io3_pee5, qspi_sck_pee0, 60*8bab661aSEmmanuel Vadot sata_led_active_pa5, sdmmc1_clk_pm0, sdmmc1_cmd_pm1, 61*8bab661aSEmmanuel Vadot sdmmc1_dat0_pm5, sdmmc1_dat1_pm4, sdmmc1_dat2_pm3, 62*8bab661aSEmmanuel Vadot sdmmc1_dat3_pm2, sdmmc3_clk_pp0, sdmmc3_cmd_pp1, 63*8bab661aSEmmanuel Vadot sdmmc3_dat0_pp5, sdmmc3_dat1_pp4, sdmmc3_dat2_pp3, 64*8bab661aSEmmanuel Vadot sdmmc3_dat3_pp2, shutdown, spdif_in_pcc3, spdif_out_pcc2, 65*8bab661aSEmmanuel Vadot spi1_cs0_pc3, spi1_cs1_pc4, spi1_miso_pc1, spi1_mosi_pc0, 66*8bab661aSEmmanuel Vadot spi1_sck_pc2, spi2_cs0_pb7, spi2_cs1_pdd0, spi2_miso_pb5, 67*8bab661aSEmmanuel Vadot spi2_mosi_pb4, spi2_sck_pb6, spi4_cs0_pc6, spi4_miso_pd0, 68*8bab661aSEmmanuel Vadot spi4_mosi_pc7, spi4_sck_pc5, temp_alert_px4, touch_clk_pv7, 69*8bab661aSEmmanuel Vadot touch_int_px1, touch_rst_pv6, uart1_cts_pu3, uart1_rts_pu2, 70*8bab661aSEmmanuel Vadot uart1_rx_pu1, uart1_tx_pu0, uart2_cts_pg3, uart2_rts_pg2, 71*8bab661aSEmmanuel Vadot uart2_rx_pg1, uart2_tx_pg0, uart3_cts_pd4, uart3_rts_pd3, 72*8bab661aSEmmanuel Vadot uart3_rx_pd2, uart3_tx_pd1, uart4_cts_pi7, uart4_rts_pi6, 73*8bab661aSEmmanuel Vadot uart4_rx_pi5, uart4_tx_pi4, usb_vbus_en0_pcc4, 74*8bab661aSEmmanuel Vadot usb_vbus_en1_pcc5, wifi_en_ph0, wifi_rst_ph1, 75*8bab661aSEmmanuel Vadot wifi_wake_ap_ph2, 76*8bab661aSEmmanuel Vadot # drive groups 77*8bab661aSEmmanuel Vadot drive_pa6, drive_pcc7, drive_pe6, drive_pe7, drive_ph6, 78*8bab661aSEmmanuel Vadot drive_pk0, drive_pk1, drive_pk2, drive_pk3, drive_pk4, 79*8bab661aSEmmanuel Vadot drive_pk5, drive_pk6, drive_pk7, drive_pl0, drive_pl1, 80*8bab661aSEmmanuel Vadot drive_pz0, drive_pz1, drive_pz2, drive_pz3, drive_pz4, 81*8bab661aSEmmanuel Vadot drive_pz5, drive_sdmmc1, drive_sdmmc2, drive_sdmmc3, 82*8bab661aSEmmanuel Vadot drive_sdmmc4 ] 83*8bab661aSEmmanuel Vadot 84*8bab661aSEmmanuel Vadot nvidia,function: 85*8bab661aSEmmanuel Vadot enum: [ aud, bcl, blink, ccla, cec, cldvfs, clk, core, cpu, displaya, 86*8bab661aSEmmanuel Vadot displayb, dmic1, dmic2, dmic3, dp, dtv, extperiph3, i2c1, 87*8bab661aSEmmanuel Vadot i2c2, i2c3, i2cpmu, i2cvi, i2s1, i2s2, i2s3, i2s4a, i2s4b, 88*8bab661aSEmmanuel Vadot i2s5a, i2s5b, iqc0, iqc1, jtag, pe, pe0, pe1, pmi, pwm0, 89*8bab661aSEmmanuel Vadot pwm1, pwm2, pwm3, qspi, rsvd0, rsvd1, rsvd2, rsvd3, sata, 90*8bab661aSEmmanuel Vadot sdmmc1, sdmmc3, shutdown, soc, sor0, sor1, spdif, spi1, spi2, 91*8bab661aSEmmanuel Vadot spi3, spi4, sys, touch, uart, uarta, uartb, uartc, uartd, 92*8bab661aSEmmanuel Vadot usb, vgp1, vgp2, vgp3, vgp4, vgp5, vgp6, vimclk, vimclk2 ] 93*8bab661aSEmmanuel Vadot 94*8bab661aSEmmanuel Vadot nvidia,pull: true 95*8bab661aSEmmanuel Vadot nvidia,tristate: true 96*8bab661aSEmmanuel Vadot nvidia,pull-down-strength: true 97*8bab661aSEmmanuel Vadot nvidia,pull-up-strength: true 98*8bab661aSEmmanuel Vadot nvidia,high-speed-mode: true 99*8bab661aSEmmanuel Vadot nvidia,enable-input: true 100*8bab661aSEmmanuel Vadot nvidia,open-drain: true 101*8bab661aSEmmanuel Vadot nvidia,lock: true 102*8bab661aSEmmanuel Vadot nvidia,drive-type: true 103*8bab661aSEmmanuel Vadot nvidia,io-hv: true 104*8bab661aSEmmanuel Vadot nvidia,slew-rate-rising: true 105*8bab661aSEmmanuel Vadot nvidia,slew-rate-falling: true 106*8bab661aSEmmanuel Vadot 107*8bab661aSEmmanuel Vadot required: 108*8bab661aSEmmanuel Vadot - nvidia,pins 109*8bab661aSEmmanuel Vadot 110*8bab661aSEmmanuel VadotadditionalProperties: false 111*8bab661aSEmmanuel Vadot 112*8bab661aSEmmanuel Vadotrequired: 113*8bab661aSEmmanuel Vadot - compatible 114*8bab661aSEmmanuel Vadot - reg 115*8bab661aSEmmanuel Vadot 116*8bab661aSEmmanuel Vadotexamples: 117*8bab661aSEmmanuel Vadot - | 118*8bab661aSEmmanuel Vadot #include <dt-bindings/pinctrl/pinctrl-tegra.h> 119*8bab661aSEmmanuel Vadot 120*8bab661aSEmmanuel Vadot pinmux: pinmux@70000800 { 121*8bab661aSEmmanuel Vadot compatible = "nvidia,tegra210-pinmux"; 122*8bab661aSEmmanuel Vadot reg = <0x700008d4 0x02a8>, /* Pad control registers */ 123*8bab661aSEmmanuel Vadot <0x70003000 0x1000>; /* Mux registers */ 124*8bab661aSEmmanuel Vadot 125*8bab661aSEmmanuel Vadot pinctrl-names = "boot"; 126*8bab661aSEmmanuel Vadot pinctrl-0 = <&state_boot>; 127*8bab661aSEmmanuel Vadot 128*8bab661aSEmmanuel Vadot state_boot: pinmux { 129*8bab661aSEmmanuel Vadot gen1_i2c_scl_pj1 { 130*8bab661aSEmmanuel Vadot nvidia,pins = "gen1_i2c_scl_pj1"; 131*8bab661aSEmmanuel Vadot nvidia,function = "i2c1"; 132*8bab661aSEmmanuel Vadot nvidia,pull = <TEGRA_PIN_PULL_NONE>; 133*8bab661aSEmmanuel Vadot nvidia,tristate = <TEGRA_PIN_DISABLE>; 134*8bab661aSEmmanuel Vadot nvidia,enable-input = <TEGRA_PIN_ENABLE>; 135*8bab661aSEmmanuel Vadot nvidia,open-drain = <TEGRA_PIN_ENABLE>; 136*8bab661aSEmmanuel Vadot nvidia,io-hv = <TEGRA_PIN_ENABLE>; 137*8bab661aSEmmanuel Vadot }; 138*8bab661aSEmmanuel Vadot }; 139*8bab661aSEmmanuel Vadot }; 140*8bab661aSEmmanuel Vadot... 141