linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] pinctrl: pinctrl-zynqmp: Add tri-state configuration support
@ 2023-07-24  8:45 Sai Krishna Potthuri
  2023-07-24  8:45 ` [PATCH v2 1/4] firmware: xilinx: Add support to get platform information Sai Krishna Potthuri
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Sai Krishna Potthuri @ 2023-07-24  8:45 UTC (permalink / raw)
  To: Linus Walleij, Michal Simek, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Mathieu Poirier, Tanmay Shah, Ben Levinsky,
	Marek Vasut, Roman Gushchin, Arnd Bergmann
  Cc: linux-arm-kernel, linux-kernel, linux-gpio, devicetree,
	saikrishna12468, git, Sai Krishna Potthuri

Add pinctrl driver support to handle 'output-enable' and
'bias-high-impedance' configurations with proper Configuration Set version
check. This will ensure system not to crash even if older Xilinx ZynqMP
Platform Management Firmware is used.
Initial Commit details:
Commit 133ad0d9af99bdca9070 ("dt-bindings: pinctrl-zynqmp: Add
output-enable configuration").
Commit ad2bea79ef0144043721 ("pinctrl: pinctrl-zynqmp: Add support
for output-enable and bias-high-impedance").

With the above patches, using these pinctrl properties in the device-tree
cause system hang issues with older Xilinx ZynqMP Platform Management
Firmware, hence reverted the patches.
Reverted Commit details:
Commit ff8356060e3a5e126abb ("Revert "dt-bindings: pinctrl-zynqmp: Add
output-enable configuration"").
Commit 9989bc33c4894e075167 ("Revert "pinctrl: pinctrl-zynqmp: Add support
for output-enable and bias-high-impedance"").
With the latest firmware and driver changes, driver will ask firmware if
that feature is supported or not by checking the version. This way it
works with all Xilinx firmwares.

changes in v2:
- Updated commit description in 3/4 patch as suggested by Conor Dooley.

Dhaval Shah (1):
  firmware: xilinx: Add support to get platform information

Sai Krishna Potthuri (3):
  firmware: xilinx: Add version check for TRISTATE configuration
  dt-bindings: pinctrl-zynqmp: Add output-enable configuration
  pinctrl: pinctrl-zynqmp: Add support for output-enable and bias-high
    impedance

 .../bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml |  4 ++
 drivers/firmware/xilinx/zynqmp.c              | 51 +++++++++++++++++++
 drivers/pinctrl/pinctrl-zynqmp.c              |  9 ++++
 include/linux/firmware/xlnx-zynqmp.h          | 15 ++++++
 4 files changed, 79 insertions(+)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-07-27  5:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-24  8:45 [PATCH v2 0/4] pinctrl: pinctrl-zynqmp: Add tri-state configuration support Sai Krishna Potthuri
2023-07-24  8:45 ` [PATCH v2 1/4] firmware: xilinx: Add support to get platform information Sai Krishna Potthuri
2023-07-24 10:14   ` Michal Simek
2023-07-24  8:45 ` [PATCH v2 2/4] firmware: xilinx: Add version check for TRISTATE configuration Sai Krishna Potthuri
2023-07-24 10:16   ` Michal Simek
     [not found]   ` <cde3fef1-7ab0-cd3b-df1a-c29c47770e73@amd.com>
2023-07-27  5:20     ` Potthuri, Sai Krishna
2023-07-24  8:45 ` [PATCH v2 3/4] dt-bindings: pinctrl-zynqmp: Add output-enable configuration Sai Krishna Potthuri
2023-07-24  8:45 ` [PATCH v2 4/4] pinctrl: pinctrl-zynqmp: Add support for output-enable and bias-high impedance Sai Krishna Potthuri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).