Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

misc: microchip: pci1xxxx: Add push-pull drive support for GPIO

Add support to configure GPIO pins for push-pull drive mode.

Signed-off-by: Rengarajan S <rengarajan.s@microchip.com>
Link: https://lore.kernel.org/r/20241205134956.1493091-1-rengarajan.s@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rengarajan S and committed by
Greg Kroah-Hartman
df7b2f20 154916f4

+3
+3
drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c
··· 147 147 case PIN_CONFIG_DRIVE_OPEN_DRAIN: 148 148 pci1xxx_assign_bit(priv->reg_base, OPENDRAIN_OFFSET(offset), (offset % 32), true); 149 149 break; 150 + case PIN_CONFIG_DRIVE_PUSH_PULL: 151 + pci1xxx_assign_bit(priv->reg_base, OPENDRAIN_OFFSET(offset), (offset % 32), false); 152 + break; 150 153 default: 151 154 ret = -EOPNOTSUPP; 152 155 break;