diff options
author | Drew Fustini <drew@beagleboard.org> | 2021-03-01 21:30:57 -0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2021-03-10 14:41:58 +0100 |
commit | 6199f6becc869d30ca9394ca0f7a484bf9d598eb (patch) | |
tree | 044f52440337b5df0907b0380d01fd520d1a8abe /Documentation | |
parent | 47473813bdcb8c5ffa87f6d2ccb378b9b0882c83 (diff) | |
download | linux-stable-6199f6becc869d30ca9394ca0f7a484bf9d598eb.tar.gz linux-stable-6199f6becc869d30ca9394ca0f7a484bf9d598eb.tar.bz2 linux-stable-6199f6becc869d30ca9394ca0f7a484bf9d598eb.zip |
pinctrl: pinmux: Add pinmux-select debugfs file
Add "pinmux-select" to debugfs which will activate a pin function for a
given pin group:
echo "<group-name function-name>" > pinmux-select
The write operation pinmux_select() handles this by checking that the
names map to valid selectors and then calling ops->set_mux().
The existing "pinmux-functions" debugfs file lists the pin functions
registered for the pin controller. For example:
function: pinmux-uart0, groups = [ pinmux-uart0-pins ]
function: pinmux-mmc0, groups = [ pinmux-mmc0-pins ]
function: pinmux-mmc1, groups = [ pinmux-mmc1-pins ]
function: pinmux-i2c0, groups = [ pinmux-i2c0-pins ]
function: pinmux-i2c1, groups = [ pinmux-i2c1-pins ]
function: pinmux-spi1, groups = [ pinmux-spi1-pins ]
To activate function pinmux-i2c1 on group pinmux-i2c1-pins:
echo "pinmux-i2c1-pins pinmux-i2c1" > pinmux-select
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Drew Fustini <drew@beagleboard.org>
Link: https://lore.kernel.org/r/20210302053059.1049035-3-drew@beagleboard.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions