From patchwork Tue Oct 21 11:20:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 86 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 104532F361A for ; Tue, 21 Oct 2025 11:20:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761045625; cv=none; b=Lw5ESsRyBVPbHjjd48jBkJr/j3ZypaHD7t8M/vY27rOXrX14Q3glLkxmK6jYNC0MO+eIb4zx95cG7BsMFvfwQ2/ucDZU33PtQPRk62ZXJ6EMQqSmB+jyMobBYYzynnaXb9VxObnfpfhRL3rbzKrLFkGc4unbarijiRRNllpCJ8w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761045625; c=relaxed/simple; bh=hPWs8ptQ1QGyoYP0WVkAaMz4f9u8U+CuIyDcFo1CHRA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=mmxaLBJ3buU2odjSPEdAbIjPCS/ZvKBILTMz+dT2m3PS/Cg82zo+gCKzaYGzZ2zLp7lm1ataZGZI7ITHWIrAwMUnWDJHcw7A1rbblitV0dJV7nT42H4Ucsd07tH8I+MMyrjCPHwM5b030yRqMA2JKre7WuNg7J47qXTg3vdxprc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 84B691063; Tue, 21 Oct 2025 04:20:15 -0700 (PDT) Received: from donnerap.arm.com (donnerap.manchester.arm.com [10.33.8.67]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A1C6B3F63F; Tue, 21 Oct 2025 04:20:21 -0700 (PDT) From: Andre Przywara To: Lee Jones , Chen-Yu Tsai , Liam Girdwood , Mark Brown , Samuel Holland , Jernej Skrabec Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] regulator: Add X-Powers AXP318W PMIC support Date: Tue, 21 Oct 2025 12:20:09 +0100 Message-Id: <20251021112013.2710903-1-andre.przywara@arm.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Status: O This patch series adds support for the X-Powers AXP318W PMIC, which is used recently on new boards with Allwinner SoCs (the A733). Compared to the RFC post, this now has been tested on real hardware, with the full regulator description for the Radxa Cubie A7A board. This also adds the switched outputs (swout1/swout2), and fixes the DCDC input supplies, which are combined in certain ways. Rob, I dropped your tag on the binding tag, since there were quite some changes. The PMIC features 9 DCDC buck converters and 28 LDOs, plus the usual ADC, interrupts, and power key components. A datasheet can be found linked in this Wiki table: https://linux-sunxi.org/AXP_PMICs Patch 1 adds the compatible string to the binding document, and adds the additional input supply properties. Patch 2 is the MFD part, describing the regmap and all the interrupts. So far we support the regulator and power key devices, the ADC and other pieces will follow later. Patch 3 adds the voltage regulator rails, this part is crucial to enable any board using this PMIC, as we depend on those rails even for basic devices. Based on v6.18-rc1. Please have a look! Changelog RFC ... v1: - tested on hardware - adding switch outputs (swout1/swout2) (to binding and code) - fixing DC/DC input supplies (in binding and code) Andre Przywara (3): dt-bindings: mfd: x-powers,axp152: Document AXP318W mfd: axp20x: Add support for AXP318W PMIC regulator: axp20x: add support for the AXP318W .../bindings/mfd/x-powers,axp152.yaml | 28 ++- drivers/mfd/axp20x-i2c.c | 2 + drivers/mfd/axp20x.c | 84 +++++++++ drivers/regulator/axp20x-regulator.c | 170 +++++++++++++++++- include/linux/mfd/axp20x.h | 129 +++++++++++++ 5 files changed, 410 insertions(+), 3 deletions(-)