aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-axp209.c
AgeCommit message (Collapse)AuthorFilesLines
2016-11-24gpio: axp209: use correct register for GPIO input statusQuentin Schulz1-6/+2
The GPIO input status was read from control register (AXP20X_GPIO[210]_CTRL) instead of status register (AXP20X_GPIO20_SS). Signed-off-by: Quentin Schulz <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
2016-09-23gpio: axp209: Implement get_directionMaxime Ripard1-0/+30
Implement the get_direction callback for the GPIOs found in the AXP209 PMIC. Due to the way they are implemented, in the same register you have the muxing options, GPIO directions and GPIO values. Since you have no control over what value is there at reset, simply use output as the default. Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
2016-08-11gpio: Add AXP209 GPIO driverMaxime Ripard1-0/+162
The AXP209 PMIC has a bunch of GPIOs accessible, that are usually used to control LEDs or backlight. Add a driver for them Signed-off-by: Maxime Ripard <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Linus Walleij <[email protected]>