summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-max77620.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* gpio: max77620: get gpio value based on directionVenkat Reddy Talla2016-07-041-1/+4
| | | | | | | | | | Gpio direction is determined by DIRx bit of GPIO configuration register, return max77620 gpio value based on direction in or out. Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* gpio: max77620: use the new open drain callbackLaxman Dewangan2016-06-071-0/+23
| | | | | | | | | | The MAX77620 have a GPIO pins which can act as open drain or push pull mode. Implement support for controlling this from GPIO descriptor tables or other hardware descriptions such as device tree by implementing the .set_single_ended() callback. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* gpio: max77620: Configure interrupt trigger levelLaxman Dewangan2016-06-071-8/+59
| | | | | | | | | | | The GPIO sub modules of MAX77620 offers to configure the GPIO interrupt trigger level as RISING and FALLING edge. Pass this information to regmap-irg when registering for GPIO interrupts. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* gpio: max77620: add gpio driver for MAX77620/MAX20024Laxman Dewangan2016-06-071-0/+238
MAXIM Semiconductor's PMIC, MAX77620/MAX20024 has 8 GPIO pins. It also supports interrupts from these pins. Add GPIO driver for these pins to control via GPIO APIs. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>