From: Herman van Hazendonk <github.com@herrie.org>
To: Lee Jones <lee@kernel.org>
Cc: linux-kernel@vger.kernel.org,
Herman van Hazendonk <github.com@herrie.org>
Subject: [PATCH v2 0/1] mfd: lm8502: add core MFD driver for TI LM8502
Date: Wed, 3 Jun 2026 06:00:24 +0200 [thread overview]
Message-ID: <20260603040026.398009-1-github.com@herrie.org> (raw)
In-Reply-To: <20260603035411.396383-1-github.com@herrie.org>
Apologies for the noise — v1 (Message-ID:
<20260603035411.396383-1-github.com@herrie.org>) was sent as a bare
[PATCH] without a cover letter. This v2 resends with the correct
format. No code changes relative to v1.
---
The TI LM8502 is an I2C-attached combo device combining ten constant-
current LED outputs (D1..D10) with an internal H-bridge for driving a
vibrator motor. Pin D10 is shared between the tenth LED channel and
the haptic output.
This patch adds the MFD core driver:
- i2c probe with optional vcc regulator (High Power Mode handshake
for RPM-managed LDOs carrying "regulator-allow-set-load") and
optional chip-enable GPIO
- Software reset and post-reset configuration sequence
- Chip readiness verification via an LP55xx-style write-CHIP_EN-
then-readback loop (250 ms bound); children only probe once the
chip is known to be ACKing the bus
- Devres-ordered teardown: lm8502_power_off() registered via
devm_add_action_or_reset() *before* devm_mfd_add_devices() so
devres LIFO unwinds children first (their .remove callbacks issue
final regmap writes against a still-powered chip), then powers
off the rail
- MAINTAINERS entry covering all four driver files
Two children are spawned:
ti,lm8502-leds - LED-class outputs D1..D10
ti,lm8502-haptic - EV_FF / FF_RUMBLE input device
The corresponding child drivers land in subsequent patches.
The DT binding for this device was submitted separately:
Subject: [PATCH] dt-bindings: mfd: add ti,lm8502 combo LED + haptic controller
Changes since v1:
- Resend with cover letter; no code changes
Herman van Hazendonk (1):
mfd: lm8502: add core MFD driver for TI LM8502
MAINTAINERS | 9 +
drivers/mfd/Kconfig | 18 ++
drivers/mfd/Makefile | 1 +
drivers/mfd/lm8502.c | 511 +++++++++++++++++++++++++++++++++++++
include/linux/mfd/lm8502.h | 130 ++++++++++
5 files changed, 669 insertions(+)
create mode 100644 drivers/mfd/lm8502.c
create mode 100644 include/linux/mfd/lm8502.h
base-commit: 944125b4c454b58d2fe6e35f1087a932b2050dff
--
2.43.0
next prev parent reply other threads:[~2026-06-03 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-03 3:54 [PATCH] mfd: lm8502: add core MFD driver for TI LM8502 Herman van Hazendonk
2026-06-03 4:00 ` Herman van Hazendonk [this message]
2026-06-03 4:00 ` [PATCH v2 1/1] " Herman van Hazendonk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260603040026.398009-1-github.com@herrie.org \
--to=github.com@herrie.org \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.