summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-pmic-eic-sprd.c
Commit message (Collapse)AuthorAgeFilesLines
* gpio: sprd: Change to use SoC compatible stringBaolin Wang2019-02-211-1/+1
| | | | | | | | | | | | Change to use SoC compatible string instead of wildcard string. The Spreadtrum SC9860 platform device trees and drivers' development are still in progress, and now we will always recompile and ship device trees at the same time as we will compile and ship the kernel, so we do not need care about the backwards compatibility. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* gpio: sprd: Remove unused irq trigger settingBaolin Wang2019-01-211-1/+0Star
| | | | | | | | | | The Spreadtrum PMIC interrupt controller has no registers to set irq trigger type, since it is always high level trigger. That means the PMIC EIC controller as a child device of PMIC INTC does not need to set the trigger type, so remove it. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* gpio: pmic_eic: Add edge trigger emulation for PMIC EICBaolin Wang2018-05-161-2/+56
| | | | | | | | | This patch will toggle the EIC level to emulate the edge trigger to support PMIC EIC egdge trigger function, which is required by gpio-keys driver. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* gpio: Add Spreadtrum PMIC EIC driver supportBaolin Wang2018-03-271-0/+330
The Spreadtrum PMIC EIC controller contains only one bank of debounce EIC, and this bank contains 16 EICs. Each EIC can only be used as input mode, as well as supporting the debounce and the capability to trigger interrupts when detecting input signals. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>