From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796526537; b=YSTCZdVXBdV9mnD3i0uS9qqCSK4GvJzGlbYH3LGIunqo2SADpoXa6VhC+k1SXohwnWl6 DcoY6J1khpdZGf3WVgakXGTeSERW3x0iicElpx7jhHhIrwuHaBRI7EAA7M9hrcY9FjY9C MEYAileJFEgPv1UntnAjiKuG6PMSOMZxyXVPCUligxxinsO+f1Ey3MxoDb7yQWRSbTkY6 bag/FgWC4RYJsgRXery0hvDEqZYMkc4d9WNz49b1lKOigXC6YiSbfJrpglEUwZJc5vSna uPeJ+uIUbGDfajsRcMSK+1tpJmiHK3L7+QcStR+0/BtsCZX3RrEcXl3CnLEBQSvjoYA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796526537; h=Received:DKIM-Signature:Received:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; bh=JjQWqWJdDUafz8J5n/OGuB1BlEifqJEImaX5qbMBEc0=; b=WvmGXfe+FbDuufliILoE6ehVJUv+SutCrgmhGkhPv90qcwqM3icgW3ld1thecCTvQ0B5 VMPknA1b/AE1zDBoCHujIwgVOpiSAd7HwoIuuwH8VkGFbs++UG42xfSVDyJHfrMcDUmFu MRusrda0TfPiBTaORc1U+xeH+jVBy5bsSgWSLtSTO3H+k5krGcz2PaytZqVEVuFCooAV1 //P1fkbd/9OtKGhmOpVt7OW+wp8aGd3VlefBHdjuU+gaSwhlde0kRrJSi4AiSYNd54ycc ZzwVRc99iP9XT7/v43zt3RnVCj2/TuaHqC+IWvswio7p2rWLvYrL/C3eSNs7oWCVgoQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=i1jl8WBm; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C14F606A31F; Sun, 6 Dec 2026 03:08:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=i1jl8WBm Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796526536; b=sHLLpE85lvu+Dai8JDI+IUamXJu1K/6nRcny5VCpZDe9FPAD/iiSiBaPazsLsdpmx1bT HDsJToCZ92YoQ5JKPrjssjPcEO+CAdWtdHMFpuSH9HFLbCkNDLztOzXbsmIgC9EvNcR46 FiFtmNJrySvuwm23shA9awOnNRxFlIqsxJLtDQBkLHksMVWXuShiNvw3jsy3WxLbm8Z/R 6mqy44v4T15/LGOXvKWym+MoVpr+o7f74J+GIUkKkrYF6uApA7V0KbPq9iMDdK734UhoN x1OuJMnv71YUKru3ogil+kVdC8QRtUxL0cs1ZEsdp1ELdDIxJ2raD4ZQ0vf+5WGIYfw== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796526536; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=JjQWqWJdDUafz8J5n/OGuB1BlEifqJEImaX5qbMBEc0=; b=0Dmf1inx0x7n60BxB16h8gIUGP+q+Y6oFVQeDNXIgIh6HMf/RhTPp9zLYRpOze2hYTG+ F4yMt78MEtfyC9FUigpJsPxySB2SIUYoXjVz8j2nI5fBBVG0CYGw600kqTQnQ335LXPV5 Tzz2VUvSjRM3Bnhr2z3xayMY3Y+X944tQ1Kzr1eAjtcWtglxppHANzViEEb3sha3PFzvx Qtb+FeFjqCHBXcAXQtaKTleOc6DGQVM05kFaTUEvI09+bpfKwlPEY9hDIeQOlugE/42Wp sjtH6ziLrc5CjTuVddX2lKKDxuJ+0FwJ71nxDgqwAHwkbiYaXKI0/FlEJgNf7DwUFZw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 49F6F1F0092B; Sun, 6 Dec 2026 03:08:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796526536; bh=JjQWqWJdDUafz8J5n/OGuB1BlEifqJEImaX5qbMBEc0=; h=From:Subject:Date:To:Cc:Reply-To; b=i1jl8WBmJRYMt/9HWDGbDMml1CCtDqfR1MUuDmKHhHywF57TZiu25/k0eJ4tRWPA5 2R00OqZhozjus02WNFBWTQks2gRvZ+e7FFaojxM2tRXmpmd6qrIsgdhV6X3ST+KxzT rAcNrF12jrpwRH9KgX4ihMecgDVfbITRaVfQwaFxfjdRgmjuqvFrcKgH5FYGJBEV8/ Qd787Jdf7/uD4vy4ACffjhDRbHqv0mKoESlMb/cfC9xi1q1CMhXwJYcdkhfEVLzPjb 5vNaON5rk6OjIqAYaEOQymgh54re7umr2wlQPYjNcIETeB+r8UmDiJJuCF+RDpGLe/ uHzbGMS87VvJA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id CD82350581; Sun, 6 Dec 2026 03:08:55 +0000 (UTC) From: =?utf-8?q?Moln=C3=A1r_M=C3=A1t=C3=A9_via_B4_Relay?= Subject: [PATCH v7 0/9] Add the remaining AXP192 PMIC support Date: Sun, 06 Dec 2026 04:08:52 +0100 Message-Id: <20261206-axp192-v7-0-0200fc77da53@gmail.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAMTRFGsC/yXMQQ5AMBCF4avIrDVhJENdRSzQwVggLdKkcXfF8 kv+9wI4tsIO6iSA5UucbGtEmSYwzN06sRITDZgh5ZiR6vyea1SGCHXFZixYQ4x3y6P476hpf7u zX3g43jXc9wOlvDgYagAAAA== X-Change-ID: 20261206-axp192-d66298edf3e9 To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Sebastian Reichel , Liam Girdwood , Mark Brown , Dmitry Torokhov , Lee Jones Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-input@vger.kernel.org, mfd@lists.linux.dev, Aidan MacDonald , Alex Bee , =?utf-8?q?Moln=C3=A1r_M=C3=A1t=C3=A9?= , Andy Shevchenko , Chen-Yu Tsai X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796526534; l=2726; i=matemolnar88@gmail.com; s=20261206; h=from:subject:message-id; bh=aP+TSErZpctNwJYU37tAOSIxKQFybtG/DYhhOVeV/0I=; b=U1aQ2bfoN+qqy7uemClLTZ9IXBOBcQaZ2LoqoqsKjr+m/kJI872W10duz2GRSouWldXWyJS2w sRlJ7G0gi09BbRb9QMLT+OhG+WHeLfmkvsQxz9ZAVLrDLzNOQ2iQk1s X-Developer-Key: i=matemolnar88@gmail.com; a=ed25519; pk=o0eaP3d+Tu4uOuWOIB+3z9PU2PVp44IJx39jgd4q4F4= X-Endpoint-Received: by B4 Relay for matemolnar88@gmail.com/20261206 with auth_id=1759 X-Original-From: =?utf-8?q?Moln=C3=A1r_M=C3=A1t=C3=A9?= Reply-To: matemolnar88@gmail.com This picks up Aidan MacDonald's AXP192 series [1]. The MFD core, ADC and USB power supply parts were merged back then, but the regulator, battery and two binding patches were not, and Aidan has said he no longer works on it [2]. I'm resending them, rebased on next-20261201, and adding a capacity estimate and power key support on top. Tested on next-20261201 on a Denver TAQ-10162 tablet (RK3126 + AXP192): all regulators come up at their DT voltages, the battery, USB power supply and power key work, and with a simple-battery OCV table in the board DT the capacity tracks the battery voltage, so UPower no longer shuts the tablet down at what it took for 0%. I used an AI coding assistant (Claude) to rebase the series, draft the new patches and commit messages, and run the hardware tests; I have reviewed and tested every patch myself. Changes since v6: - dt-bindings and regulator patches: rebased only, tags kept. - axp20x_battery patches: the driver has gained per-variant descriptors and callbacks (AXP717 support) since v6, so these were reworked to fit; review tags dropped for that reason. - New: capacity estimate from the monitored battery's OCV table, since the AXP192 has no fuel gauge. - New: axp20x-pek and mfd patches for the AXP192 power key, which only has short/long press interrupts and no edge interrupts. [1] https://lore.kernel.org/all/20221016234335.904212-1-aidanmacdonald.0x0@gmail.com/ [2] https://lkml.iu.edu/hypermail/linux/kernel/2501.0/00419.html --- Aidan MacDonald (6): dt-bindings: iio: adc: axp209: Add AXP192 compatible dt-bindings: power: axp20x-battery: Add AXP192 compatible regulator: axp20x: Add support for AXP192 power: axp20x_battery: Add constant charge current table power: axp20x_battery: Support battery status without fuel gauge power: axp20x_battery: Add support for AXP192 Molnár Máté (3): power: axp20x_battery: Estimate AXP192 capacity from the OCV table Input: axp20x-pek: Add AXP192 support mfd: axp20x: Add the AXP192 power key cell .../bindings/iio/adc/x-powers,axp209-adc.yaml | 18 ++ .../x-powers,axp20x-battery-power-supply.yaml | 1 + drivers/input/misc/axp20x-pek.c | 29 ++- drivers/mfd/axp20x.c | 10 ++ drivers/power/supply/axp20x_battery.c | 195 +++++++++++++++++++-- drivers/regulator/axp20x-regulator.c | 100 ++++++++++- 6 files changed, 328 insertions(+), 25 deletions(-) --- base-commit: d138596e9f822033490b2e577ec2ea64f2aa246c change-id: 20261206-axp192-d66298edf3e9 Best regards, -- Molnár Máté