[U-Boot] [PATCH v1 14/16] gpio: Add support for Qualcomm PM8916 gpios

Simon Glass sjg at chromium.org
Mon Jan 11 17:58:03 CET 2016


On 6 January 2016 at 11:21, Mateusz Kulikowski
<mateusz.kulikowski at gmail.com> wrote:
> This driver supports GPIOs present on PM8916 PMIC.
> There are 2 device drivers inside:
> - GPIO driver (4 "generic" GPIOs)
> - Keypad driver that presents itself as GPIO with 2 inputs (power and reset)
>
> Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski at gmail.com>
> ---
>
> Changes in v1:
> - Add binding doc
> - Fixed inlcude ordering
> - Merged direction_input and direction_output functions
> - gpio_get: use switch instead of stacked if
> - use pmic_clrsetbits
> - add possibility to change prwkey bank name
> - Handle invalid bindings
> - Sanity HW check (i.e. check type/subtype registers)
>
>  doc/device-tree-bindings/gpio/pm8916_gpio.txt |  48 ++++
>  drivers/gpio/Kconfig                          |  10 +
>  drivers/gpio/Makefile                         |   1 +
>  drivers/gpio/pm8916_gpio.c                    | 302 ++++++++++++++++++++++++++
>  4 files changed, 361 insertions(+)
>  create mode 100644 doc/device-tree-bindings/gpio/pm8916_gpio.txt
>  create mode 100644 drivers/gpio/pm8916_gpio.c

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list