From patchwork Thu Dec 28 09:39:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karel Balej X-Patchwork-Id: 18578 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp1900274dyb; Thu, 28 Dec 2023 02:02:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHyaLzvwvABUrV8f2L0QKKu+XNeyo+Fpwhfx2xfzpJX50akcwgQQtzAbSYZIsAjLWwQ+Yb5 X-Received: by 2002:a17:906:46ce:b0:a23:6e79:3916 with SMTP id k14-20020a17090646ce00b00a236e793916mr4557661ejs.12.1703757764168; Thu, 28 Dec 2023 02:02:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703757764; cv=none; d=google.com; s=arc-20160816; b=BtX5Qq62g5g1gJyMZlR/m74svV/oUVLcl9LYuMBqmiyMgyxB402w/1dglzXq/3ZI0e 1VCpanRGbm/R4QK+DR67Lh3kXNEb6jbu9+/LJz8Nd6rMpWSFlM4iH4kI4hukxGwyNSfM 0ZkP9Lmhx4xT1vxyrkCvgyFw7FTcsiJlAaE+gx90Mlu2QfyP/XCX3ObQ9t5hOmJGZv6x XYR2EqAvgGO1TqH/UadvzaCTScSIctq+/cG31R2OFB6xi9KDphx+IIOtzrfrkX3+58sw HX8HLRxvesFaDlnK0nUsnAPhcwjbKtsCIfMKK/gu0j6g/Aa74MRIaiCtHr6BUGBwWcvB MhXA== ARC-Message-Signature: i=1; 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:dkim-signature; bh=6XwUXQfO1QaOrvjh7oAdNoHW7l3I81ivVGMpPCfOktI=; fh=jTCjoJ+Y+apFiqJqgoUFlazJ2LdeNccwdUnBdvX3V30=; b=K7GYM05DBYRDxSZvq0yhoUYKnb3SWg8QpG8ybPN0iVZPZZ1ukYvIbntXGEl7ucSpwS pbJsJDEWwYrcg/Hxi/S+6D6AX1vbBEiZLdiDH49/9urcXwEI3CUVKlQrLDMbjWLFaS2f x02muwCAzq3SIZ91O+xJmNfxXTWq6J1pRCh5LYX9GuJ7zdyQuzE58yytlMaAw5GMwRxc 2LteNiHxSN1upR4ngt/JH0kwNgnWGZVW7RYKGvRuPD8KY2jYzaU99BzvcGiHBW3uVaa4 EhiH789Q8Q8SUhQJsf2LijevNuBpWqnzC7YUGD41j9zoJj66PfbBcaFmAVyfnydAxWap 1OcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gimli.ms.mff.cuni.cz header.s=gen1 header.b=CEN9LCHO; spf=pass (google.com: domain of linux-kernel+bounces-12550-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12550-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gimli.ms.mff.cuni.cz Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a23-20020a170906369700b00a2343c430d8si7012131ejc.483.2023.12.28.02.02.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 02:02:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12550-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gimli.ms.mff.cuni.cz header.s=gen1 header.b=CEN9LCHO; spf=pass (google.com: domain of linux-kernel+bounces-12550-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12550-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gimli.ms.mff.cuni.cz 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 AF4941F24138 for ; Thu, 28 Dec 2023 10:02:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AEC446FAB; Thu, 28 Dec 2023 10:02:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=gimli.ms.mff.cuni.cz header.i=@gimli.ms.mff.cuni.cz header.b="CEN9LCHO" X-Original-To: linux-kernel@vger.kernel.org Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61DB463B1; Thu, 28 Dec 2023 10:02:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gimli.ms.mff.cuni.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gimli.ms.mff.cuni.cz Received: from gimli.ms.mff.cuni.cz (gimli.ms.mff.cuni.cz [195.113.20.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by nikam.ms.mff.cuni.cz (Postfix) with ESMTPS id E1B8C28C555; Thu, 28 Dec 2023 11:02:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gimli.ms.mff.cuni.cz; s=gen1; t=1703757739; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=6XwUXQfO1QaOrvjh7oAdNoHW7l3I81ivVGMpPCfOktI=; b=CEN9LCHOHu/V+kGH9xSMlq+r/2Xq2J5MfdCfRgfXXhcEgVP4AfynZ75eK8s5qaDX2VrhCG yAGfZgbzFJQSSYckKm7zPseiO0u2gGMC2AyrVAXAKcYDSahJSogm6qeYpXrhIQ6NkViwqH TnRk9vUT2Wt5t92hN4RcFtqGz8uTQWU= Received: from localhost (internet5.mraknet.com [185.200.108.250]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: karelb) by gimli.ms.mff.cuni.cz (Postfix) with ESMTPSA id BA7F14423CE; Thu, 28 Dec 2023 11:02:19 +0100 (CET) From: Karel Balej To: Karel Balej , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?utf-8?q?Duje_Mihanovi=C4=87?= , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org Subject: [RFC PATCH 0/5] regulator: support for Marvell 88PM886 LDOs and bucks Date: Thu, 28 Dec 2023 10:39:09 +0100 Message-ID: <20231228100208.2932-1-karelb@gimli.ms.mff.cuni.cz> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786519501647463596 X-GMAIL-MSGID: 1786519501647463596 From: Karel Balej Hello, the following adds the regulators driver for Marvell 88PM88X PMICs implementing only the 88PM886 specific parts - however extension for 88PM880 should be trivial. The series adding MFD driver for these PMICs is available here [1]. Please note that this series depends on that one. The motivation and testing platform for this is the samsung,coreprimevelte smartphone for which the initial support efforts are ongoing here [2]. This PMIC is also found in at least two other devices with the PXA1908 SoC, such as samsung,xcover3lte and samsung,grandprimevelte. As the only reference for this driver served the smartphone's downstream kernel tree which is available here [3]. Please note that the first patch of this series is just a joining step with respect to series [1] and will be amalgated with future versions of it and dropped here. Also please note that that this series has the same defects as the MFD one and thus please only review the new parts. Lastly, as I would like to get some feedback on whether the approach I have taken here is OK, I have only defined descriptions for three regulators so far, the remaining eighteen will be defined in the same style and will of course be added when this series leaves the RFC state at the latest. [1] https://lore.kernel.org/all/20231217131838.7569-1-karelb@gimli.ms.mff.cuni.cz/ [2] https://lore.kernel.org/all/20231102-pxa1908-lkml-v7-0-cabb1a0cb52b@skole.hr/ [3] https://github.com/CoderCharmander/g361f-kernel Thank you, K. B. Karel Balej (5): mfd: 88pm88x: differences with respect to the PMIC RFC series mfd: 88pm88x: initialize the regulators regmaps dt-bindings: regulator: add documentation entry for 88pm88x-regulator regulator: add 88pm88x regulators driver MAINTAINERS: add entries for the 88pm88x regulators driver .../bindings/mfd/marvell,88pm88x.yaml | 17 ++ .../regulator/marvell,88pm88x-regulator.yaml | 28 +++ MAINTAINERS | 2 + drivers/mfd/88pm88x.c | 62 ++++- drivers/regulator/88pm88x-regulator.c | 214 ++++++++++++++++++ drivers/regulator/Kconfig | 6 + drivers/regulator/Makefile | 1 + include/linux/mfd/88pm88x.h | 17 ++ 8 files changed, 341 insertions(+), 6 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/marvell,88pm88x-regulator.yaml create mode 100644 drivers/regulator/88pm88x-regulator.c