Biju Das
26fea220ad
pinctrl: da9062: Add OF table
...
Add OF table as per the binding so that driver get instantiated and
bind automatically when the driver is built as a module.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com >
Link: https://lore.kernel.org/r/20240226191607.397386-1-biju.das.jz@bp.renesas.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
2024-02-29 14:44:08 +01:00
Bartosz Golaszewski
a5c612b9db
pinctrl: da9062: don't include private GPIOLIB header
...
gpiochip_get_desc() now lives in linux/gpio/driver.h and there is no
longer any need to include GPIOLIB's private header.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org >
Reviewed-by: Andy Shevchenko <andy@kernel.org >
Acked-by: Linus Walleij <linus.walleij@linaro.org >
2023-09-12 10:06:01 +02:00
Bartosz Golaszewski
d56c6f798a
pinctrl: da9062: add missing include
...
gpiod_is_active_low() is defined in linux/gpio/consumer.h. It's only
because we're pulling in the gpiolib.h private header that we get this
declaration implicitly but let's fix it as that is going away soon.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org >
Reviewed-by: Andy Shevchenko <andy@kernel.org >
Acked-by: Linus Walleij <linus.walleij@linaro.org >
2023-09-12 10:05:55 +02:00
Andy Shevchenko
ce85283733
pinctrl: Propagate firmware node from a parent device
...
When creating MFD platform devices the firmware node is left unset.
This, in particular, prevents GPIO library to use it for different
purposes. Propagate firmware node from the parent device and let
GPIO library do the right thing.
While at it, slightly modify the headers to reflect the usage of APIs.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com >
Reviewed-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com >
Link: https://lore.kernel.org/r/20211216151227.58687-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
2021-12-22 03:09:56 +01:00
YueHaibing
2353810dac
pinctrl: da9062: Fix error gpiolib.h path
...
gcc 7.4.0 build fails:
drivers/pinctrl/pinctrl-da9062.c:28:10: fatal error: ../gpio/gpiolib.h: No such file or directory
#include <../gpio/gpiolib.h>
^~~~~~~~~~~~~~~~~~~
Fix this wrong include path.
Fixes: 56cc3af4e8 ("pinctrl: da9062: add driver support")
Signed-off-by: YueHaibing <yuehaibing@huawei.com >
Link: https://lore.kernel.org/r/20200228063429.47528-1-yuehaibing@huawei.com
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de >
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
2020-02-28 14:15:53 +01:00
Marco Felsch
56cc3af4e8
pinctrl: da9062: add driver support
...
The DA9062 is a mfd pmic device which supports 5 GPIOs. The GPIOs can
be used as input, output or have a special use-case.
The patch adds the support for the normal input/output use-case.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de >
Link: https://lore.kernel.org/r/20200108104746.1765-4-m.felsch@pengutronix.de
Reviewed-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com >
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
2020-02-19 17:16:31 +01:00