From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from outbound7.mail.transip.nl (outbound7.mail.transip.nl [136.144.136.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 416183F412F for ; Wed, 3 Jun 2026 04:00:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.144.136.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780459235; cv=none; b=GI9gK2u87NymAPl2aaDjqqrSH837/D+mnKvPhw9lr/bBGxOXX50/eZszdiyi/XlDQ1zR7MpuQHbzHx55qXQWZ1e80fw1QX8K5fwfjgmjXUBsCbLxJjPnZ4pfHdXeJROsej6FzOSU/qnC6FIdKusMu8JUZzqdY5dkMzhVuC/hfbo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780459235; c=relaxed/simple; bh=fkHe8a+I1BayW622StTnfVwl6uNV931426kgmB9BeYs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=somPp3huk2QnToSMHvECvwOBxAz+3g1QdyNzRZRnYBxGVVcHTLYaYQOE7AXDE6m7TfqjzQo0SPnTCUF50cDdOA2BU23WluAMgR7X8tihu6nvVVLyWmvhdJ/YvFaRM7ALsi2+po40TW7+PfzjveoqwLSfMXpUNyURNzHBHm1GbLI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=herrie.org; spf=pass smtp.mailfrom=herrie.org; dkim=pass (2048-bit key) header.d=herrie.org header.i=@herrie.org header.b=wQpSE0VU; arc=none smtp.client-ip=136.144.136.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=herrie.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=herrie.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=herrie.org header.i=@herrie.org header.b="wQpSE0VU" Received: from submission1.mail.transip.nl (unknown [10.100.4.70]) by outbound7.mail.transip.nl (Postfix) with ESMTP id 4gVYrV6P43zQvvWV; Wed, 3 Jun 2026 06:00:26 +0200 (CEST) Received: from herrie-desktop.. (180-93-184-31.ftth.glasoperator.nl [31.184.93.180]) by submission1.mail.transip.nl (Postfix) with ESMTPA id 4gVYrV2qdMzJjhXv; Wed, 3 Jun 2026 06:00:26 +0200 (CEST) From: Herman van Hazendonk To: Lee Jones Cc: linux-kernel@vger.kernel.org, Herman van Hazendonk Subject: [PATCH v2 0/1] mfd: lm8502: add core MFD driver for TI LM8502 Date: Wed, 3 Jun 2026 06:00:24 +0200 Message-ID: <20260603040026.398009-1-github.com@herrie.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260603035411.396383-1-github.com@herrie.org> References: <20260603035411.396383-1-github.com@herrie.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: ClueGetter at submission1.mail.transip.nl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=transip-a; d=herrie.org; t=1780459226; h=from:subject:to:cc: references:in-reply-to:date:mime-version:content-type; bh=TBp+JneMHKJ7yHVDT6NkUtNxAUoftim6f/QuRMYkxgk=; b=wQpSE0VUW8OcJ6Kn9SlNJKzB3Bwe1Cu3yQPy6pVrLVHa6Pmrksit9Sb82GmqMbWsiuLU+i +H7joOVQiA5M2ZyZxHVAZIsm1u/Kt3WOwAaoQVOOpT6lFT3wf/2prE7vKFc0ws9npUGoMu dt0o0UCdPWd/lV+Ts+/OAyVW6ilO84vtmHLx9Az03bFK1xRvDqJViNabJZ8GwfQiBU8Zhb p4WhlQDPG3/uEN1Kj4/8Z8d6k2BmIATWLhYAsT8e7MIDt0/UJsGWFHGp2dGSWhbr+sK9aw vHMIA13jQrgf7uYcRPmJQh6YDQTgM5ZsWLgBMTfnhOIzKyEkF0TDlZamiZDNCA== X-Report-Abuse-To: abuse@transip.nl 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