diff options
author | Subbaraman Narayanamurthy <quic_subbaram@quicinc.com> | 2021-09-13 19:57:26 -0700 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2021-10-03 00:43:09 +0200 |
commit | 727293a8b11e64bc2038ed57a36250ada62144f1 (patch) | |
tree | 4633d170d41c1664ef3d7778d8cc67f17c52d603 /drivers/pinctrl/qcom/pinctrl-apq8084.c | |
parent | 8c82646196c42e2ca49dc275242105a54982c290 (diff) |
pinctrl: qcom: spmi-gpio: add support to enable/disable output
Currently, if the GPIO is configured as output in the bootloader
and user changes the mode to input in HLOS, it would end up
getting configured as input/output. Functionally, this is fine;
however, there may be some requirements where the output needs
to be disabled so that it can be used only for input.
Add support to enable/disable output mode through "output-enable"
or "output-disable" pinctrl properties.
Signed-off-by: Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1631588246-4811-3-git-send-email-quic_subbaram@quicinc.com
[Drop copyright change which is already upstrean in -rcN]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/qcom/pinctrl-apq8084.c')
0 files changed, 0 insertions, 0 deletions