gpio: Add ChromeOS EC GPIO driver
authorStephen Boyd <swboyd@chromium.org>
Tue, 20 Feb 2024 04:52:27 +0000 (20:52 -0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 26 Feb 2024 13:37:50 +0000 (14:37 +0100)
commitf837fe1bffe6976ed5e7198b1892ea248b75358b
treec197c66569572db5fcc10e92d9b7faa1f3fb3bc6
parentee9d5895672fe723a1626a91e4957fd3cd5cfdda
gpio: Add ChromeOS EC GPIO driver

The ChromeOS embedded controller (EC) supports setting the state of
GPIOs when the system is unlocked, and getting the state of GPIOs in all
cases. The GPIOs are on the EC itself, so the EC acts similar to a GPIO
expander. Add a driver to get and set the GPIOs on the EC through the
host command interface.

Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpio-cros-ec.c [new file with mode: 0644]