• Nicolas Saenz Julienne's avatar
    gpio: add tps65218 gpio · c366c76a
    Nicolas Saenz Julienne authored
    Driver for the GPIO block found in ti's tps65218 pmics.
    The device has two GPIOs and one GPO pin which can be configured as follows:
    	-general-purpose, open-drain output controlled by GPO1 user bit and/or
    	-DDR3 reset input signal from SOC. Signal is either latched or
    	 passed-trough to GPO2 pin. See below for details.
    	-general-purpose output controlled by GPO2 user bit
    	-DDR3 reset output signal. Signal is controlled by GPIO1 and PGOOD.
    	 See below for details.
    	-Output buffer can be configured as open-drain or push-pull.
    	-general-purpose, open-drain output controlled by GPO3 user bit and/or
    	-reset input-signal for DCDC1 and DCDC2.
    The input configurations are not meant to be used by the user so the driver
    only offers GPOs.
    v2: Added request routine that evaluates the fw config flags and removed module
    v3: Added .direction_input() routine, and took care of all Linus Walleij
    suggestions (clamp to bool, use proper include)
    Signed-off-by: Nicolas Saenz Julienne's avatarNicolas Saenz Julienne <nicolassaenzj@gmail.com>
    Signed-off-by: Linus Walleij's avatarLinus Walleij <linus.walleij@linaro.org>
gpio-tps65218.c 5.4 KB