[PATCH v5 0/2] rohm-bdi718x7/71828: Use software nodes for gpio-keys
From: Dmitry Torokhov
Date: Thu Jun 11 2026 - 11:49:43 EST
Now that gpio-keys can use platform resources to identify interrupts
assigned to buttons we can convert ROHM power buttons to use software
nodes and device properties for configuration, removing the need to use
platform data.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
---
Changes in v5:
Addressed Lee's comments:
- moved static constants out of function to module level
- added #defines for nodes' indexes
- adjusted error message
- renamed "error" to "ret"
- dropped unneeded comments
- Link to v4: https://patch.msgid.link/20260427-rohm-software-nodes-v4-0-ffeb5b0c4774@xxxxxxxxx
Changes in v4:
- avoid using compound literals in assignments
- Link to v3: https://patch.msgid.link/20260324-rohm-software-nodes-v3-0-edde5a0324d5@xxxxxxxxx
Changes in v3:
- Stopped mixing code and variable declarations, use more temps
- Moved assignment to irq_domain closer to where is is being used
- Added missing SOB
- Link to v2: https://patch.msgid.link/20260322-rohm-software-nodes-v2-0-3c7d21336d37@xxxxxxxxx
v2:
- dropped patch to gpio-keys as it is in the mainline now
- reworked the both drivers to dynamically allocate per-device software
nodes
v1:
https://lore.kernel.org/r/20250817224731.1911207-1-dmitry.torokhov@xxxxxxxxx/
---
Dmitry Torokhov (2):
mfd: rohm-bd71828: Use software nodes for gpio-keys
mfd: rohm-bd718x7: Use software nodes for gpio-keys
drivers/mfd/rohm-bd71828.c | 125 +++++++++++++++++++++++++++++++++------------
drivers/mfd/rohm-bd718x7.c | 123 ++++++++++++++++++++++++++++++++------------
2 files changed, 183 insertions(+), 65 deletions(-)
---
base-commit: ec039126b7fac4e3af35ebccaa7c6f9b6875ba81
change-id: 20260313-rohm-software-nodes-0b4a3d36128c
Thanks.
--
Dmitry