From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD11E7FE; Sun, 10 Mar 2024 01:02:37 +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=1710032560; cv=none; b=jySmh+JiZaB3ecVWm+4GQtJeNntJmL9YYHEBO4f2gSeT/dtssuav78uFHy5wBF0yxcs/vCNXzQt2hmfz4aYBB97Lu0qjU7cfj11U804loFRbiVrP4mw5gjPaQXdG42ij735pJrap0QEwDdRO+Y9OK4wud5MMFClqnvQwe7FRUTw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710032560; c=relaxed/simple; bh=9dx8jZPUSeMi8ixwiSo2dmMXQdjJUvVJtzxtmxRaMZM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=TVmlVjFNE9cKw/Dsn8IXRIGyruXvNpOha7t+L0Zh9y4SzcrLUlO476giAiFqAkKLIwso/Ga+4UMFWJyQqV0hSn6+CkmSTD6ylJy4IqzCWLzFDK1psCKOa9V89izzn7PF6IJK/jqS2iJ8oHql+eyTn7SVcFWTf/AbVRvXyXErqgE= 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 4EDEB113E; Sat, 9 Mar 2024 17:03:07 -0800 (PST) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5E7663F73F; Sat, 9 Mar 2024 17:02:29 -0800 (PST) From: Andre Przywara To: Liam Girdwood , Mark Brown , Chen-Yu Tsai , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, Samuel Holland , Jernej Skrabec , Chris Morgan , linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH 0/4] regulator: Add X-Powers AXP717 PMIC support Date: Sun, 10 Mar 2024 01:02:07 +0000 Message-Id: <20240310010211.28653-1-andre.przywara@arm.com> X-Mailer: git-send-email 2.35.8 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch series adds support for the X-Powers AXP717 PMIC, which is used recently on new boards with Allwinner SoCs. Allwinner's BSP code often speaks of the AXP2202, this seems to be the same chip, at least a boot0 AXP2202 driver happily drove a chip labelled AXP717. Patch 1 fixes a typo in some macro names for the AXP313a PMIC, I just realised that during some copy&paste action. It's just an identifier rename, so not a backport candidate, I'd say. Patch 2 adds the compatible string to the binding document. Patch 3 is the MFD part, describing the regmap and all the interrupts. So far we support the regulator and power key devices, the USB and charging devices will follow later. Patch 4 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. Please note that I could not test this driver myself, but had success messages from others. It would be good to hear from Ryan and Chris here on the list, with a Tested-by: tag. This series is based on next-20240308 for now. I will send a rebased update after the merge window, but wanted to start discussion and review now. Please have a look! Cheers, Andre Andre Przywara (4): regulator: axp20x: fix typo-ed identifier dt-bindings: mfd: x-powers,axp152: document AXP717 mfd: axp20x: add support for AXP717 PMIC regulator: axp20x: add support for the AXP717 .../bindings/mfd/x-powers,axp152.yaml | 2 + drivers/mfd/axp20x-i2c.c | 2 + drivers/mfd/axp20x-rsb.c | 1 + drivers/mfd/axp20x.c | 90 +++++++++++++++++ drivers/regulator/axp20x-regulator.c | 94 +++++++++++++++++- include/linux/mfd/axp20x.h | 98 ++++++++++++++++++- 6 files changed, 277 insertions(+), 10 deletions(-) -- 2.35.8