Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp78834rwb; Wed, 18 Jan 2023 14:25:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXtBiULygmW8rhuXs7rjuXRKe8Te2rBq4LJy3UxgX3uz6txDltXmJUE0ns+AK45R6dXwNfC/ X-Received: by 2002:a17:906:2c45:b0:84d:4b8f:b34c with SMTP id f5-20020a1709062c4500b0084d4b8fb34cmr8486023ejh.66.1674080756404; Wed, 18 Jan 2023 14:25:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674080756; cv=none; d=google.com; s=arc-20160816; b=bCF/1I54R/OrZKe7nRW24+5qqMUZUZNa07y+yMq92RwZaqZthQ1DwEKC1pH1SQfSRq Gpmi68RQEdF90FmC81ROMAk+76p6Vl/b9eWy+87UW1rWbkkwu+h1qRTuhNhwtLCTUbJ0 GGxXZ4IjyqIcYqUjO4v9sG2D09Skpa7otisRGzE0XerdFCvnsiSYa1wjrCunCBt89mtE 2CGGY+A3Cy/IBMY9b9pbITLONRMrBVUJdA1fWX8IQf1QI49Q+mJ7U1Vmu3xf4CDVdkFQ ufiexENYXZcqYmztPr7KGy60M7afqTd8CEzAX4EmoO+FhzS/653f0uE7o1UIAO+yhY3l 61Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=JFAbpir+34ilgmTwmO1xR+EoHyFPaOFOlv2rED7UqAo=; b=cuHxWVw+yjlHVgobhR/LBeg4RjOlwa0zGCzPeBJPn8iS0bpBPFKRYtvkaPFMEcXCyg SMzCl/u8y5FjUGYWy++fMFNwSUoMdKH4n+XDFhwHKcC2HY7IIvbuUdz6OFHgCP8kfvj0 /3AAXfYjeaZs47eYQAuoOGnrOFczNyq7A9STRHFXXQTcWBlz9FuWi+9EsA/NdvFGRI0h pH8ZaKLbUwAmV7YSg5X/1qVh0PYH9f6xsddK9FakSNfpu5nvAgw17ag2/cWhRYhERZav wogrX0DQzyDG/Y+6aRiO7bw4I5GtGnhL6WFhjyXmrjnvwarzFBD1ZxF3jUHiEG02l2RE jBiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m18-20020a056402431200b0049e40c5300bsi6379968edc.453.2023.01.18.14.25.45; Wed, 18 Jan 2023 14:25:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230265AbjARVDo (ORCPT + 45 others); Wed, 18 Jan 2023 16:03:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbjARVDf (ORCPT ); Wed, 18 Jan 2023 16:03:35 -0500 Received: from relay05.th.seeweb.it (relay05.th.seeweb.it [IPv6:2001:4b7a:2000:18::166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E171568B2 for ; Wed, 18 Jan 2023 13:03:33 -0800 (PST) Received: from TimeMachine.lan (adsl-dyn97.91-127-229.t-com.sk [91.127.229.97]) by m-r2.th.seeweb.it (Postfix) with ESMTPA id 1992F3F791; Wed, 18 Jan 2023 22:03:30 +0100 (CET) From: Martin Botka To: Martin Botka , Andre Przywara Cc: Konrad Dybcio , AngeloGioacchino Del Regno , Marijn Suijten , Jami Kettunen , Paul Bouchara , Jan Trmal , Jernej Skrabec , Samuel Holland , Martin Botka , Lee Jones , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Liam Girdwood , Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 0/3] regulator: Add X-Powers AXP313a PMIC support* Date: Wed, 18 Jan 2023 22:03:15 +0100 Message-Id: <20230118210319.464371-1-martin.botka@somainline.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds support for the X-Powers AXP313a PMIC, which is often bundled with Allwinner H616 or H313 SoCs. Andre Przywara took over the series for v6 but I now have a bit more time so I took over the series again. Up to v5 this was speaking of the AXP1530, which seems to be some internal name. The chips we have seen in the wild are all labeled AXP313a, so we go with this name here, from now on. This is supported by the fact that there is an AXP313a datasheet, but none for the AXP1530. Patch 1 is the binding documentation (just the new compatible string), patch 2 adds the MFD bits (mostly describing the extent of the regmap), while patch 3 describes the actual AXP313a register definitions. Since this ties neatly into the existing AXP and generic regulator framework, the patches are indeed only structure definitions, there is no new code. For now Andre papered over this "fixed customizable" RTC-LDO regulator in the same way this was done before for other PMICs (AXP803, for instance), Andre thinks we can fix this properly with a follow-up patch, for all instances. Please have a look! Cheers, Martin Changelog: v6 .. v7: - Use alphabetical ordering v5 .. v6: - change name from AXP1530 to AXP313a - extend commit messages - drop AXP*_FREQUENCY register (not used anyway) - better vertically align struct definitions - rename IRQs to match names used for other PMICs - add RTC_LDO regulator - use decimal numbers for selector ranges - use macro definitions to name some values - force DC/DC switching frequency to be fixed at 3 MHz - change LDO source supply to VIN1 (as per datasheet) v4 .. v5: - Use alphabetical ordering in mfd - Correct { placement line - Replace spaces with tabs in 1 struct v3 .. v4: - Fix indentation v2 .. v3: - Move AXP1530 dt-binding to alphabetical order v1 .. v2: - Remove RSB support. - Drop .id = 0 - Add dt-binding for the AXP1530 Martin Botka (3): dt-bindings: mfd: x-powers,axp152: Document the AXP313a variant mfd: axp20x: Add support for AXP313a PMIC regulator: axp20x: Add support for AXP313a variant .../bindings/mfd/x-powers,axp152.yaml | 1 + drivers/mfd/axp20x-i2c.c | 2 + drivers/mfd/axp20x.c | 61 +++++++++++++++++++ drivers/regulator/axp20x-regulator.c | 60 ++++++++++++++++++ include/linux/mfd/axp20x.h | 32 ++++++++++ 5 files changed, 156 insertions(+) -- 2.39.0