pinctrl: tegra: add valid function name on DT document
Subsystems (3)
PATCH 1/1 pinctrl: tegra: add valid function name on DT document
Add valid property name for the property "nvidia,function" in DT binding document of Tegra pincontrol.
--- .../bindings/pinctrl/nvidia,tegra114-pinmux.txt | 10 ++++++++++ .../bindings/pinctrl/nvidia,tegra20-pinmux.txt | 11 +++++++++++ .../bindings/pinctrl/nvidia,tegra30-pinmux.txt | 11 +++++++++++ 3 files changed, 32 insertions(+), 0 deletions(-)
Documentation/devicetree/bindings/pinctrl/nvidia,tegra114-pinmux.txt +10 -0
@@ -69,6 +69,16 @@ Valid values for pin and group names are: gpio_w2_aud_pw2, gpio_w3_aud_pw3, usb_vbus_en0_pn4, usb_vbus_en1_pn5, sdmmc3_clk_lb_in_pee5, sdmmc3_clk_lb_out_pee4, reset_out_n. +The valid names for the nvidia,functions are: + blink, cec, cldvfs, clk12, cpu, dap, dap1, dap2, dev3, displaya, + displaya_alt, displayb, dtv, emc_dll, extperiph1, extperiph2, + extperiph3, gmi, gmi_alt, hda, hsi, i2c1, i2c2, i2c3, i2c4, i2cpwr, + i2s0, i2s1, i2s2, i2s3, i2s4, irda, kbc, nand, nand_alt, owr, pmi, + pwm0, pwm1, pwm2, pwm3, pwron, reset_out_n, rsvd1, rsvd2, rsvd3, + rsvd4, sdmmc1, sdmmc2, sdmmc3, sdmmc4, soc, spdif, spi1, spi2, spi3, + spi4, spi5, spi6, sysclk, trace, uarta, uartb, uartc, uartd, ulpi, + usb, vgp1, vgp2, vgp3, vgp4, vgp5, vgp6, vi, vi_alt1, vi_alt3 + drive groups: These all support nvidia,pull-down-strength, nvidia,pull-up-strength,
Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.txt +11 -0
@@ -82,6 +82,7 @@ Valid values for pin and group names are: spdo, spia, spib, spic, spid, spie, spif, spig, spih, uaa, uab, uac, uad, uca, ucb, uda. + tristate groups: These only support nvidia,pull.
@@ -103,6 +104,16 @@ Valid values for pin and group names are: drive_gma, drive_gmb, drive_gmc, drive_gmd, drive_gme, drive_owr, drive_uda. +The valid names for the nvidia,functions are: + ahb_clk, apb_clk, audio_sync, crt, dap1, dap2, dap3, dap4, dap5, + displaya, displayb, emc_test0_dll, emc_test1_dll, gmi, gmi_int, + hdmi, i2cp, i2c1, i2c2, i2c3, ide, irda, kbc, mio, mipi_hs, nand, + osc, owr, pcie, plla_out, pllc_out1, pllm_out1, pllp_out2, pllp_out3, + pllp_out4, pwm, pwr_intr, pwr_on, rsvd1, rsvd2, rsvd3, rsvd4, rtck, + sdio1, sdio2, sdio3, sdio4, sflash, spdif, spi1, spi2, spi2_alt, + spi3, spi4, trace, twc, uarta, uartb, uartc, uartd, uarte, ulpi, + vi, vi_sensor_clk, xio + Example: pinctrl@70000000 {
Documentation/devicetree/bindings/pinctrl/nvidia,tegra30-pinmux.txt +11 -0
@@ -80,6 +80,17 @@ Valid values for pin and group names are: clk1_req_pee2, hdmi_cec_pee3, clk_32k_in, core_pwr_req, cpu_pwr_req, owr, pwr_int_n. +The valid names for the nvidia,functions are: + blink, cec, clk_12m_out, clk_32k_in, core_pwr_req, cpu_pwr_req, crt, + dap, ddr, dev3, displaya, displayb, dtv, extperiph1, extperiph2, + extperiph3, gmi, gmi_alt, hda, hdcp, hdmi, hsi, i2c1, i2c2, i2c3, + i2c4, i2cpwr, i2s0, i2s1, i2s2, i2s3, i2s4, invalid, kbc, mio, nand, + nand_alt, owr, pcie, pwm0, pwm1, pwm2, pwm3, pwr_int_n, rsvd1, rsvd2, + rsvd3, rsvd4, rtck, sata, sdmmc1, sdmmc2, sdmmc3, sdmmc4, spdif, spi1, + spi2, spi2_alt, spi3, spi4, spi5, spi6, sysclk, test, trace, uarta, + uartb, uartc, uartd, uarte, ulpi, vgp1, vgp2, vgp3, vgp4, vgp5, vgp6, + vi, vi_alt1, vi_alt2, vi_alt3 + drive groups: These all support nvidia,pull-down-strength, nvidia,pull-up-strength,
Signature · 1 line
1.7.1.1
Quoted 2 lines · Laxman Dewangan
Add valid property name for the property "nvidia,function" in DT binding document of Tegra pincontrol.
I have applied this to Tegra's for-3.12/dt branch, but I fixed up quite a few issues along the way...
Documentation/devicetree/bindings/pinctrl/nvidia,tegra114-pinmux.txt Valid values for pin and group names are: · line 73
Quoted 8 lines
Documentation/devicetree/bindings/pinctrl/nvidia,tegra114-pinmux.txt +2
-0@@ -69,6 +69,16 @@ Valid values for pin and group names are: gpio_w2_aud_pw2, gpio_w3_aud_pw3, usb_vbus_en0_pn4, usb_vbus_en1_pn5, sdmmc3_clk_lb_in_pee5, sdmmc3_clk_lb_out_pee4, reset_out_n. +The valid names for the nvidia,functions are: + blink, cec, cldvfs, clk12, cpu, dap, dap1, dap2, dev3, displaya,
For consistency with other lists in the document, I added a blank line between those two lines, and reworded the first of those lines to be written in the same style as equivalent text for other lists.
Documentation/devicetree/bindings/pinctrl/nvidia,tegra114-pinmux.txt Valid values for pin and group names are: · line 82
Quoted 9 lines
Documentation/devicetree/bindings/pinctrl/nvidia,tegra114-pinmux.txt +8
-0+ displaya_alt, displayb, dtv, emc_dll, extperiph1, extperiph2, + extperiph3, gmi, gmi_alt, hda, hsi, i2c1, i2c2, i2c3, i2c4, i2cpwr, + i2s0, i2s1, i2s2, i2s3, i2s4, irda, kbc, nand, nand_alt, owr, pmi, + pwm0, pwm1, pwm2, pwm3, pwron, reset_out_n, rsvd1, rsvd2, rsvd3, + rsvd4, sdmmc1, sdmmc2, sdmmc3, sdmmc4, soc, spdif, spi1, spi2, spi3, + spi4, spi5, spi6, sysclk, trace, uarta, uartb, uartc, uartd, ulpi, + usb, vgp1, vgp2, vgp3, vgp4, vgp5, vgp6, vi, vi_alt1, vi_alt3 + drive groups:
There is a list of valid pin/group names in the document, and that list is divided into two sub-lists, for mux and drive groups. You inserted the list of function names between the two sub-lists rather than after the top-level list. Hence, I moved your additions to the correct place, and also removed 2 characters of indent, since it's a top-level list, not a sub-list of pin groups.
Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.txt Valid values for pin and group names are: · line 86
Quoted 8 lines
Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.txt +1
-0@@ -82,6 +82,7 @@ Valid values for pin and group names are: spdo, spia, spib, spic, spid, spie, spif, spig, spih, uaa, uab, uac, uad, uca, ucb, uda. + tristate groups:
I undid that change.
Quoted 6 lines · Stephen Warren
Quoted 2 lines · Laxman Dewangan
Add valid property name for the property "nvidia,function" in DT binding document of Tegra pincontrol.
I have applied this to Tegra's for-3.12/dt branch, but I fixed up quite a few issues along the way...
Thank you very much for taking care.