Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp411566lqk; Sat, 9 Mar 2024 17:02:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW5FFGTiKDCLr+ex/AJLMHKHiztxsQqH01puBk6J7ZirZTvQ2jXjzcUBE3otym3dhDnAmaGggkDF5DLHWNOZtTFSpC850fhJp1L65mfRg== X-Google-Smtp-Source: AGHT+IGcGHFMHKTiHJ2kmk9DqKAyqOXTnqDrQ1wa5l/fhyCPaRvmLAViwtKV8nB2+6PxLlynG6EL X-Received: by 2002:a19:f703:0:b0:513:572f:88ea with SMTP id z3-20020a19f703000000b00513572f88eamr1538804lfe.19.1710032568341; Sat, 09 Mar 2024 17:02:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1710032568; cv=pass; d=google.com; s=arc-20160816; b=c/CZkO9DostXZ/cY1yPNNdHgNnpd8H+QhjwrNhPN+fGJE9CmIECO2B+tYoJ/oqnEpl JH7cLL3CBpfR3sEQh6PzMe+5kIY8biZUatfU+ZuJEbo3KSYFxznT42BSNGftr95o1qFS LDBkRgV1D/9QRiMTv9sWMokHZ8L0cP5/2eHHb9KL0ADpU9Fz+SrEGh47UDPUy+CvvqeU qsT0QZHImsPUyvPZ55XI+IJ/xi/G1BjMos619sKhq5Mr9Ii5gbUh6LtJKAH3EXAaqB72 /pSK57plsgNzZGHq12wlHxMs5nh9EfPv/8kERmRFwsYF5U/hu43kNqQnBB90PyawqPKf Mjew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=ABTkXlc6ek+wVwS04I2YqFaBi9x7VCpo1D7YgWrj9Sg=; fh=RY8Hw7PSqoU961dTv25OEaemdjilVpvCIy8/OfleiDQ=; b=BIAWXAyvnVF+1+CXsJEb3D+MEMS+6fkgtBbLK+otYdtkS2NvamsL2iPVXygDYKjI75 O5Lvqvg4sY78V7zdmdeY1YFptcVPle6yZxiEP69WkmxER8tzlf3DfmuVmQIKXlFI0WHk SEEDJgppZ/uFsAi015aatHpzPpNvOmICuZT2IM18eveqjcp6H62ohHAt+jDN9bmzgzya saj8DEqZTWQXqeQULiLoyykS47kMsWKNSXtr1GHo4bSmCleUU2IW3X0QCr5dcfIlmFXO 2oThYZ3dOYbu9CiAKBHtNptXetw5jjsvb4QJ5vZKTn24++UPMFXcMWv2Q/MB7kjr3tMy mFhA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-98065-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98065-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id pj25-20020a170906d79900b00a4619d81b86si212238ejb.819.2024.03.09.17.02.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 17:02:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98065-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-98065-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98065-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 120E81F21310 for ; Sun, 10 Mar 2024 01:02:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACB711381; Sun, 10 Mar 2024 01:02:40 +0000 (UTC) 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: linux-kernel@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