[PATCH v3 0/4] gpio: timberdale: remove platform data header

From: Bartosz Golaszewski

Date: Fri Mar 27 2026 - 07:02:49 EST


There are several GPIO driver header scattered directly under
include/linux/. I'd like to either remove them or move then under
include/linux/gpio/. In case of gpio-timberdale, the platform data
struct can be replaced with generic device properties. This series does
that. It can go either though the MFD tree or GPIO with an Ack from Lee.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>
---
Changes in v3:
- Replace magic values with named defines
- Move GPIO_NR_PINS into the MFD driver
- Explain the advantage of using device properties over platform data
- Link to v2: https://patch.msgid.link/20260316-gpio-timberdale-swnode-v2-0-ea0078066871@xxxxxxxxxxxxxxxx

Changes in v2:
- Change the property names to make them consistent with existing ones
used by intel
- Link to v1: https://patch.msgid.link/20260313-gpio-timberdale-swnode-v1-0-4df2e9b1dab5@xxxxxxxxxxxxxxxx

---
Bartosz Golaszewski (4):
mfd: timberdale: move GPIO_NR_PINS into the driver
mfd: timberdale: set up a software node for the GPIO cell
gpio: timberdale: use device properties
gpio: timberdale: remove platform data header

drivers/gpio/gpio-timberdale.c | 26 +++++++++++++-------------
drivers/mfd/timberdale.c | 33 ++++++++++++++++++---------------
drivers/mfd/timberdale.h | 1 -
include/linux/timb_gpio.h | 25 -------------------------
4 files changed, 31 insertions(+), 54 deletions(-)
---
base-commit: e77a5a5cfe43b4c25bd44a3818e487033287517f
change-id: 20260313-gpio-timberdale-swnode-03b1a0945359

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>