pinctrl: pinctrl-zynqmp: Add support for output-enable and bias-high impedance
authorSai Krishna Potthuri <sai.krishna.potthuri@amd.com>
Mon, 31 Jul 2023 09:50:26 +0000 (15:20 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 7 Aug 2023 08:48:03 +0000 (10:48 +0200)
commit0516dd657246165016e0cdb4b4fc5e34e58c2372
tree13e8f5fb47629a02d98f6c88c4fce40c825a2421
parent6cb1d2a158840513b2dfd88550aaefd63b0c38fa
pinctrl: pinctrl-zynqmp: Add support for output-enable and bias-high impedance

Add support to handle 'output-enable' and 'bias-high-impedance'
configurations.

Using these pinctrl properties observed hang issues with older PMUFW(Xilinx
ZynqMP Platform Management Firmware), hence reverted the patch.
Commit 9989bc33c4894e075167 ("Revert "pinctrl: pinctrl-zynqmp: Add support
for output-enable and bias-high-impedance"").

Support for configuring these properties added in PMUFW Configuration Set
version 2.0. When there is a request for these configurations from pinctrl
driver for ZynqMP platform, xilinx firmware driver checks for this version
before configuring these properties to avoid the hang issue and proceeds
further only when firmware version is >=2 otherwise it returns error.

Signed-off-by: Sai Krishna Potthuri <sai.krishna.potthuri@amd.com>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20230731095026.3766675-5-sai.krishna.potthuri@amd.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-zynqmp.c