From f56bf77ad652f00736e3fa782f97a02913c43081 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Wed, 27 Nov 2013 15:37:25 +0530 Subject: ARM: tegra: Move pinmux driver to DT for TN8 bug 1373364 Change-Id: I3735c2c4cde3f7bbe4aaf36fff96868cc8fae303 Signed-off-by: Laxman Dewangan Reviewed-on: http://git-master/r/336968 GVS: Gerrit_Virtual_Submit --- .../tegra124-platforms/tegra124-e1780-pinmux.dtsi | 1592 ++++++++++++++++++++ arch/arm/boot/dts/tegra124-tn8-a03-00-battery.dts | 1 + arch/arm/boot/dts/tegra124-tn8-a03-00.dts | 1 + arch/arm/boot/dts/tegra124-tn8-a03-01.dts | 1 + arch/arm/boot/dts/tegra124-tn8-battery.dts | 1 + arch/arm/boot/dts/tegra124-tn8.dts | 1 + arch/arm/mach-tegra/board-ardbeg-pinmux.c | 6 +- arch/arm/mach-tegra/board-ardbeg.c | 5 +- 8 files changed, 1605 insertions(+), 3 deletions(-) create mode 100644 arch/arm/boot/dts/tegra124-platforms/tegra124-e1780-pinmux.dtsi (limited to 'arch') diff --git a/arch/arm/boot/dts/tegra124-platforms/tegra124-e1780-pinmux.dtsi b/arch/arm/boot/dts/tegra124-platforms/tegra124-e1780-pinmux.dtsi new file mode 100644 index 000000000000..ef2d939ef58b --- /dev/null +++ b/arch/arm/boot/dts/tegra124-platforms/tegra124-e1780-pinmux.dtsi @@ -0,0 +1,1592 @@ +#include + +/ { + pinmux: pinmux { + status = "okay"; + pinctrl-names = "default", "drive", "unused"; + pinctrl-0 = <&pinmux_default>; + pinctrl-1 = <&drive_default>; + pinctrl-2 = <&pinmux_unused_lowpower>; + + pinmux_default: common { + dap_mclk1_pw4 { + nvidia,pins = "dap_mclk1_pw4"; + nvidia,function = "extperiph1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap1_din_pn1 { + nvidia,pins = "dap1_din_pn1"; + nvidia,function = "i2s0"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap1_dout_pn2 { + nvidia,pins = "dap1_dout_pn2"; + nvidia,function = "i2s0"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap1_fs_pn0 { + nvidia,pins = "dap1_fs_pn0"; + nvidia,function = "i2s0"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap1_sclk_pn3 { + nvidia,pins = "dap1_sclk_pn3"; + nvidia,function = "i2s0"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap2_din_pa4 { + nvidia,pins = "dap2_din_pa4"; + nvidia,function = "i2s1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap2_dout_pa5 { + nvidia,pins = "dap2_dout_pa5"; + nvidia,function = "i2s1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap2_fs_pa2 { + nvidia,pins = "dap2_fs_pa2"; + nvidia,function = "i2s1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap2_sclk_pa3 { + nvidia,pins = "dap2_sclk_pa3"; + nvidia,function = "i2s1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dvfs_pwm_px0 { + nvidia,pins = "dvfs_pwm_px0"; + nvidia,function = "cldvfs"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dvfs_clk_px2 { + nvidia,pins = "dvfs_clk_px2"; + nvidia,function = "cldvfs"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ulpi_clk_py0 { + nvidia,pins = "ulpi_clk_py0"; + nvidia,function = "spi1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ulpi_dir_py1 { + nvidia,pins = "ulpi_dir_py1"; + nvidia,function = "spi1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ulpi_nxt_py2 { + nvidia,pins = "ulpi_nxt_py2"; + nvidia,function = "spi1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ulpi_stp_py3 { + nvidia,pins = "ulpi_stp_py3"; + nvidia,function = "spi1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + cam_i2c_scl_pbb1 { + nvidia,pins = "cam_i2c_scl_pbb1"; + nvidia,function = "i2c3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,lock = ; + nvidia,open-drain = ; + }; + + cam_i2c_sda_pbb2 { + nvidia,pins = "cam_i2c_sda_pbb2"; + nvidia,function = "i2c3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,lock = ; + nvidia,open-drain = ; + }; + + cam_mclk_pcc0 { + nvidia,pins = "cam_mclk_pcc0"; + nvidia,function = "vi_alt3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pbb0 { + nvidia,pins = "pbb0"; + nvidia,function = "vimclk2_alt"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pbb4 { + nvidia,pins = "pbb4"; + nvidia,function = "vgp4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + gen2_i2c_scl_pt5 { + nvidia,pins = "gen2_i2c_scl_pt5"; + nvidia,function = "i2c2"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,lock = ; + nvidia,open-drain = ; + }; + + gen2_i2c_sda_pt6 { + nvidia,pins = "gen2_i2c_sda_pt6"; + nvidia,function = "i2c2"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,lock = ; + nvidia,open-drain = ; + }; + + pj7 { + nvidia,pins = "pj7"; + nvidia,function = "uartd"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pb0 { + nvidia,pins = "pb0"; + nvidia,function = "uartd"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pb1 { + nvidia,pins = "pb1"; + nvidia,function = "uartd"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pk7 { + nvidia,pins = "pk7"; + nvidia,function = "uartd"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pg4 { + nvidia,pins = "pg4"; + nvidia,function = "spi4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pg5 { + nvidia,pins = "pg5"; + nvidia,function = "spi4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pg6 { + nvidia,pins = "pg6"; + nvidia,function = "spi4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pg7 { + nvidia,pins = "pg7"; + nvidia,function = "spi4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pi3 { + nvidia,pins = "pi3"; + nvidia,function = "spi4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ph0 { + nvidia,pins = "ph0"; + nvidia,function = "dtv"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ph1 { + nvidia,pins = "ph1"; + nvidia,function = "pwm1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pk0 { + nvidia,pins = "pk0"; + nvidia,function = "soc"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pj2 { + nvidia,pins = "pj2"; + nvidia,function = "soc"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row15_ps7 { + nvidia,pins = "kb_row15_ps7"; + nvidia,function = "soc"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + clk_32k_out_pa0 { + nvidia,pins = "clk_32k_out_pa0"; + nvidia,function = "soc"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + clk2_out_pw5 { + nvidia,pins = "clk2_out_pw5"; + nvidia,function = "extperiph2"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc1_clk_pz0 { + nvidia,pins = "sdmmc1_clk_pz0"; + nvidia,function = "sdmmc1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc1_cmd_pz1 { + nvidia,pins = "sdmmc1_cmd_pz1"; + nvidia,function = "sdmmc1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc1_dat0_py7 { + nvidia,pins = "sdmmc1_dat0_py7"; + nvidia,function = "sdmmc1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc1_dat1_py6 { + nvidia,pins = "sdmmc1_dat1_py6"; + nvidia,function = "sdmmc1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc1_dat2_py5 { + nvidia,pins = "sdmmc1_dat2_py5"; + nvidia,function = "sdmmc1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc1_dat3_py4 { + nvidia,pins = "sdmmc1_dat3_py4"; + nvidia,function = "sdmmc1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc3_clk_pa6 { + nvidia,pins = "sdmmc3_clk_pa6"; + nvidia,function = "sdmmc3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc3_cmd_pa7 { + nvidia,pins = "sdmmc3_cmd_pa7"; + nvidia,function = "sdmmc3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc3_dat0_pb7 { + nvidia,pins = "sdmmc3_dat0_pb7"; + nvidia,function = "sdmmc3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc3_dat1_pb6 { + nvidia,pins = "sdmmc3_dat1_pb6"; + nvidia,function = "sdmmc3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc3_dat2_pb5 { + nvidia,pins = "sdmmc3_dat2_pb5"; + nvidia,function = "sdmmc3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc3_dat3_pb4 { + nvidia,pins = "sdmmc3_dat3_pb4"; + nvidia,function = "sdmmc3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc3_clk_lb_out_pee4 { + nvidia,pins = "sdmmc3_clk_lb_out_pee4"; + nvidia,function = "sdmmc3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc3_clk_lb_in_pee5 { + nvidia,pins = "sdmmc3_clk_lb_in_pee5"; + nvidia,function = "sdmmc3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_col4_pq4 { + nvidia,pins = "kb_col4_pq4"; + nvidia,function = "sdmmc3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc3_cd_n_pv2 { + nvidia,pins = "sdmmc3_cd_n_pv2"; + nvidia,function = "sdmmc3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc4_clk_pcc4 { + nvidia,pins = "sdmmc4_clk_pcc4"; + nvidia,function = "sdmmc4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc4_cmd_pt7 { + nvidia,pins = "sdmmc4_cmd_pt7"; + nvidia,function = "sdmmc4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc4_dat0_paa0 { + nvidia,pins = "sdmmc4_dat0_paa0"; + nvidia,function = "sdmmc4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc4_dat1_paa1 { + nvidia,pins = "sdmmc4_dat1_paa1"; + nvidia,function = "sdmmc4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc4_dat2_paa2 { + nvidia,pins = "sdmmc4_dat2_paa2"; + nvidia,function = "sdmmc4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc4_dat3_paa3 { + nvidia,pins = "sdmmc4_dat3_paa3"; + nvidia,function = "sdmmc4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc4_dat4_paa4 { + nvidia,pins = "sdmmc4_dat4_paa4"; + nvidia,function = "sdmmc4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc4_dat5_paa5 { + nvidia,pins = "sdmmc4_dat5_paa5"; + nvidia,function = "sdmmc4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc4_dat6_paa6 { + nvidia,pins = "sdmmc4_dat6_paa6"; + nvidia,function = "sdmmc4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc4_dat7_paa7 { + nvidia,pins = "sdmmc4_dat7_paa7"; + nvidia,function = "sdmmc4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row10_ps2 { + nvidia,pins = "kb_row10_ps2"; + nvidia,function = "uarta"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row9_ps1 { + nvidia,pins = "kb_row9_ps1"; + nvidia,function = "uarta"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row3_pr3 { + nvidia,pins = "kb_row3_pr3"; + nvidia,function = "sys"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row6_pr6 { + nvidia,pins = "kb_row6_pr6"; + nvidia,function = "displaya_alt"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pwr_i2c_scl_pz6 { + nvidia,pins = "pwr_i2c_scl_pz6"; + nvidia,function = "i2cpwr"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,open-drain = ; + }; + + pwr_i2c_sda_pz7 { + nvidia,pins = "pwr_i2c_sda_pz7"; + nvidia,function = "i2cpwr"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,open-drain = ; + }; + + jtag_rtck { + nvidia,pins = "jtag_rtck"; + nvidia,function = "rtck"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + clk_32k_in { + nvidia,pins = "clk_32k_in"; + nvidia,function = "clk"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + core_pwr_req { + nvidia,pins = "core_pwr_req"; + nvidia,function = "pwron"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + cpu_pwr_req { + nvidia,pins = "cpu_pwr_req"; + nvidia,function = "cpu"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pwr_int_n { + nvidia,pins = "pwr_int_n"; + nvidia,function = "pmi"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + reset_out_n { + nvidia,pins = "reset_out_n"; + nvidia,function = "reset_out_n"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + clk3_out_pee0 { + nvidia,pins = "clk3_out_pee0"; + nvidia,function = "extperiph3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dp_hpd_pff0 { + nvidia,pins = "dp_hpd_pff0"; + nvidia,function = "dp"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap4_din_pp5 { + nvidia,pins = "dap4_din_pp5"; + nvidia,function = "i2s3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap4_dout_pp6 { + nvidia,pins = "dap4_dout_pp6"; + nvidia,function = "i2s3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap4_fs_pp4 { + nvidia,pins = "dap4_fs_pp4"; + nvidia,function = "i2s3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap4_sclk_pp7 { + nvidia,pins = "dap4_sclk_pp7"; + nvidia,function = "i2s3"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + gen1_i2c_sda_pc5 { + nvidia,pins = "gen1_i2c_sda_pc5"; + nvidia,function = "i2c1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,lock = ; + nvidia,open-drain = ; + }; + + gen1_i2c_scl_pc4 { + nvidia,pins = "gen1_i2c_scl_pc4"; + nvidia,function = "i2c1"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,lock = ; + nvidia,open-drain = ; + }; + + uart2_cts_n_pj5 { + nvidia,pins = "uart2_cts_n_pj5"; + nvidia,function = "uartb"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + uart2_rts_n_pj6 { + nvidia,pins = "uart2_rts_n_pj6"; + nvidia,function = "uartb"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + uart2_rxd_pc3 { + nvidia,pins = "uart2_rxd_pc3"; + nvidia,function = "irda"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + uart2_txd_pc2 { + nvidia,pins = "uart2_txd_pc2"; + nvidia,function = "irda"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + uart3_cts_n_pa1 { + nvidia,pins = "uart3_cts_n_pa1"; + nvidia,function = "uartc"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + uart3_rts_n_pc0 { + nvidia,pins = "uart3_rts_n_pc0"; + nvidia,function = "uartc"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + uart3_rxd_pw7 { + nvidia,pins = "uart3_rxd_pw7"; + nvidia,function = "uartc"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + uart3_txd_pw6 { + nvidia,pins = "uart3_txd_pw6"; + nvidia,function = "uartc"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + hdmi_cec_pee3 { + nvidia,pins = "hdmi_cec_pee3"; + nvidia,function = "cec"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,open-drain = ; + }; + + ddc_scl_pv4 { + nvidia,pins = "ddc_scl_pv4"; + nvidia,function = "i2c4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ddc_sda_pv5 { + nvidia,pins = "ddc_sda_pv5"; + nvidia,function = "i2c4"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + usb_vbus_en0_pn4 { + nvidia,pins = "usb_vbus_en0_pn4"; + nvidia,function = "usb"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,lock = ; + nvidia,open-drain = ; + }; + + usb_vbus_en1_pn5 { + nvidia,pins = "usb_vbus_en1_pn5"; + nvidia,function = "usb"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,lock = ; + nvidia,open-drain = ; + }; + + usb_vbus_en2_pff1 { + nvidia,pins = "usb_vbus_en2_pff1"; + nvidia,function = "usb"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,lock = ; + nvidia,open-drain = ; + }; + + ph6 { + nvidia,pins = "ph6"; + nvidia,function = "dtv"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ph7 { + nvidia,pins = "ph7"; + nvidia,function = "dtv"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pi7 { + nvidia,pins = "pi7"; + nvidia,function = "dtv"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + gpio_x4_aud_px4 { + nvidia,pins = "gpio_x4_aud_px4"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + gpio_x5_aud_px5 { + nvidia,pins = "gpio_x5_aud_px5"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + gpio_x6_aud_px6 { + nvidia,pins = "gpio_x6_aud_px6"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + gpio_x7_aud_px7 { + nvidia,pins = "gpio_x7_aud_px7"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + gpio_w2_aud_pw2 { + nvidia,pins = "gpio_w2_aud_pw2"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + gpio_w3_aud_pw3 { + nvidia,pins = "gpio_w3_aud_pw3"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + gpio_x1_aud_px1 { + nvidia,pins = "gpio_x1_aud_px1"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + gpio_x3_aud_px3 { + nvidia,pins = "gpio_x3_aud_px3"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pv0 { + nvidia,pins = "pv0"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pv1 { + nvidia,pins = "pv1"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ulpi_data1_po2 { + nvidia,pins = "ulpi_data1_po2"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ulpi_data2_po3 { + nvidia,pins = "ulpi_data2_po3"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ulpi_data4_po5 { + nvidia,pins = "ulpi_data4_po5"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ulpi_data5_po6 { + nvidia,pins = "ulpi_data5_po6"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ulpi_data6_po7 { + nvidia,pins = "ulpi_data6_po7"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ulpi_data7_po0 { + nvidia,pins = "ulpi_data7_po0"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pbb3 { + nvidia,pins = "pbb3"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pbb5 { + nvidia,pins = "pbb5"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pbb6 { + nvidia,pins = "pbb6"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pbb7 { + nvidia,pins = "pbb7"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pcc1 { + nvidia,pins = "pcc1"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pcc2 { + nvidia,pins = "pcc2"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pg0 { + nvidia,pins = "pg0"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pg1 { + nvidia,pins = "pg1"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ph2 { + nvidia,pins = "ph2"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ph3 { + nvidia,pins = "ph3"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ph4 { + nvidia,pins = "ph4"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ph5 { + nvidia,pins = "ph5"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pg2 { + nvidia,pins = "pg2"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pg3 { + nvidia,pins = "pg3"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pk1 { + nvidia,pins = "pk1"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pj0 { + nvidia,pins = "pj0"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pk3 { + nvidia,pins = "pk3"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pk4 { + nvidia,pins = "pk4"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pk2 { + nvidia,pins = "pk2"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pi6 { + nvidia,pins = "pi6"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pi2 { + nvidia,pins = "pi2"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pi5 { + nvidia,pins = "pi5"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pi4 { + nvidia,pins = "pi4"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pc7 { + nvidia,pins = "pc7"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pi0 { + nvidia,pins = "pi0"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + clk2_req_pcc5 { + nvidia,pins = "clk2_req_pcc5"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + sdmmc1_wp_n_pv3 { + nvidia,pins = "sdmmc1_wp_n_pv3"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_col0_pq0 { + nvidia,pins = "kb_col0_pq0"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_col1_pq1 { + nvidia,pins = "kb_col1_pq1"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_col2_pq2 { + nvidia,pins = "kb_col2_pq2"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_col5_pq5 { + nvidia,pins = "kb_col5_pq5"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_col6_pq6 { + nvidia,pins = "kb_col6_pq6"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_col7_pq7 { + nvidia,pins = "kb_col7_pq7"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row0_pr0 { + nvidia,pins = "kb_row0_pr0"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row1_pr1 { + nvidia,pins = "kb_row1_pr1"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row11_ps3 { + nvidia,pins = "kb_row11_ps3"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row12_ps4 { + nvidia,pins = "kb_row12_ps4"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row13_ps5 { + nvidia,pins = "kb_row13_ps5"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row14_ps6 { + nvidia,pins = "kb_row14_ps6"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row2_pr2 { + nvidia,pins = "kb_row2_pr2"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row4_pr4 { + nvidia,pins = "kb_row4_pr4"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row5_pr5 { + nvidia,pins = "kb_row5_pr5"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row7_pr7 { + nvidia,pins = "kb_row7_pr7"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row8_ps0 { + nvidia,pins = "kb_row8_ps0"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + clk3_req_pee1 { + nvidia,pins = "clk3_req_pee1"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pu0 { + nvidia,pins = "pu0"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pu1 { + nvidia,pins = "pu1"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pu2 { + nvidia,pins = "pu2"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pu3 { + nvidia,pins = "pu3"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pu4 { + nvidia,pins = "pu4"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pu5 { + nvidia,pins = "pu5"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pu6 { + nvidia,pins = "pu6"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + hdmi_int_pn7 { + nvidia,pins = "hdmi_int_pn7"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + spdif_out_pk5 { + nvidia,pins = "spdif_out_pk5"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + spdif_in_pk6 { + nvidia,pins = "spdif_in_pk6"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + }; + + pinmux_unused_lowpower: unused_lowpower { + dap_mclk1_req_pee2 { + nvidia,pins = "dap_mclk1_req_pee2"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap3_din_pp1 { + nvidia,pins = "dap3_din_pp1"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap3_dout_pp2 { + nvidia,pins = "dap3_dout_pp2"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap3_fs_pp0 { + nvidia,pins = "dap3_fs_pp0"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + dap3_sclk_pp3 { + nvidia,pins = "dap3_sclk_pp3"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ulpi_data0_po1 { + nvidia,pins = "ulpi_data0_po1"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + ulpi_data3_po4 { + nvidia,pins = "ulpi_data3_po4"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pi1 { + nvidia,pins = "pi1"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pex_l0_clkreq_n_pdd2 { + nvidia,pins = "pex_l0_clkreq_n_pdd2"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pex_l0_rst_n_pdd1 { + nvidia,pins = "pex_l0_rst_n_pdd1"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pex_l1_clkreq_n_pdd6 { + nvidia,pins = "pex_l1_clkreq_n_pdd6"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pex_l1_rst_n_pdd5 { + nvidia,pins = "pex_l1_rst_n_pdd5"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pex_wake_n_pdd3 { + nvidia,pins = "pex_wake_n_pdd3"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + pff2 { + nvidia,pins = "pff2"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_col3_pq3 { + nvidia,pins = "kb_col3_pq3"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row16_pt0 { + nvidia,pins = "kb_row16_pt0"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + kb_row17_pt1 { + nvidia,pins = "kb_row17_pt1"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + + owr { + nvidia,pins = "owr"; + nvidia,function = "safe"; + nvidia,enable-input = ; + nvidia,pull = ; + nvidia,tristate = ; + }; + }; + + drive_default: drive { + drive_sdio1 { + nvidia,pins = "drive_sdio1"; + nvidia,high-speed-mode = ; + nvidia,schmitt = ; + nvidia,low-power-mode = ; + nvidia,pull-down-strength = <32>; + nvidia,pull-up-strength = <42>; + nvidia,slew-rate-rising = ; + nvidia,slew-rate-falling = ; + }; + + drive_sdio3 { + nvidia,pins = "drive_sdio3"; + nvidia,high-speed-mode = ; + nvidia,schmitt = ; + nvidia,low-power-mode = ; + nvidia,pull-down-strength = <20>; + nvidia,pull-up-strength = <36>; + nvidia,slew-rate-rising = ; + nvidia,slew-rate-falling = ; + }; + + drive_gma { + nvidia,pins = "drive_gma"; + nvidia,high-speed-mode = ; + nvidia,schmitt = ; + nvidia,low-power-mode = ; + nvidia,pull-down-strength = <1>; + nvidia,pull-up-strength = <2>; + nvidia,slew-rate-rising = ; + nvidia,slew-rate-falling = ; + nvidia,drive-type = <1>; + }; + }; + }; +}; diff --git a/arch/arm/boot/dts/tegra124-tn8-a03-00-battery.dts b/arch/arm/boot/dts/tegra124-tn8-a03-00-battery.dts index 0b578e5bddc2..e8abf2313f9c 100644 --- a/arch/arm/boot/dts/tegra124-tn8-a03-00-battery.dts +++ b/arch/arm/boot/dts/tegra124-tn8-a03-00-battery.dts @@ -6,6 +6,7 @@ #include "tegra124-platforms/tegra124-tn8-e1736-pmic.dtsi" #include "tegra124-platforms/tegra124-tn8-e1736-fixed.dtsi" #include "tegra124-platforms/tegra124-e1780-gpio-default.dtsi" +#include "tegra124-platforms/tegra124-e1780-pinmux.dtsi" #include "tegra124-platforms/tegra124-e1780-keys.dtsi" / { diff --git a/arch/arm/boot/dts/tegra124-tn8-a03-00.dts b/arch/arm/boot/dts/tegra124-tn8-a03-00.dts index 86f011c8bb4f..172aaf8aebd6 100644 --- a/arch/arm/boot/dts/tegra124-tn8-a03-00.dts +++ b/arch/arm/boot/dts/tegra124-tn8-a03-00.dts @@ -6,6 +6,7 @@ #include "tegra124-platforms/tegra124-tn8-e1736-pmic.dtsi" #include "tegra124-platforms/tegra124-tn8-e1736-fixed.dtsi" #include "tegra124-platforms/tegra124-e1780-gpio-default.dtsi" +#include "tegra124-platforms/tegra124-e1780-pinmux.dtsi" #include "tegra124-platforms/tegra124-e1780-keys.dtsi" / { diff --git a/arch/arm/boot/dts/tegra124-tn8-a03-01.dts b/arch/arm/boot/dts/tegra124-tn8-a03-01.dts index 4f9a8dc04597..9604d60eda4d 100644 --- a/arch/arm/boot/dts/tegra124-tn8-a03-01.dts +++ b/arch/arm/boot/dts/tegra124-tn8-a03-01.dts @@ -6,6 +6,7 @@ #include "tegra124-platforms/tegra124-tn8-e1769-pmic.dtsi" #include "tegra124-platforms/tegra124-tn8-e1769-fixed.dtsi" #include "tegra124-platforms/tegra124-e1780-gpio-default.dtsi" +#include "tegra124-platforms/tegra124-e1780-pinmux.dtsi" #include "tegra124-platforms/tegra124-e1780-keys.dtsi" / { diff --git a/arch/arm/boot/dts/tegra124-tn8-battery.dts b/arch/arm/boot/dts/tegra124-tn8-battery.dts index fa4ef6e56ebd..94dd59a5cdbd 100644 --- a/arch/arm/boot/dts/tegra124-tn8-battery.dts +++ b/arch/arm/boot/dts/tegra124-tn8-battery.dts @@ -6,6 +6,7 @@ #include "tegra124-platforms/tegra124-tn8-e1736-pmic.dtsi" #include "tegra124-platforms/tegra124-tn8-e1736-fixed.dtsi" #include "tegra124-platforms/tegra124-e1780-gpio-default.dtsi" +#include "tegra124-platforms/tegra124-e1780-pinmux.dtsi" #include "tegra124-platforms/tegra124-e1780-keys.dtsi" / { diff --git a/arch/arm/boot/dts/tegra124-tn8.dts b/arch/arm/boot/dts/tegra124-tn8.dts index a187f394b859..8525d464f1ee 100644 --- a/arch/arm/boot/dts/tegra124-tn8.dts +++ b/arch/arm/boot/dts/tegra124-tn8.dts @@ -6,6 +6,7 @@ #include "tegra124-platforms/tegra124-tn8-e1736-pmic.dtsi" #include "tegra124-platforms/tegra124-tn8-e1736-fixed.dtsi" #include "tegra124-platforms/tegra124-e1780-gpio-default.dtsi" +#include "tegra124-platforms/tegra124-e1780-pinmux.dtsi" #include "tegra124-platforms/tegra124-e1780-keys.dtsi" / { diff --git a/arch/arm/mach-tegra/board-ardbeg-pinmux.c b/arch/arm/mach-tegra/board-ardbeg-pinmux.c index a4aa2bd9452e..97131195ec93 100644 --- a/arch/arm/mach-tegra/board-ardbeg-pinmux.c +++ b/arch/arm/mach-tegra/board-ardbeg-pinmux.c @@ -59,8 +59,10 @@ static void __init ardbeg_gpio_init_configure(void) int __init ardbeg_pinmux_init(void) { - if (!of_machine_is_compatible("nvidia,tn8")) - ardbeg_gpio_init_configure(); + if (of_machine_is_compatible("nvidia,tn8")) + return 0; + + ardbeg_gpio_init_configure(); tegra_pinmux_config_table(ardbeg_pinmux_common, ARRAY_SIZE(ardbeg_pinmux_common)); tegra_drive_pinmux_config_table(ardbeg_drive_pinmux, diff --git a/arch/arm/mach-tegra/board-ardbeg.c b/arch/arm/mach-tegra/board-ardbeg.c index a581c3675f41..9e1d0eb6574d 100644 --- a/arch/arm/mach-tegra/board-ardbeg.c +++ b/arch/arm/mach-tegra/board-ardbeg.c @@ -1125,7 +1125,10 @@ static void __init tegra_ardbeg_late_init(void) board_info.board_id, board_info.sku, board_info.fab, board_info.major_revision, board_info.minor_revision); - platform_device_register(&tegra124_pinctrl_device); + + if (!of_machine_is_compatible("nvidia,tn8")) + platform_device_register(&tegra124_pinctrl_device); + if (board_info.board_id == BOARD_PM359 || board_info.board_id == BOARD_PM358 || board_info.board_id == BOARD_PM370 || -- cgit v1.2.3