[PATCH v3 0/4] simatic-ipc additions to p2sb apl lake gpio

Henning Schild
2022-05-13T08:37:11Z

changed since v2:
- put GPIO led module under same config switch
- some style changes from review
- init gpios with gpiod_get_index and drop gpiod_set_value
- drop bogus "if" from watchdog Kconfig

changed since v1:
- rebased
- split p1 into p1-3

This switches the simatic-ipc modules to using the upcoming p2sb
interface introduced by Andy with
"platform/x86: introduce p2sb_bar() helper".
The series relies on these p2sb changes already applied and Andy will
likely take them into his series at some point.

It also switches to one apollo lake device to using gpio leds.

Henning Schild (4):
leds: simatic-ipc-leds: convert to use P2SB accessor
watchdog: simatic-ipc-wdt: convert to use P2SB accessor
platform/x86: simatic-ipc: drop custom P2SB bar code
leds: simatic-ipc-leds-gpio: add GPIO version of Siemens driver

drivers/leds/simple/Kconfig | 6 +-
drivers/leds/simple/Makefile | 1 +
drivers/leds/simple/simatic-ipc-leds-gpio.c | 105 ++++++++++++++++++
drivers/leds/simple/simatic-ipc-leds.c | 80 +------------
drivers/platform/x86/simatic-ipc.c | 43 +------
drivers/watchdog/Kconfig | 1 +
drivers/watchdog/simatic-ipc-wdt.c | 15 +--
.../platform_data/x86/simatic-ipc-base.h | 2 -
8 files changed, 126 insertions(+), 127 deletions(-)
create mode 100644 drivers/leds/simple/simatic-ipc-leds-gpio.c

--
2.35.1